com.jidesoft.chart.model
Class TransposingChartPoint
java.lang.Object
com.jidesoft.chart.model.ChartPoint
com.jidesoft.chart.model.TransposingChartPoint
- All Implemented Interfaces:
- Chartable, Highlightable, Nameable, Named, Comparable<Chartable>
public class TransposingChartPoint
- extends ChartPoint
A class that represents a point but makes it easy to swap X and Y values. Use this instead of ChartPoint if you want
to be able to transpose a graph
- Author:
- Simon White (swhite@catalysoft.com)
TransposingChartPoint
public TransposingChartPoint(double x,
double y)
TransposingChartPoint
public TransposingChartPoint(Positionable x,
Positionable y)
TransposingChartPoint
public TransposingChartPoint(Positionable x,
Positionable y,
Highlight newHighlight)
TransposingChartPoint
public TransposingChartPoint(ChartPoint source)
isTransposing
public boolean isTransposing()
setTransposing
public void setTransposing(boolean transposing)
getX
public Positionable getX()
- Description copied from class:
ChartPoint
- Gets the x coordinate of the Chartable object
- Specified by:
getX
in interface Chartable
- Overrides:
getX
in class ChartPoint
- Returns:
- the x coordinate
getY
public Positionable getY()
- Description copied from class:
ChartPoint
- Gets the y coordinate of the Chartable object
- Specified by:
getY
in interface Chartable
- Overrides:
getY
in class ChartPoint
- Returns:
- the y coordinate
toString
public String toString()
- Overrides:
toString
in class ChartPoint