org.pentaho.chart.core
Class ChartSeriesDataLinkInfo

java.lang.Object
  extended by org.pentaho.chart.core.ChartSeriesDataLinkInfo

public class ChartSeriesDataLinkInfo
extends Object

This class stores the link between the chart series element and the column position it refers to.

Author:
Ravi Hasija

Method Summary
 Integer getColumnNum(ChartElement seriesElement)
          Returns the column number based on the chart element object (provided as an input).
 int getDataSize()
          Returns the size of the chart series data hash map size
 boolean hasColumnPos(Integer columnPos)
          Returns true if the hash map has the given column position, false otherwise.
 boolean hasSeriesElement(ChartElement seriesElement)
          Returns true if the data set has the given series element.
 void setColumnNum(ChartElement seriesElement, Integer columnPos)
          Inserts the series element as the Key and the column position as the value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setColumnNum

public void setColumnNum(ChartElement seriesElement,
                         Integer columnPos)
Inserts the series element as the Key and the column position as the value.

Parameters:
seriesElement - Series element is put into the hash as a KEY.
columnPos - Column position acts as the VALUE for the chart element KEY.

getColumnNum

public Integer getColumnNum(ChartElement seriesElement)
Returns the column number based on the chart element object (provided as an input).

Parameters:
seriesElement -
Returns:
columnPosition Returns the column number based on the series element.

getDataSize

public int getDataSize()
Returns the size of the chart series data hash map size

Returns:
Returns the size of the chart series data hash map size

hasColumnPos

public boolean hasColumnPos(Integer columnPos)
Returns true if the hash map has the given column position, false otherwise.

Parameters:
columnPos -
Returns:
Returns true if the hash map has column position.

hasSeriesElement

public boolean hasSeriesElement(ChartElement seriesElement)
Returns true if the data set has the given series element.

Parameters:
seriesElement -
Returns:
Returns true if the hash map has series element.