public static class ALspComplexStroke.ArcBuilder extends Object
ALspComplexStroke.arc()
and ALspComplexStroke.filledArc()
.Modifier and Type | Method and Description |
---|---|
ALspComplexStroke.ArcBuilder |
angle(double aAngle)
Sets the angle of the arc, in degrees.
|
ALspComplexStroke |
build()
Returns a new arc stroke
|
ALspComplexStroke.ArcBuilder |
fillColor(Color aFillColor)
Sets the fill color
|
ALspComplexStroke.ArcBuilder |
fillTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the fill color.
|
ALspComplexStroke.ArcBuilder |
length(double aLength)
Sets the length of this stroke, in pixels.
|
ALspComplexStroke.ArcBuilder |
lengthRelative(double aLengthRelative)
Sets the length of this stroke, as a value relative to the length of the line.
|
ALspComplexStroke.ArcBuilder |
lineColor(Color aLineColor)
Sets the line color.
|
ALspComplexStroke.ArcBuilder |
lineTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the line color.
|
ALspComplexStroke.ArcBuilder |
lineWidth(double aLineWidth)
Sets the line width.
|
ALspComplexStroke.ArcBuilder |
minorRadius(double aMinorRadius)
Sets the minor radius of the arc, in pixels.
|
ALspComplexStroke.ArcBuilder |
offset(double aOffset)
Sets the offset of the arc, relative to the base line, in pixels.
|
ALspComplexStroke.ArcBuilder |
startAngle(double aStartAngle)
Sets the start angle of the arc, in degrees
|
public ALspComplexStroke.ArcBuilder startAngle(double aStartAngle)
aStartAngle
- the startthis
public ALspComplexStroke.ArcBuilder angle(double aAngle)
180
,
half a arc is drawn.aAngle
- the angle of the arc, in degreesthis
public ALspComplexStroke.ArcBuilder length(double aLength)
10
. Note that this is the
major axis length (!= radius) of the arc. Note that when this method is called, the value
set using lengthRelative
is ignored.aLength
- the length of this stroke, in pixelsthis
public ALspComplexStroke.ArcBuilder lengthRelative(double aLengthRelative)
0
. Note that this is the major axis length (!= radius) of the arc.
Note that when this method is called, the value set using length
is
ignored.aLengthRelative
- a length, defined relative ([0, 1]) to the length of the entire line,
representing the part of the line occupied by this gap.this
public ALspComplexStroke.ArcBuilder minorRadius(double aMinorRadius)
aMinorRadius
- the minor radius of the arc, in pixels.this
public ALspComplexStroke.ArcBuilder offset(double aOffset)
aOffset
- the offset of the arc, in pixels.this
public ALspComplexStroke.ArcBuilder lineWidth(double aLineWidth)
aLineWidth
- the line widththis
public ALspComplexStroke.ArcBuilder lineColor(Color aLineColor)
aLineColor
- the line color.this
public ALspComplexStroke.ArcBuilder lineTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the line color. This texture icon is sampled in view space, i.e.
one pixel of the icon corresponds with one pixel on the screen. If a line color
is set as well, that color is used as a modulation color. For best results, the given icon should be tileable,
see for example TLcdGXYHatchedFillStyle.asIcon()
.
aTextureIcon
- a texture iconthis
public ALspComplexStroke.ArcBuilder fillColor(Color aFillColor)
aFillColor
- the fill colorthis
public ALspComplexStroke.ArcBuilder fillTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the fill color. This texture icon is sampled in view space, i.e.
one pixel of the icon corresponds with one pixel on the screen. If a fill color
is set as well, that color is used as a modulation color. For best results, the given icon should be tileable,
see for example TLcdGXYHatchedFillStyle.asIcon()
.
When using a textured fill along the entire stroked line, it may be useful to change the sharp angle threshold. This makes it possible to avoid gaps or overlapping regions between line segments.
aTextureIcon
- a texture iconthis
public ALspComplexStroke build()