Class ArrowElement
java.lang.Object
org.openscience.cdk.renderer.elements.ArrowElement
- All Implemented Interfaces:
IRenderingElement
IRenderingElement
for linear arrows.- Source code:
- main
- Belongs to CDK module:
- renderbasic
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Color
Color of the arrow.final boolean
Boolean that is true if the arrow points from start to end, false if from end to start.final double
X coordinate of the point where the arrow ends.final double
Y coordinate of the point where the arrow ends.final double
X coordinate of the point where the arrow starts.final double
Y coordinate of the point where the arrow starts.final double
Width of the arrow line. -
Constructor Summary
ConstructorsConstructorDescriptionArrowElement
(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. -
Method Summary
-
Field Details
-
startX
public final double startXX coordinate of the point where the arrow starts. -
startY
public final double startYY coordinate of the point where the arrow starts. -
endX
public final double endXX coordinate of the point where the arrow ends. -
endY
public final double endYY coordinate of the point where the arrow ends. -
width
public final double widthWidth of the arrow line. -
color
Color of the arrow. -
direction
public final boolean directionBoolean that is true if the arrow points from start to end, false if from end to start.
-
-
Constructor Details
-
ArrowElement
public 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.- Parameters:
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 arrow
-
-
Method Details
-
accept
Converts thisTextElement
into widget specific objects.- Specified by:
accept
in interfaceIRenderingElement
- Parameters:
v
- Toolkit specific widget factory.
-