JIDE 3.5.15

com.jidesoft.chart.model
Class TransposingChartPoint

java.lang.Object
  extended by com.jidesoft.chart.model.ChartPoint
      extended by 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)

Constructor Summary
TransposingChartPoint(ChartPoint source)
           
TransposingChartPoint(double x, double y)
           
TransposingChartPoint(Positionable x, Positionable y)
           
TransposingChartPoint(Positionable x, Positionable y, Highlight newHighlight)
           
 
Method Summary
 Positionable getX()
          Gets the x coordinate of the Chartable object
 Positionable getY()
          Gets the y coordinate of the Chartable object
 boolean isTransposing()
           
 void setTransposing(boolean transposing)
           
 String toString()
           
 
Methods inherited from class com.jidesoft.chart.model.ChartPoint
compareTo, equals, getHighlight, getName, hashCode, isHighlight, setHighlight, setName, setX, setY
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

JIDE 3.5.15