Package org.geotools.styling
Class LineSymbolizerImpl
Object
AbstractSymbolizer
LineSymbolizerImpl
- All Implemented Interfaces:
- Cloneable,- LineSymbolizer,- Symbolizer,- 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 SummaryFields inherited from class AbstractSymbolizerdescription, geometry, name, options, unitOfMeasure
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreates a new instance of DefaultLineSymbolizerprotectedLineSymbolizerImpl(Stroke stroke, Expression offset, Unit<Length> uom, String geom, String name, Description desc) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaccept(StyleVisitor visitor) accept(TraversingStyleVisitor visitor, Object data) Accepts a StyleVisitor to perform some operation on this LineSymbolizer.clone()Creates a deep copy clone.booleanPerpendicularOffset allows to draw lines in parallel to the original geometry.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.voidSets the graphical-symbolization parameter to use for the linear geometry.toString()Methods inherited from class AbstractSymbolizergetDescription, getGeometry, getGeometryPropertyName, getName, getOptions, getUnitOfMeasure, hasOption, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasureMethods inherited from interface SymbolizergetDescription, getGeometry, getGeometryPropertyName, getName, getOptions, getUnitOfMeasure, hasOption, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasure
- 
Constructor Details- 
LineSymbolizerImplprotected LineSymbolizerImpl()Creates a new instance of DefaultLineSymbolizer
- 
LineSymbolizerImplprotected LineSymbolizerImpl(Stroke stroke, Expression offset, Unit<Length> uom, String geom, String name, Description desc) 
 
- 
- 
Method Details- 
getPerpendicularOffsetDescription 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 interface- LineSymbolizer
- Returns:
- Expression
 
- 
setPerpendicularOffsetDescription copied from interface:LineSymbolizerDefine an offset to draw lines in parallel to the original geometry.- Specified by:
- setPerpendicularOffsetin 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
 
- 
getStrokeProvides the graphical-symbolization parameter to use for the linear geometry.- Specified by:
- getStrokein interface- LineSymbolizer
- Returns:
- The Stroke style to use when rendering lines.
 
- 
setStrokeSets the graphical-symbolization parameter to use for the linear geometry.- Specified by:
- setStrokein interface- LineSymbolizer
- Parameters:
- stroke- The Stroke style to use when rendering lines.
 
- 
acceptAccepts a StyleVisitor to perform some operation on this LineSymbolizer.- Specified by:
- acceptin interface- LineSymbolizer
- Specified by:
- acceptin interface- Symbolizer
- Parameters:
- visitor- The visitor to accept.
- Returns:
- value produced
 
- 
accept- Specified by:
- acceptin interface- Symbolizer
 
- 
cloneCreates a deep copy clone.
- 
toString
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- AbstractSymbolizer
 
- 
equals- Overrides:
- equalsin class- AbstractSymbolizer
 
 
-