/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/classification.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/classification.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 873 by jonathan, Fri May 9 16:30:54 2003 UTC revision 1176 by jonathan, Thu Jun 12 15:46:22 2003 UTC
# Line 197  class Classification: Line 197  class Classification:
197    
198          fill -- a Color object.          fill -- a Color object.
199          """          """
         assert isinstance(fill, Color)  
200          self.GetDefaultGroup().GetProperties().SetFill(fill)          self.GetDefaultGroup().GetProperties().SetFill(fill)
201          self.__SendNotification()          self.__SendNotification()
202                    
# Line 210  class Classification: Line 209  class Classification:
209    
210          color -- a Color object.          color -- a Color object.
211          """          """
         assert isinstance(color, Color)  
212          self.GetDefaultGroup().GetProperties().SetLineColor(color)          self.GetDefaultGroup().GetProperties().SetLineColor(color)
213          self.__SendNotification()          self.__SendNotification()
214                    
# Line 458  class ClassGroupProperties: Line 456  class ClassGroupProperties:
456          color -- the color of the line. This must be a Color object.          color -- the color of the line. This must be a Color object.
457          """          """
458    
         assert isinstance(color, Color)  
459          self.__stroke = color          self.__stroke = color
460    
461      def GetLineWidth(self):      def GetLineWidth(self):
# Line 486  class ClassGroupProperties: Line 483  class ClassGroupProperties:
483          fill -- the color of the fill. This must be a Color object.          fill -- the color of the fill. This must be a Color object.
484          """          """
485    
         assert isinstance(fill, Color)  
486          self.__fill = fill          self.__fill = fill
487    
488      def __eq__(self, other):      def __eq__(self, other):
# Line 763  class ClassGroupRange(ClassGroup): Line 759  class ClassGroupRange(ClassGroup):
759              if max is None:              if max is None:
760                  raise ValueError()                  raise ValueError()
761    
762              self.__range = Range("[" + repr(float(min)) + ";" +              self.__range = Range(("[", min, max, "["))
                                        repr(float(max)) + "[")  
763    
764      def GetRange(self):      def GetRange(self):
765          """Return the range as a string"""          """Return the range as a string"""

Legend:
Removed from v.873  
changed lines
  Added in v.1176

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26