|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.model.DefaultChartDataModelConstraints
public class DefaultChartDataModelConstraints
Implementing the ChartDataModelConstraints this class provides the default implementation for the data model constraints. Alternative implementations could return the sum of all column values to implement stacked bar charts e.g.
| 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 | |
|---|---|
DefaultChartDataModelConstraints(AbstractChartDataModel model,
int axis)
Creates a new instance of DefaultChartDataModelConstraints |
|
DefaultChartDataModelConstraints(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 getMinimumY() |
java.lang.Number |
getMaximumX()
Returns the maximum xvalue of all datasets. |
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 xvalue of all datasets. |
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 DefaultChartDataModelConstraints(AbstractChartDataModel model,
int axis)
public DefaultChartDataModelConstraints(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()
getMinimumY()
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 ChartDataModelConstraintspublic double getMaximumColumnValue()
getMaximumX()
getMaximumColumnValue in interface ChartDataModelConstraintsjava.lang.ArrayIndexOutOfBoundsException - if the model is emptypublic java.lang.Number getMaximumX()
getMaximumX in interface ChartDataModelConstraints
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||