public static final class ALspComplexStroke.RectangleBuilder extends Object
ALspComplexStroke.filledRect()
.Modifier and Type | Method and Description |
---|---|
ALspComplexStroke |
build()
Creates a new rectangle stroke.
|
ALspComplexStroke.RectangleBuilder |
fillColor(Color aColor)
Sets the fill color.
|
ALspComplexStroke.RectangleBuilder |
fillTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the fill color.
|
ALspComplexStroke.RectangleBuilder |
height(double aMinHeight,
double aMaxHeight)
Sets the minimum and maximum height of the rectangle, relative to the base line.
|
ALspComplexStroke.RectangleBuilder |
length(double aLengthFixed)
Sets the length of this stroke, in pixels.
|
ALspComplexStroke.RectangleBuilder |
lengthRelative(double aLengthRelative)
Sets the length of this stroke as a value relative to the length of the line.
|
ALspComplexStroke.RectangleBuilder |
lineColor(Color aColor)
Sets the line color.
|
ALspComplexStroke.RectangleBuilder |
lineTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the line color.
|
ALspComplexStroke.RectangleBuilder |
lineWidth(double aLineWidth)
Sets the line width.
|
ALspComplexStroke.RectangleBuilder |
maxHeight(double aMaxHeight)
Sets the maximum height of the rectangle, relative to the base line.
|
ALspComplexStroke.RectangleBuilder |
minHeight(double aMinHeight)
Sets the minimum height of the rectangle, relative to the base line.
|
public ALspComplexStroke.RectangleBuilder length(double aLengthFixed)
10
. Note that when this
method is called, the value set using lengthRelative
is ignored.aLengthFixed
- the length of this stroke, in pixelsthis
public ALspComplexStroke.RectangleBuilder lengthRelative(double aLengthRelative)
0
. 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.RectangleBuilder minHeight(double aMinHeight)
-5
.aMinHeight
- the minimum height.this
public ALspComplexStroke.RectangleBuilder maxHeight(double aMaxHeight)
5
.aMaxHeight
- the minimum height.this
public ALspComplexStroke.RectangleBuilder height(double aMinHeight, double aMaxHeight)
-5, 5
.aMinHeight
- the minimum heightaMaxHeight
- the maximum heightthis
minHeight(double)
,
maxHeight(double)
public ALspComplexStroke.RectangleBuilder fillColor(Color aColor)
aColor
- the fill colorthis
public ALspComplexStroke.RectangleBuilder 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.RectangleBuilder lineColor(Color aColor)
aColor
- the line colorthis
public ALspComplexStroke.RectangleBuilder 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.RectangleBuilder lineWidth(double aLineWidth)
1
.aLineWidth
- the line width.this
public ALspComplexStroke build()