org.opengis.style

Interface Symbolizer

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object accept(StyleVisitor visitor, java.lang.Object extraData)
      Calls the visit method of a StyleVisitor
      Description getDescription()
      Returns the description of this symbolizer.
      java.lang.String getGeometryPropertyName()
      Returns the name of the geometry feature attribute to use for drawing.
      java.lang.String getName()
      Returns a name for this symbolizer.
      javax.measure.unit.Unit<javax.measure.quantity.Length> getUnitOfMeasure()
      Returns a measure unit.
    • Method Detail

      • getUnitOfMeasure

        @XmlElement(value="uom")
        javax.measure.unit.Unit<javax.measure.quantity.Length> getUnitOfMeasure()
        Returns a measure unit. This parameter is inherited from GML. Renderers shall use the unit to correctly render symbols. Recommended uom definitions are :

        • metre
        • foot
        • pixel

        Returns:
        can be null. If the unit is null than we shall use a the pixel unit
      • getGeometryPropertyName

        @XmlElement(value="Geometry")
        java.lang.String getGeometryPropertyName()
        Returns the name of the geometry feature attribute to use for drawing. May return null (or Expression.NIL) if this symbol is to use the default geometry attribute, whatever it may be. Using null in this fashion is similar to a PropertyName using the XPath expression ".".

        The content of the element gives the property name in XPath syntax. In principle, a fixed geometry could be defined using GML or operators could be defined for computing the geometry from references or literals. However, using a feature property directly is by far the most commonly useful method.

        Returns:
        Geometry attribute name, or null to indicate default geometry
      • getName

        @XmlElement(value="Name")
        java.lang.String getName()
        Returns a name for this symbolizer. This can be any string that uniquely identifies this style within a given canvas. It is not meant to be human-friendly. (The "title" property is meant to be human friendly.)
        Returns:
        a name for this style.
      • getDescription

        @XmlElement(value="Description")
        Description getDescription()
        Returns the description of this symbolizer.
        Returns:
        Description with usual informations used for user interfaces.
      • accept

        @Extension
        java.lang.Object accept(StyleVisitor visitor,
                                        java.lang.Object extraData)
        Calls the visit method of a StyleVisitor
        Parameters:
        visitor - the style visitor
        Returns:
        value produced

Copyright © 1996-2014 Geotools. All Rights Reserved.