Package com.luciad.view.gxy
Class TLcdStrokeLineStyleBuilder
java.lang.Object
com.luciad.view.gxy.TLcdStrokeLineStyleBuilder
This line style builder makes it possible to create pre-defined stroke based line styles.
This class can be used by first setting the required line style properties and then creating
the line style by calling
build()
.
This builder is the same as TLcdStrokeLineStyle.Builder
.- Since:
- 11.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Describes how lines are ended.static enum
Describes how segments are joined. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionantiAliasing
(boolean aAntiAliasing) Sets whether to use anti-aliasing when painting.build()
Creates a new line style using the configured settings.Sets how lines are ended.Sets the default color.When calling this method, the created line style will produce dashed lines.dashedLineStyle
(float aDashLength) When calling this method, the created line style will produce dashed lines.dashedLineStyle
(float aDashLength, float aSpaceLength) When calling this method, the created line style will produce dashed lines.When calling this method, the created line style will produced dotted lines, i.e. the width and height of each dash is equal.dottedLineStyle
(float aSpaceLength) When calling this method, the created line style will produce dotted lines, i.e. the width and height of each dash is equal.Sets how line segments are joined.lineWidth
(float aLineWidth) Sets the line width of the painted lines, in pixels.selectionColor
(Color aColor) Sets the selection color.When calling this method, the created line style will produce solid lines.
-
Constructor Details
-
TLcdStrokeLineStyleBuilder
public TLcdStrokeLineStyleBuilder()
-
-
Method Details
-
build
Creates a new line style using the configured settings. By default the line style is a solid line style.- Returns:
- a new line style using the configured settings.
- See Also:
-
color
Sets the default color.- Parameters:
aColor
- the default line color.- Returns:
- this TLcdStrokeLineStyleBuilder
-
selectionColor
Sets the selection color.- Parameters:
aColor
- the selection line color.- Returns:
- this TLcdStrokeLineStyleBuilder
-
antiAliasing
Sets whether to use anti-aliasing when painting.- Parameters:
aAntiAliasing
- iftrue
, uses anti-aliasing when painting- Returns:
- this TLcdStrokeLineStyleBuilder
-
lineWidth
Sets the line width of the painted lines, in pixels.- Parameters:
aLineWidth
- the line width of the painted lines.- Returns:
- this TLcdStrokeLineStyleBuilder
-
cap
Sets how lines are ended.- Parameters:
aCap
- describes how the lines are ended- Returns:
- this builder
-
join
Sets how line segments are joined.- Parameters:
aJoin
- describes how the line segments are joined- Returns:
- this builder
-
solidLineStyle
When calling this method, the created line style will produce solid lines. The width of the lines can be configured usinglineWidth(float)
.- Returns:
- this TLcdStrokeLineStyleBuilder
-
dottedLineStyle
When calling this method, the created line style will produced dotted lines, i.e. the width and height of each dash is equal. The size of the dot will be determined by the line width.- Returns:
- this TLcdStrokeLineStyleBuilder
- See Also:
-
dottedLineStyle
When calling this method, the created line style will produce dotted lines, i.e. the width and height of each dash is equal. The size of the dot will be determined by the line width. The length of the space between each dot is determined byaSpaceLength
.- Parameters:
aSpaceLength
- the length of the space between the dots.- Returns:
- this TLcdStrokeLineStyleBuilder
- See Also:
-
dashedLineStyle
When calling this method, the created line style will produce dashed lines. The length of each dash will be4
pixels. The length of the space between each dash will also be4
pixels. The line width is determined bylineWidth(float)
- Returns:
- this TLcdStrokeLineStyleBuilder
- See Also:
-
dashedLineStyle
When calling this method, the created line style will produce dashed lines. The length of each dash is determined byaDashLength
. The length of the space between each dash equals the length of the dashes itself. The line width is determined bylineWidth(float)
.- Parameters:
aDashLength
- the length of each dash, and the length of the space between the dashes, in pixels.- Returns:
- this TLcdStrokeLineStyleBuilder
- See Also:
-
dashedLineStyle
When calling this method, the created line style will produce dashed lines. The length of each dash is determined byaDashLength
. The length of the space between each dash is determined byaSpaceLength
. The line width is determined bylineWidth(float)
.- Parameters:
aDashLength
- the length of each dash, in pixels.aSpaceLength
- the length of the space between the dashes, in pixels.- Returns:
- this TLcdStrokeLineStyleBuilder
- See Also:
-