250 |
|
|
251 |
def SetFill(self, fill): |
def SetFill(self, fill): |
252 |
"""Set the layer's fill color. None means the shapes are not filled""" |
"""Set the layer's fill color. None means the shapes are not filled""" |
253 |
self.fill = fill |
null = self.classification.getNull() |
254 |
|
null['fill'] = fill |
255 |
|
self.classification.setNull(null) |
256 |
self.changed(LAYER_LEGEND_CHANGED, self) |
self.changed(LAYER_LEGEND_CHANGED, self) |
257 |
|
|
258 |
def SetStroke(self, stroke): |
def SetStroke(self, stroke): |
259 |
"""Set the layer's stroke color. None means the shapes are not |
"""Set the layer's stroke color. None means the shapes are not |
260 |
stroked.""" |
stroked.""" |
261 |
self.stroke = stroke |
null = self.classification.getNull() |
262 |
|
null['stroke'] = stroke |
263 |
|
self.classification.setNull(null) |
264 |
self.changed(LAYER_LEGEND_CHANGED, self) |
self.changed(LAYER_LEGEND_CHANGED, self) |
265 |
|
|
266 |
def SetStrokeWidth(self, width): |
def SetStrokeWidth(self, width): |
267 |
"""Set the layer's stroke width.""" |
"""Set the layer's stroke width.""" |
268 |
self.stroke_width = width |
null = self.classification.getNull() |
269 |
|
null['stroke_width'] = width |
270 |
|
self.classification.setNull(null) |
271 |
self.changed(LAYER_LEGEND_CHANGED, self) |
self.changed(LAYER_LEGEND_CHANGED, self) |
272 |
|
|
273 |
def TreeInfo(self): |
def TreeInfo(self): |