Package sld :: Class Symbolizer
[hide private]
[frames] | no frames]

Class Symbolizer

source code


Abstract base class for all symbolizer nodes. Symbolizer nodes are those that contain Fill, Font, or Stroke children.

All derived Symbolizer classes have access to the Fill, Font, and Stroke properties.


Properties:
Instance Methods [hide private]
 
__init__(self, parent, name, descendant=True)
Create a new Symbolizer node.
source code
Fill
create_fill(self)
Create a new Fill element on this Symbolizer.
source code
Font
create_font(self)
Create a new Font element on this Symbolizer.
source code
Stroke
create_stroke(self)
Create a new Stroke element on this Symbolizer.
source code

Inherited from SLDNode: create_element, get_or_create_element

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from SLDNode: makeproperty

Class Variables [hide private]

Inherited from SLDNode (private): _nsmap

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, name, descendant=True)
(Constructor)

source code 

Create a new Symbolizer node. If the specified node is not found in the DOM, the node will be created and attached to the parent.

Parameters:
  • parent (Rule) - The parent class object.
  • name (string) - The type of symbolizer node. If this parameter ends with the character '*', the '*' will get expanded into 'Symbolizer'.
  • descendant (boolean) - A flag indicating if this is a descendant node of the parent.
Overrides: object.__init__

create_fill(self)

source code 

Create a new Fill element on this Symbolizer.

Returns: Fill
A new fill element, attached to this symbolizer.

create_font(self)

source code 

Create a new Font element on this Symbolizer.

Returns: Font
A new font element, attached to this symbolizer.

create_stroke(self)

source code 

Create a new Stroke element on this Symbolizer.

Returns: Stroke
A new stroke element, attached to this symbolizer.