Class Sectors3DPanel.Caption
java.lang.Object
jaba.panels.Sectors3DPanel.Caption
- All Implemented Interfaces:
Comparable
- Enclosing class:
Sectors3DPanel
Inner class used to sort sector captions
Author: Bertoli Marco
Author: Bertoli Marco
- Author:
- Bertoli Marco, Zanzottera Andrea Date: 8-feb-2006 Time: 11.42.37
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Caption
Builds a new Caption object- Parameters:
label- label of the captionx- value of x coordinatey- value of y coordinatestatN- 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
-
getStatN
public int getStatN()Gets station number in this sector- Returns:
- station number in this sector
-
compareTo
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:
compareToin interfaceComparable- 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.
-