Class LineSymbolizerImpl

    • Constructor Detail

      • LineSymbolizerImpl

        protected LineSymbolizerImpl()
        Creates a new instance of DefaultLineSymbolizer
      • LineSymbolizerImpl

        protected LineSymbolizerImpl​(Stroke stroke,
                                     Expression offset,
                                     Unit<Length> uom,
                                     String geom,
                                     String name,
                                     Description desc)
    • Method Detail

      • getPerpendicularOffset

        public Expression getPerpendicularOffset()
        Description copied from interface: LineSymbolizer
        PerpendicularOffset allows to draw lines in parallel to the original geometry. For complex line strings these parallel lines have to be constructed so that the distance between original geometry and drawn line stays equal. This construction can result in drawn lines that are actually smaller or longer than the original geometry.

        The distance is in uoms and is positive to the left-hand side of the line string. Negative numbers mean right. The default offset is 0.

        Specified by:
        getPerpendicularOffset in interface LineSymbolizer
        Returns:
        Expression
      • setPerpendicularOffset

        public void setPerpendicularOffset​(Expression offset)
        Description copied from interface: LineSymbolizer
        Define an offset to draw lines in parallel to the original geometry.
        Specified by:
        setPerpendicularOffset in interface LineSymbolizer
        Parameters:
        offset - Distance in UOMs to offset line; left-hand side is positive; right-hand side is negative; the default value is 0
      • getStroke

        public StrokeImpl getStroke()
        Provides the graphical-symbolization parameter to use for the linear geometry.
        Specified by:
        getStroke in interface LineSymbolizer
        Returns:
        The Stroke style to use when rendering lines.
      • setStroke

        public void setStroke​(Stroke stroke)
        Sets the graphical-symbolization parameter to use for the linear geometry.
        Specified by:
        setStroke in interface LineSymbolizer
        Parameters:
        stroke - The Stroke style to use when rendering lines.
      • accept

        public Object accept​(TraversingStyleVisitor visitor,
                             Object data)
        Accepts a StyleVisitor to perform some operation on this LineSymbolizer.
        Specified by:
        accept in interface LineSymbolizer
        Specified by:
        accept in interface Symbolizer
        Parameters:
        visitor - The visitor to accept.
        Returns:
        value produced
      • clone

        public Object clone()
        Creates a deep copy clone.
        Specified by:
        clone in interface Cloneable
        Overrides:
        clone in class Object
        Returns:
        The deep copy clone.
        See Also:
        Object.clone()
      • toString

        public String toString()
        Overrides:
        toString in class Object