public static class ALspComplexStroke.TriangleBuilder extends Object
ALspComplexStroke.filledTriangle()
.Modifier and Type | Method and Description |
---|---|
ALspComplexStroke |
build()
Creates a new triangle stroke.
|
ALspComplexStroke.TriangleBuilder |
fillColor(Color aFillColor)
Sets the fill color.
|
ALspComplexStroke.TriangleBuilder |
fillTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the fill color.
|
ALspComplexStroke.TriangleBuilder |
lineColor(Color aColor)
Sets the line color.
|
ALspComplexStroke.TriangleBuilder |
lineTexture(ILcdIcon aTextureIcon)
Specifies an icon that is used to retrieve the line color.
|
ALspComplexStroke.TriangleBuilder |
lineWidth(double aLineWidth)
Sets the line width.
|
ALspComplexStroke.TriangleBuilder |
p0(double aX,
double aY)
Sets the first point of the triangle
|
ALspComplexStroke.TriangleBuilder |
p1(double aX,
double aY)
Sets the second point of the triangle
|
ALspComplexStroke.TriangleBuilder |
p2(double aX,
double aY)
Sets the third point of the triangle
|
ALspComplexStroke.TriangleBuilder |
relativeCoordinates(boolean aRelative)
When set to
true , the coordinates defined in aXs will be interpreted as
relative coordinates. |
public ALspComplexStroke.TriangleBuilder p0(double aX, double aY)
aX
- the x-coordinates of the first point of the triangle.aY
- the y-coordinates of the first point of the triangle.this
public ALspComplexStroke.TriangleBuilder p1(double aX, double aY)
aX
- the x-coordinates of the second point of the triangle.aY
- the y-coordinates of the second point of the triangle.this
public ALspComplexStroke.TriangleBuilder p2(double aX, double aY)
aX
- the x-coordinates of the third point of the triangle.aY
- the y-coordinates of the third point of the triangle.this
public ALspComplexStroke.TriangleBuilder relativeCoordinates(boolean aRelative)
true
, the coordinates defined in aXs
will be interpreted as
relative coordinates. I.e. coordinates defined relative to the length of the entire line
(between [0, 1]).aRelative
- true
to use relative coordinatesthis
public ALspComplexStroke.TriangleBuilder fillColor(Color aFillColor)
aFillColor
- the fill colorthis
public ALspComplexStroke.TriangleBuilder 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.TriangleBuilder lineColor(Color aColor)
aColor
- the line colorthis
public ALspComplexStroke.TriangleBuilder 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.TriangleBuilder lineWidth(double aLineWidth)
1
.aLineWidth
- the line width.this
public ALspComplexStroke build()