lt.monarch.chart.chart2D
Class PseudoArrayDataModel

java.lang.Object
  extended by lt.monarch.chart.chart2D.PseudoArrayDataModel
All Implemented Interfaces:
java.io.Serializable, ChartDataModelListener
Direct Known Subclasses:
PseudoArrayDataModel3D

public class PseudoArrayDataModel
extends java.lang.Object
implements ChartDataModelListener, java.io.Serializable

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  ArrayDataModel model
           
protected  AxisMapper xMapper
           
protected  AxisMapper yMapper
           
 
Constructor Summary
Constructor and Description
PseudoArrayDataModel(ArrayDataModel model, AxisMapper xMapper, AxisMapper yMapper)
           
 
Method Summary
Modifier and Type Method and Description
 java.lang.Object calculateNullPointValue(ArrayDataModel model, int index)
          Calculates x or y values instead of null values in data model.
 java.lang.Object calculateNullValue(ArrayDataModel model, DataColumnType valType, int index)
           
 boolean containsNulls(DataColumnType valType, int index)
          Checks if there are nulls in the data model contained in the lower parts of the stacked series
 void dispose()
          Disposes object
protected  void finalize()
           
 PseudoArrayDataModel getBottomPseudoModel()
           
 java.lang.Object getValueAt(DataColumnType valType, int index)
           
protected  java.lang.Object getX(ArrayDataModel model, int index)
          Gets x value
protected  java.lang.Object getY(ArrayDataModel model, int index)
          Gets y value
 boolean isValueNull(int index)
          Checks if there are points in the data model (stacked ones or not stacked ones) where both points are null
 void modelChanged(DataModelChangeEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xMapper

protected AxisMapper xMapper

yMapper

protected AxisMapper yMapper

model

protected ArrayDataModel model
Constructor Detail

PseudoArrayDataModel

public PseudoArrayDataModel(ArrayDataModel model,
                            AxisMapper xMapper,
                            AxisMapper yMapper)
Method Detail

dispose

public void dispose()
Disposes object


finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

modelChanged

public void modelChanged(DataModelChangeEvent event)
Specified by:
modelChanged in interface ChartDataModelListener

isValueNull

public boolean isValueNull(int index)
Checks if there are points in the data model (stacked ones or not stacked ones) where both points are null

Parameters:
index - index of the data point
Returns:
true if specified index is of null value

getValueAt

public java.lang.Object getValueAt(DataColumnType valType,
                                   int index)

calculateNullValue

public java.lang.Object calculateNullValue(ArrayDataModel model,
                                           DataColumnType valType,
                                           int index)

containsNulls

public boolean containsNulls(DataColumnType valType,
                             int index)
Checks if there are nulls in the data model contained in the lower parts of the stacked series

Parameters:
index - index of the data point
Returns:
true if there are nulls to be calculated

calculateNullPointValue

public java.lang.Object calculateNullPointValue(ArrayDataModel model,
                                                int index)
Calculates x or y values instead of null values in data model. This method is used only if user has set showNullValues to true and has set the marker style for null values

Parameters:
index - index of the data point
Returns:
Calculated (x or y) value

getX

protected java.lang.Object getX(ArrayDataModel model,
                                int index)
Gets x value

Parameters:
model - data model from where to retrieve x
index - index of the data point
Returns:
x value at specified index

getY

protected java.lang.Object getY(ArrayDataModel model,
                                int index)
Gets y value

Parameters:
model - data model from where to retrieve y
index - index of the data point
Returns:
y value at specified index

getBottomPseudoModel

public PseudoArrayDataModel getBottomPseudoModel()