Class TLcdSLDLineSymbolizer.Builder<T>
- Enclosing class:
TLcdSLDLineSymbolizer
- Since:
- 2012.1
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the symbolizer with the set parameters.color
(ILcdOGCExpression aColorExpression) Specifies an OGC expression to use for the outline color.Specifies the outline color.dashArray
(int... aDashPattern) Specifies the dash array of the stroke.Specifies the dash array of the stroke.geometry
(TLcdOGCFunction aGeometryFunction) Specifies the geometry that is styled by this symbolizer.geometry
(TLcdOGCPropertyName aGeometry) Specifies the geometry that is styled by this symbolizer.geometry
(TLcdSLDGeometry aGeometry) Sets the geometry of the symbolizer.graphic()
Returns a builder for the graphic that should be used for the stroke.graphic
(TLcdSLDGraphic aGraphic) Sets the graphic that should be used for the stroke.metre()
Sets the unit of measure for this symbolizer to metre.opacity
(double aOpacity) Sets the opacity for the stroke.perpendicularOffset
(double aOffset) Sets the perpendicular offset from the original geometry at which the line should be drawn.stroke
(TLcdSLDStroke aStroke) Sets the stroke which will be used for the outline.width
(double aWidth) Specifies the outline width.width
(int aWidth) Specifies the outline width.
-
Method Details
-
geometry
Specifies the geometry that is styled by this symbolizer.
This method must not be called when
geometry(TLcdSLDGeometry)
orgeometry(TLcdOGCFunction)
has already been called.- Parameters:
aGeometry
- A property name that points to a compatible geometry. Must not benull
- Returns:
- this builder
- See Also:
-
geometry
Specifies the geometry that is styled by this symbolizer.
This method must not be called when
geometry(TLcdSLDGeometry)
orgeometry(TLcdOGCPropertyName)
has already been called.- Parameters:
aGeometryFunction
- A function that determines a compatible geometry. Must not benull
- Returns:
- this builder
- Since:
- 2020.1
- See Also:
-
geometry
Sets the geometry of the symbolizer.
This method must not be called when
geometry(TLcdOGCPropertyName)
orgeometry(TLcdOGCFunction)
has already been called.- Parameters:
aGeometry
- The geometry. Must not benull
- Returns:
- This builder.
-
metre
Sets the unit of measure for this symbolizer to metre. The unit of measure is applied to the width of the stroke. The default uom is pixels.- Returns:
- This builder
-
perpendicularOffset
Sets the perpendicular offset from the original geometry at which the line should be drawn. By default, this offset is interpreted as a distance in pixels. Use themetre()
method to switch the unit of measure to metres.- Parameters:
aOffset
- A valid offset.- Returns:
- this builder
-
stroke
Sets the stroke which will be used for the outline.
This method must not be called when any of the other stroke methods has already been called.
- Parameters:
aStroke
- The stroke. Must not benull
.- Returns:
- This builder
-
opacity
Sets the opacity for the stroke.
This method must not be called when
stroke(TLcdSLDStroke)
has already been called.- Parameters:
aOpacity
- An opacity between 0.0 and 1.0.- Returns:
- This builder
-
width
Specifies the outline width. By default this is specified in pixels. Use the
metre()
method to switch the unit of measure to metres.This method must not be called when
stroke(TLcdSLDStroke)
has already been called.- Parameters:
aWidth
- The width. Must be greater than zero.- Returns:
- This builder
-
width
Specifies the outline width. By default this is specified in pixels. Use the
metre()
method to switch the unit of measure to metres.This method must not be called when
stroke(TLcdSLDStroke)
has already been called.- Parameters:
aWidth
- The width. Must be greater than zero.- Returns:
- This builder
- Since:
- 2022.1
-
color
Specifies the outline color.
This method must not be called when
stroke(TLcdSLDStroke)
orcolor(ILcdOGCExpression)
has already been called.- Parameters:
aColor
- Outline color. Must not benull
.- Returns:
- This builder
-
color
Specifies an OGC expression to use for the outline color.
This method must not be called when
stroke(TLcdSLDStroke)
orcolor(java.awt.Color)
has already been called.- Parameters:
aColorExpression
- An OGC expression that evaluates to a color. Must not benull
.- Returns:
- This builder
-
dashArray
Specifies the dash array of the stroke. The
aDashPattern
parameter should contain alternating dash lengths and gap lengths, in pixels, separated by spaces. For example:"6 3 4 3"
Note that the dash pattern may impact the performance when using a
TLspSLDStyler
. Using patterns with a total length of 2, 4, 8 or 16 is encouraged.This method must not be called when
stroke(TLcdSLDStroke)
has already been called.- Parameters:
aDashPattern
- The pattern for the dash array. Alternates between dash lengths and gap lengths, in pixels, separated by spaces. Must not benull
.- Returns:
- This builder
-
dashArray
Specifies the dash array of the stroke. The
aDashPattern
parameter should contain alternating dash lengths and gap lengths, in pixels. For example:"6 3 4 3"
Note that the dash pattern may impact the performance when using a
TLspSLDStyler
. Using patterns with a total length of 2, 4, 8 or 16 is encouraged.This method must not be called when
graphic(TLcdSLDGraphic)
orstroke(TLcdSLDStroke)
has already been called.- Parameters:
aDashPattern
- The pattern for the dash array. Alternates between dash lengths and gap lengths, in pixels. Must not benull
.- Returns:
- This builder
- Since:
- 2013.0
-
graphic
Returns a builder for the graphic that should be used for the stroke.
This method must not be called when
stroke(TLcdSLDStroke)
orgraphic(TLcdSLDGraphic)
has already been called.- Returns:
- a builder for a
TLcdSLDGraphic
-
graphic
Sets the graphic that should be used for the stroke.
This method must not be called when
stroke(TLcdSLDStroke)
orgraphic()
has already been called.- Parameters:
aGraphic
- The graphic. Must not benull
- Returns:
- This builder
-
buildSymbolizer
Builds the symbolizer with the set parameters.
This method can only be called once. When you used the builder to build an instance, the builder is no longer valid and should be thrown away.
- Returns:
- the resulting symbolizer
-