Class DPoint

All Implemented Interfaces:
Serializable, Cloneable

public class DPoint extends Point2D.Double
Point with double coordinates used by the JABA convex hull algorithms and graphs.
See Also:
  • Constructor Details

    • DPoint

      public DPoint(double x, double y)
      Make a DPoint from the coordinates
      Parameters:
      x - The x of the point
      y - The y of the point
    • DPoint

      public DPoint(double x, double y, String label)
      Make a DPoint from coordinates and station's name
      Parameters:
      x - The x of the point
      y - The y of the point
      label - The name of the point
  • Method Details

    • getLabel

      public String getLabel()
      Return the label of the point
      Returns:
      The laberl
    • isSelect

      public boolean isSelect()
      Return true if the point is selected
      Returns:
      True if the point is selected
    • setSelect

      public void setSelect(boolean isSelect)
      Set the selection value of the point
      Parameters:
      isSelect - If the point is selected or not
    • polarAngle

      public double polarAngle()
    • intEquals

      public boolean intEquals(DPoint p)
      Control if the integer part of the coordinates are equals
      Parameters:
      p - the p value
      Returns:
      true if the integer part of the coordinates are equals
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Point2D