org.geotools.styling
Class LineSymbolizerImpl

java.lang.Object
  extended by org.geotools.styling.AbstractSymbolizer
      extended by org.geotools.styling.LineSymbolizerImpl
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.style.LineSymbolizer, org.opengis.style.Symbolizer

public class LineSymbolizerImpl
extends AbstractSymbolizer
implements LineSymbolizer, org.opengis.util.Cloneable

Provides a representation of a LineSymbolizer in an SLD Document. A LineSymbolizer defines how a line geometry should be rendered.

Version:
$Id: LineSymbolizerImpl.java 34564 2009-11-30 16:08:45Z aaime $
Author:
James Macgill, Johann Sorel (Geomatys)

Field Summary
 
Fields inherited from class org.geotools.styling.AbstractSymbolizer
description, geometry, name, unitOfMeasure
 
Constructor Summary
protected LineSymbolizerImpl()
          Creates a new instance of DefaultLineSymbolizer
protected LineSymbolizerImpl(Stroke stroke, org.opengis.filter.expression.Expression offset, javax.measure.unit.Unit<javax.measure.quantity.Length> uom, java.lang.String geom, java.lang.String name, Description desc)
           
 
Method Summary
 void accept(StyleVisitor visitor)
           
 java.lang.Object accept(org.opengis.style.StyleVisitor visitor, java.lang.Object data)
          Accepts a StyleVisitor to perform some operation on this LineSymbolizer.
 java.lang.Object clone()
          Creates a deep copy clone.
 boolean equals(java.lang.Object obj)
           
 org.opengis.filter.expression.Expression getPerpendicularOffset()
           
 StrokeImpl getStroke()
          Provides the graphical-symbolization parameter to use for the linear geometry.
 int hashCode()
           
 void setPerpendicularOffset(org.opengis.filter.expression.Expression offset)
          Define an offset to draw lines in parallel to the original geometry.
 void setStroke(org.opengis.style.Stroke stroke)
          Sets the graphical-symbolization parameter to use for the linear geometry.
 java.lang.String toString()
           
 
Methods inherited from class org.geotools.styling.AbstractSymbolizer
getDescription, getGeometry, getGeometryPropertyName, getName, getUnitOfMeasure, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasure
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.styling.Symbolizer
getDescription, getGeometry, getGeometryPropertyName, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasure
 
Methods inherited from interface org.opengis.style.Symbolizer
getName, getUnitOfMeasure
 

Constructor Detail

LineSymbolizerImpl

protected LineSymbolizerImpl()
Creates a new instance of DefaultLineSymbolizer


LineSymbolizerImpl

protected LineSymbolizerImpl(Stroke stroke,
                             org.opengis.filter.expression.Expression offset,
                             javax.measure.unit.Unit<javax.measure.quantity.Length> uom,
                             java.lang.String geom,
                             java.lang.String name,
                             Description desc)
Method Detail

getPerpendicularOffset

public org.opengis.filter.expression.Expression getPerpendicularOffset()
Specified by:
getPerpendicularOffset in interface org.opengis.style.LineSymbolizer

setPerpendicularOffset

public void setPerpendicularOffset(org.opengis.filter.expression.Expression offset)
Description copied from interface: LineSymbolizer
Define an offset to draw lines in parallel to the original geometry.

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 org.opengis.style.LineSymbolizer
Returns:
The Stroke style to use when rendering lines.

setStroke

public void setStroke(org.opengis.style.Stroke stroke)
Sets the graphical-symbolization parameter to use for the linear geometry.

Parameters:
stroke - The Stroke style to use when rendering lines.

accept

public java.lang.Object accept(org.opengis.style.StyleVisitor visitor,
                               java.lang.Object data)
Accepts a StyleVisitor to perform some operation on this LineSymbolizer.

Specified by:
accept in interface org.opengis.style.LineSymbolizer
Specified by:
accept in interface org.opengis.style.Symbolizer
Parameters:
visitor - The visitor to accept.

accept

public void accept(StyleVisitor visitor)

clone

public java.lang.Object clone()
Creates a deep copy clone.

Overrides:
clone in class java.lang.Object
Returns:
The deep copy clone.
Throws:
java.lang.RuntimeException - DOCUMENT ME!

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractSymbolizer

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractSymbolizer


Copyright © 1996-2010 Geotools. All Rights Reserved.