/[thuban]/trunk/thuban/Thuban/Model/layer.py
ViewVC logotype

Diff of /trunk/thuban/Thuban/Model/layer.py

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

revision 72 by bh, Tue Sep 4 16:45:28 2001 UTC revision 73 by bh, Mon Feb 4 19:19:25 2002 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001 by Intevation GmbH  # Copyright (c) 2001, 2002 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
4  #  #
# Line 102  class Layer(BaseLayer): Line 102  class Layer(BaseLayer):
102      """      """
103    
104      def __init__(self, title, filename, projection = None,      def __init__(self, title, filename, projection = None,
105                   fill = None, stroke = _black, visible = 1):                   fill = None, stroke = _black, stroke_width = 1, visible = 1):
106          """Initialize the layer.          """Initialize the layer.
107    
108          title -- the title          title -- the title
# Line 121  class Layer(BaseLayer): Line 121  class Layer(BaseLayer):
121          self.projection = projection          self.projection = projection
122          self.fill = fill          self.fill = fill
123          self.stroke = stroke          self.stroke = stroke
124            self.stroke_width = stroke_width
125          self.shapefile = None          self.shapefile = None
126          self.open_shapefile()          self.open_shapefile()
127          # shapetable is the table associated with the shapefile, while          # shapetable is the table associated with the shapefile, while
# Line 192  class Layer(BaseLayer): Line 193  class Layer(BaseLayer):
193          stroked."""          stroked."""
194          self.stroke = stroke          self.stroke = stroke
195          self.changed(LAYER_LEGEND_CHANGED, self)          self.changed(LAYER_LEGEND_CHANGED, self)
196    
197        def SetStrokeWidth(self, width):
198            """Set the layer's stroke width."""
199            self.stroke_width = width
200            self.changed(LAYER_LEGEND_CHANGED, self)

Legend:
Removed from v.72  
changed lines
  Added in v.73

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26