|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.model.StackedChartDataModelConstraints
public class StackedChartDataModelConstraints
Implementing the ChartDataModelConstraints this class provides an implementation for the data model constraints where the maximum value is the sum of all positive values and the minimum value is the sum of all negative values.
| Field Summary | |
|---|---|
protected boolean |
allowManualColScale
A flag which determines if column values should be manually scalable. |
protected int |
axis
The axis to compute the constraints. |
protected AbstractChartDataModel |
model
The model for which to calculate the constraints. |
| Constructor Summary | |
|---|---|
StackedChartDataModelConstraints(AbstractChartDataModel model,
int axis)
Creates a new instance of DefaultChartDataModelConstraints |
|
StackedChartDataModelConstraints(AbstractChartDataModel model,
int axis,
boolean allowManualColScale)
Creates a new instance of DefaultChartDataModelConstraints |
|
| Method Summary | |
|---|---|
double |
getMaximumColumnValue()
Deprecated. As of release 1.3, replaced by getMaximumX() |
java.lang.Number |
getMaximumValue()
Deprecated. As of release 1.3, replaced by getMaximumY() |
java.lang.Number |
getMaximumX()
Returns the maximum x value. |
java.lang.Number |
getMaximumY()
Returns the maximum value of all datasets. |
double |
getMinimumColumnValue()
Deprecated. As of release 1.3, replaced by getMinimumX() |
java.lang.Number |
getMinimumValue()
Deprecated. As of release 1.3, replaced by getMinimumY() |
java.lang.Number |
getMinimumX()
Returns the minimum column value. |
java.lang.Number |
getMinimumY()
Returns the minimum value of all datasets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AbstractChartDataModel model
protected int axis
protected boolean allowManualColScale
| Constructor Detail |
|---|
public StackedChartDataModelConstraints(AbstractChartDataModel model,
int axis)
public StackedChartDataModelConstraints(AbstractChartDataModel model,
int axis,
boolean allowManualColScale)
model - the AbstractDataModel for which constraints will be computedaxis - the y-axis which will be consideredallowManualScale - a flag which triggers if column values should
be allowed to be scaled manually (default is yes)| Method Detail |
|---|
public java.lang.Number getMaximumValue()
getMaximumY()
getMaximumValue in interface ChartDataModelConstraintspublic java.lang.Number getMaximumY()
getMaximumY in interface ChartDataModelConstraintspublic java.lang.Number getMinimumValue()
getMinimumY()
getMinimumValue in interface ChartDataModelConstraintspublic java.lang.Number getMinimumY()
getMinimumY in interface ChartDataModelConstraintspublic double getMinimumColumnValue()
getMinimumX()
getMinimumColumnValue in interface ChartDataModelConstraintsjava.lang.ArrayIndexOutOfBoundsException - if the Model is emptypublic java.lang.Number getMinimumX()
getMinimumX in interface ChartDataModelConstraintsjava.lang.ArrayIndexOutOfBoundsException - if the Model is emptypublic double getMaximumColumnValue()
getMaximumX()
getMaximumColumnValue in interface ChartDataModelConstraintsjava.lang.ArrayIndexOutOfBoundsException - if the model is emptypublic java.lang.Number getMaximumX()
getMaximumX in interface ChartDataModelConstraintsjava.lang.ArrayIndexOutOfBoundsException - if the model is empty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||