src/eric7/Graphics/UMLDiagramBuilder.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
--- a/src/eric7/Graphics/UMLDiagramBuilder.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Graphics/UMLDiagramBuilder.py	Wed Jul 13 14:55:47 2022 +0200
@@ -14,10 +14,11 @@
     """
     Class implementing the UML diagram builder base class.
     """
+
     def __init__(self, dialog, view, project):
         """
         Constructor
-        
+
         @param dialog reference to the UML dialog
         @type UMLDialog
         @param view reference to the view object
@@ -26,49 +27,49 @@
         @type Project
         """
         super().__init__(dialog)
-        
+
         self.umlView = view
         self.scene = self.umlView.scene()
         self.project = project
-    
+
     def initialize(self):
         """
         Public method to initialize the object.
         """
         return
-    
+
     def buildErrorMessage(self, msg):
         """
         Public method to build an error string to be included in the scene.
-        
+
         @param msg error message
         @type str
         @return prepared error string
         @rtype str
         """
         return (
-            "<font color='{0}'>".format(
-                self.umlView.getDrawingColors()[0].name()) +
-            msg +
-            "</font>"
+            "<font color='{0}'>".format(self.umlView.getDrawingColors()[0].name())
+            + msg
+            + "</font>"
         )
-    
+
     def buildDiagram(self):
         """
         Public method to build the diagram.
-        
+
         This class must be implemented in subclasses.
-        
+
         @exception NotImplementedError raised to indicate that this class
             must be subclassed
         """
         raise NotImplementedError(
-            "Method 'buildDiagram' must be implemented in subclasses.")
-    
+            "Method 'buildDiagram' must be implemented in subclasses."
+        )
+
     def parsePersistenceData(self, version, data):
         """
         Public method to parse persisted data.
-        
+
         @param version version of the data
         @type str
         @param data persisted data to be parsed
@@ -77,20 +78,20 @@
         @rtype bool
         """
         return True
-    
+
     def toDict(self):
         """
         Public method to collect data to be persisted.
-        
+
         @return dictionary containing data to be persisted
         @rtype dict
         """
         return {}
-    
+
     def fromDict(self, version, data):
         """
         Public method to populate the class with data persisted by 'toDict()'.
-        
+
         @param version version of the data
         @type str
         @param data dictionary containing the persisted data

eric ide

mercurial