Class ArrowElement

java.lang.Object
org.openscience.cdk.renderer.elements.ArrowElement
All Implemented Interfaces:
IRenderingElement

public class ArrowElement extends Object implements IRenderingElement
IRenderingElement for linear arrows.
Source code:
main
Belongs to CDK module:
renderbasic
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final 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

    Constructors
    Constructor
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Converts this TextElement into widget specific objects.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • startX

      public final double startX
      X coordinate of the point where the arrow starts.
    • startY

      public final double startY
      Y coordinate of the point where the arrow starts.
    • endX

      public final double endX
      X coordinate of the point where the arrow ends.
    • endY

      public final double endY
      Y coordinate of the point where the arrow ends.
    • width

      public final double width
      Width of the arrow line.
    • color

      public final Color color
      Color of the arrow.
    • direction

      public final boolean direction
      Boolean 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 start
      color - Color of the arrow
  • Method Details