Class Sectors3DPanel.Caption

java.lang.Object
jaba.panels.Sectors3DPanel.Caption
All Implemented Interfaces:
Comparable
Enclosing class:
Sectors3DPanel

protected class Sectors3DPanel.Caption extends Object implements Comparable
Inner class used to sort sector captions
Author: Bertoli Marco
Author:
Bertoli Marco, Zanzottera Andrea Date: 8-feb-2006 Time: 11.42.37
  • Constructor Details

    • Caption

      public Caption(String label, double x, double y, int statN)
      Builds a new Caption object
      Parameters:
      label - label of the caption
      x - value of x coordinate
      y - value of y coordinate
      statN - number of stations
  • Method Details

    • getX

      public double getX()
      Gets value of x
      Returns:
      value of x
    • getY

      public double getY()
      value of y
      Returns:
      value of y
    • getLabel

      public String getLabel()
      Gets label caption
      Returns:
      label caption
    • getStatN

      public int getStatN()
      Gets station number in this sector
      Returns:
      station number in this sector
    • compareTo

      public int compareTo(Object o)

      Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

      Compares y values and if they are equals compares x values.

      Specified by:
      compareTo in interface Comparable
      Parameters:
      o - the Object to be compared.
      Returns:
      a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
      Throws:
      ClassCastException - if the specified object's type prevents it from being compared to this Object.