Venice 0.7beta

org.mov.chart
Class Coordinate

java.lang.Object
  extended by org.mov.chart.Coordinate

public class Coordinate
extends java.lang.Object


Field Summary
protected static int BREAK
           
 
Constructor Summary
Coordinate()
          Constrcut a Coordinate, as a null coordinate initially
Coordinate(java.lang.Comparable x, java.lang.Double y, java.lang.Integer yCoord)
          Construct a new coordinate defined in the chart space
Coordinate(java.lang.Comparable x, java.lang.Double y, java.lang.Integer yCoord, int level)
          Construct a new coordinate defined in the chart space
 
Method Summary
 boolean compareTo(Coordinate c)
          Direct comparison between this coordinate and a specified one
 int getLevel()
          Return the graph level the y coordinate
 java.lang.Comparable getXData()
          Return the X value of this coordinate
 java.lang.Integer getYCoord()
          Return the absolute y coordinate of this coordinate
 java.lang.Double getYData()
          Return the Y value of this coordinate
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BREAK

protected static final int BREAK
See Also:
Constant Field Values
Constructor Detail

Coordinate

public Coordinate(java.lang.Comparable x,
                  java.lang.Double y,
                  java.lang.Integer yCoord)
Construct a new coordinate defined in the chart space

Parameters:
x - The X value of the coordinate (a data value)
y - The Y value of the coordinate (a data value)
yCoord - The screen value of the yCoordinate

Coordinate

public Coordinate(java.lang.Comparable x,
                  java.lang.Double y,
                  java.lang.Integer yCoord,
                  int level)
Construct a new coordinate defined in the chart space

Parameters:
x - The X value of the coordinate (a data value)
y - The Y value of the coordinate (a data value)
yCoord - The screen value of the yCoordinate
level - The chart level of the yCoordinate

Coordinate

public Coordinate()
Constrcut a Coordinate, as a null coordinate initially

Method Detail

getXData

public java.lang.Comparable getXData()
Return the X value of this coordinate

Returns:
the X Data value

getYData

public java.lang.Double getYData()
Return the Y value of this coordinate

Returns:
the Y Data value

getYCoord

public java.lang.Integer getYCoord()
Return the absolute y coordinate of this coordinate

Returns:
the Y coordinate

getLevel

public int getLevel()
Return the graph level the y coordinate

Returns:
the level

compareTo

public boolean compareTo(Coordinate c)
Direct comparison between this coordinate and a specified one

Parameters:
The - line to compare this one to
Returns:
True if the coordinate has the same x,y values, false otherwise

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Venice 0.7beta