Class ArrowElement
java.lang.Object
org.openscience.cdk.renderer.elements.ArrowElement
- All Implemented Interfaces:
IRenderingElement
IRenderingElement for linear arrows.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ColorColor of the arrow.final booleanBoolean that is true if the arrow points from start to end, false if from end to start.final doubleX coordinate of the point where the arrow ends.final doubleY coordinate of the point where the arrow ends.final doubleX coordinate of the point where the arrow starts.final doubleY coordinate of the point where the arrow starts.final doubleWidth 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-Colorof the arrow
-
-
Method Details
-
accept
Converts thisTextElementinto widget specific objects.- Specified by:
acceptin interfaceIRenderingElement- Parameters:
v- Toolkit specific widget factory.
-