public class TLcdStrokeLineStyleBuilder extends Object
build()
.
This builder is the same as TLcdStrokeLineStyle.Builder
.TLcdStrokeLineStyle
Modifier and Type | Class and Description |
---|---|
static class |
TLcdStrokeLineStyleBuilder.Cap
Describes how lines are ended.
|
static class |
TLcdStrokeLineStyleBuilder.Join
Describes how segments are joined.
|
Constructor and Description |
---|
TLcdStrokeLineStyleBuilder() |
Modifier and Type | Method and Description |
---|---|
TLcdStrokeLineStyleBuilder |
antiAliasing(boolean aAntiAliasing)
Sets whether to use anti-aliasing when painting.
|
TLcdStrokeLineStyle |
build()
Creates a new line style using the configured settings.
|
TLcdStrokeLineStyleBuilder |
cap(TLcdStrokeLineStyleBuilder.Cap aCap)
Sets how lines are ended.
|
TLcdStrokeLineStyleBuilder |
color(Color aColor)
Sets the default color.
|
TLcdStrokeLineStyleBuilder |
dashedLineStyle()
When calling this method, the created line style will produce dashed lines.
|
TLcdStrokeLineStyleBuilder |
dashedLineStyle(float aDashLength)
When calling this method, the created line style will produce dashed lines.
|
TLcdStrokeLineStyleBuilder |
dashedLineStyle(float aDashLength,
float aSpaceLength)
When calling this method, the created line style will produce dashed lines.
|
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.
|
TLcdStrokeLineStyleBuilder |
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.
|
TLcdStrokeLineStyleBuilder |
join(TLcdStrokeLineStyleBuilder.Join aJoin)
Sets how line segments are joined.
|
TLcdStrokeLineStyleBuilder |
lineWidth(float aLineWidth)
Sets the line width of the painted lines, in pixels.
|
TLcdStrokeLineStyleBuilder |
selectionColor(Color aColor)
Sets the selection color.
|
TLcdStrokeLineStyleBuilder |
solidLineStyle()
When calling this method, the created line style will produce solid lines.
|
public TLcdStrokeLineStyle build()
color(java.awt.Color)
,
selectionColor(java.awt.Color)
,
antiAliasing(boolean)
,
lineWidth(float)
,
dottedLineStyle()
,
dottedLineStyle(float)
,
dashedLineStyle()
,
dashedLineStyle(float)
,
dashedLineStyle(float, float)
public TLcdStrokeLineStyleBuilder color(Color aColor)
aColor
- the default line color.public TLcdStrokeLineStyleBuilder selectionColor(Color aColor)
aColor
- the selection line color.public TLcdStrokeLineStyleBuilder antiAliasing(boolean aAntiAliasing)
aAntiAliasing
- if true
, uses anti-aliasing when paintingpublic TLcdStrokeLineStyleBuilder lineWidth(float aLineWidth)
aLineWidth
- the line width of the painted lines.public TLcdStrokeLineStyleBuilder cap(TLcdStrokeLineStyleBuilder.Cap aCap)
aCap
- describes how the lines are endedpublic TLcdStrokeLineStyleBuilder join(TLcdStrokeLineStyleBuilder.Join aJoin)
aJoin
- describes how the line segments are joinedpublic TLcdStrokeLineStyleBuilder solidLineStyle()
lineWidth(float)
.public TLcdStrokeLineStyleBuilder dottedLineStyle()
lineWidth(float)
public TLcdStrokeLineStyleBuilder dottedLineStyle(float aSpaceLength)
aSpaceLength
.aSpaceLength
- the length of the space between the dots.lineWidth(float)
public TLcdStrokeLineStyleBuilder dashedLineStyle()
4
pixels. The length of the space between each dash
will also be 4
pixels. The line width is determined by lineWidth(float)
lineWidth(float)
public TLcdStrokeLineStyleBuilder dashedLineStyle(float aDashLength)
aDashLength
. The length of the space between
each dash equals the length of the dashes itself. The line width is determined
by lineWidth(float)
.aDashLength
- the length of each dash, and the length of the space between the dashes,
in pixels.lineWidth(float)
public TLcdStrokeLineStyleBuilder dashedLineStyle(float aDashLength, float aSpaceLength)
aDashLength
. The length of the space between
each dash is determined by aSpaceLength
. The line width is determined
by lineWidth(float)
.aDashLength
- the length of each dash, in pixels.aSpaceLength
- the length of the space between the dashes, in pixels.lineWidth(float)