Class JaxoArrow.Coordinates

java.lang.Object
net.sf.jaxodraw.object.arrow.JaxoArrow.Coordinates
Enclosing interface:
JaxoArrow

public static class JaxoArrow.Coordinates extends Object
The coordinates of an arrow. An arrow is something that has a location and a direction.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Coordinates(double x, double y, double angle)
    Construct a set of coordinates.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Return the angle of the arrow.
    double
    Return the x position of the arrow.
    double
    Return the y position of the arrow.

    Methods inherited from class java.lang.Object

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

    • Coordinates

      public Coordinates(double x, double y, double angle)
      Construct a set of coordinates.
      Parameters:
      x - the x position of the arrow.
      y - the y position of the arrow.
      angle - the angle of the arrow.
  • Method Details

    • getX

      public double getX()
      Return the x position of the arrow.
      Returns:
      the x position of the arrow.
    • getY

      public double getY()
      Return the y position of the arrow.
      Returns:
      the y position of the arrow.
    • getAngle

      public double getAngle()
      Return the angle of the arrow.
      Returns:
      the angle of the arrow.