com.approximatrix.charting.model.threedimensional
Class DotPlotDataModelConstraints

java.lang.Object
  extended by com.approximatrix.charting.model.threedimensional.DotPlotDataModelConstraints
All Implemented Interfaces:
ChartDataModelConstraints

public class DotPlotDataModelConstraints
extends java.lang.Object
implements ChartDataModelConstraints

Constraints for use with dot plot models. Uses some dot-plot-specific methods to do its work.

Author:
armstrong

Field Summary
private  AbstractDotPlotDataModel model
          A dot plot data model
 
Constructor Summary
DotPlotDataModelConstraints(AbstractDotPlotDataModel model, int axis)
          Constructor that accepts a model and an axis.
 
Method Summary
 double getMaximumColumnValue()
          Deprecated. Deprecated as of version 1.3
 java.lang.Number getMaximumValue()
          Deprecated. Deprecated as of version 1.3
 java.lang.Number getMaximumX()
          Returns the largest X value.
 java.lang.Number getMaximumY()
          Returns the largest Y value.
 double getMinimumColumnValue()
          Deprecated. Deprecated as of version 1.3
 java.lang.Number getMinimumValue()
          Deprecated. Deprecated as of version 1.3
 java.lang.Number getMinimumX()
          Returns the smallest X value.
 java.lang.Number getMinimumY()
          Returns the smallest Y value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

private AbstractDotPlotDataModel model
A dot plot data model

Constructor Detail

DotPlotDataModelConstraints

public DotPlotDataModelConstraints(AbstractDotPlotDataModel model,
                                   int axis)
Constructor that accepts a model and an axis.

Parameters:
model - a valid dot plot model
axis - the y axis associated with this model - currently ignored
Method Detail

getMaximumColumnValue

public double getMaximumColumnValue()
Deprecated. Deprecated as of version 1.3

Returns the maximum X value

Specified by:
getMaximumColumnValue in interface ChartDataModelConstraints
Returns:
In the case of non-numeric x-values this should be the amount of columns - 1, in the case of numeric x-values this should nomen est omen be the smallest value.

getMaximumValue

public java.lang.Number getMaximumValue()
Deprecated. Deprecated as of version 1.3

Returns the maximum Y value

Specified by:
getMaximumValue in interface ChartDataModelConstraints
Returns:
a Number object defining the maximum value

getMaximumX

public java.lang.Number getMaximumX()
Returns the largest X value. Passes through to the model if autoscaling is enabled.

Specified by:
getMaximumX in interface ChartDataModelConstraints
Returns:
In the case of non-numeric x-values this should be the amount of columns - 1, in the case of numeric x-values this should nomen est omen be the smallest value.

getMaximumY

public java.lang.Number getMaximumY()
Returns the largest Y value. Passes through to the model if autoscaling is enabled.

Specified by:
getMaximumY in interface ChartDataModelConstraints
Returns:
a Number object defining the maximum value

getMinimumColumnValue

public double getMinimumColumnValue()
Deprecated. Deprecated as of version 1.3

Returns the smallest X value. Passes through to the model if autoscaling is enabled.

Specified by:
getMinimumColumnValue in interface ChartDataModelConstraints
Returns:
In the case of non-numeric x-values this should be 0, in the case of numeric x-values this should nomen est omen be the smallest value.

getMinimumValue

public java.lang.Number getMinimumValue()
Deprecated. Deprecated as of version 1.3

Returns the smallest Y value. Passes through to the model if autoscaling is enabled.

Specified by:
getMinimumValue in interface ChartDataModelConstraints
Returns:
a Number object defining the smallest value.

getMinimumX

public java.lang.Number getMinimumX()
Returns the smallest X value. Passes through to the model if autoscaling is enabled.

Specified by:
getMinimumX in interface ChartDataModelConstraints
Returns:
In the case of non-numeric x-values this should be 0, in the case of numeric x-values this should nomen est omen be the smallest value.

getMinimumY

public java.lang.Number getMinimumY()
Returns the smallest Y value. Passes through to the model if autoscaling is enabled.

Specified by:
getMinimumY in interface ChartDataModelConstraints
Returns:
a Number object defining the smallest value.