Package org.geotools.styling
Class LineSymbolizerImpl
- Object
 - 
- AbstractSymbolizer
 - 
- LineSymbolizerImpl
 
 
 
- 
- All Implemented Interfaces:
 Cloneable,LineSymbolizer,Symbolizer,Cloneable
public class LineSymbolizerImpl extends AbstractSymbolizer implements LineSymbolizer, Cloneable
Provides a representation of a LineSymbolizer in an SLD Document. A LineSymbolizer defines how a line geometry should be rendered.- Author:
 - James Macgill, Johann Sorel (Geomatys)
 
 
- 
- 
Field Summary
- 
Fields inherited from class AbstractSymbolizer
description, geometry, name, options, unitOfMeasure 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedLineSymbolizerImpl()Creates a new instance of DefaultLineSymbolizerprotectedLineSymbolizerImpl(Stroke stroke, Expression offset, Unit<Length> uom, String geom, String name, Description desc) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(StyleVisitor visitor)Objectaccept(TraversingStyleVisitor visitor, Object data)Accepts a StyleVisitor to perform some operation on this LineSymbolizer.Objectclone()Creates a deep copy clone.booleanequals(Object obj)ExpressiongetPerpendicularOffset()PerpendicularOffset allows to draw lines in parallel to the original geometry.StrokeImplgetStroke()Provides the graphical-symbolization parameter to use for the linear geometry.inthashCode()voidsetPerpendicularOffset(Expression offset)Define an offset to draw lines in parallel to the original geometry.voidsetStroke(Stroke stroke)Sets the graphical-symbolization parameter to use for the linear geometry.StringtoString()- 
Methods inherited from class AbstractSymbolizer
getDescription, getGeometry, getGeometryPropertyName, getName, getOptions, getUnitOfMeasure, hasOption, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasure 
- 
Methods inherited from interface Symbolizer
getDescription, getGeometry, getGeometryPropertyName, getName, getOptions, getUnitOfMeasure, hasOption, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasure 
 - 
 
 - 
 
- 
- 
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:LineSymbolizerPerpendicularOffset 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:
 getPerpendicularOffsetin interfaceLineSymbolizer- Returns:
 - Expression
 
 
- 
setPerpendicularOffset
public void setPerpendicularOffset(Expression offset)
Description copied from interface:LineSymbolizerDefine an offset to draw lines in parallel to the original geometry.- Specified by:
 setPerpendicularOffsetin interfaceLineSymbolizer- 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:
 getStrokein interfaceLineSymbolizer- 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:
 setStrokein interfaceLineSymbolizer- 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:
 acceptin interfaceLineSymbolizer- Specified by:
 acceptin interfaceSymbolizer- Parameters:
 visitor- The visitor to accept.- Returns:
 - value produced
 
 
- 
accept
public void accept(StyleVisitor visitor)
- Specified by:
 acceptin interfaceSymbolizer
 
- 
clone
public Object clone()
Creates a deep copy clone.- Specified by:
 clonein interfaceCloneable- Overrides:
 clonein classObject- Returns:
 - The deep copy clone.
 - See Also:
 Object.clone()
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classAbstractSymbolizer
 
- 
equals
public boolean equals(Object obj)
- Overrides:
 equalsin classAbstractSymbolizer
 
 - 
 
 -