public class ArrowElement extends Object implements IRenderingElement
IRenderingElement
for linear arrows.Modifier and Type | Field and Description |
---|---|
Color |
color
Color of the arrow.
|
boolean |
direction
Boolean that is true if the arrow points from start to end, false if from end to start.
|
double |
endX
X coordinate of the point where the arrow ends.
|
double |
endY
Y coordinate of the point where the arrow ends.
|
double |
startX
X coordinate of the point where the arrow starts.
|
double |
startY
Y coordinate of the point where the arrow starts.
|
double |
width
Width of the arrow line.
|
Constructor and Description |
---|
ArrowElement(double startX,
double startY,
double endX,
double endY,
double width,
boolean direction,
Color color)
Constructor for an arrow element, based on starting point, end point, width,
direction, and color.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IRenderingVisitor v)
Converts this
TextElement into widget specific objects. |
public final double startX
public final double startY
public final double endX
public final double endY
public final double width
public final Color color
public final boolean direction
public ArrowElement(double startX, double startY, double endX, double endY, double width, boolean direction, Color color)
startX
- X coordinate of the point where the arrow starts.startY
- Y coodrinate of the point where the arrow starts.endX
- X coordinate of the point where the arrow ends.endY
- Y coordinate of the point where the arrow ends.width
- width of the arrow line.direction
- true is the arrow points from start to end, false if from end to startcolor
- Color
of the arrowpublic void accept(IRenderingVisitor v)
TextElement
into widget specific objects.accept
in interface IRenderingElement
v
- Toolkit specific widget factory.Copyright © 2021. All rights reserved.