|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.computation.Methods
org.eclipse.birt.chart.computation.withaxes.ScaleContext
public class ScaleContext
Scale context for min/max computation.
Field Summary |
---|
Fields inherited from interface org.eclipse.birt.chart.computation.IConstants |
---|
ABOVE, ANCILLARY_AXIS, ANCILLARY_BASE, AUTO, AVERAGE, AXIS, BACKWARD, BASE, BASE_AXIS, BELOW, BIG_NUMBER_PRIMITIVE_ARRAY, BOOLEAN, BOTTOM, CENTER, COLLECTION, DATE_TIME, DESIGN_TIME, EMPTY_STRING, EQUAL, FORWARD, HORIZONTAL, INSIDE, LABELS, LEFT, LEGEND_ENTRY, LEGEND_GROUP_NAME, LEGEND_MINSLICE_ENTRY, LEGEND_SEPERATOR, LESS, LINE_EXPAND_DOUBLE_SIZE, LINE_EXPAND_SIZE, LINEAR, LOG_10, LOGARITHMIC, MAJOR, MAX, MIN, MINOR, MORE, NON_PRIMITIVE_ARRAY, NULL_STRING, NUMERICAL, ONE_SPACE, ORTHOGONAL, ORTHOGONAL_AXIS, OTHER, OUTSIDE, PERCENT, POSITION_MASK, POSITION_MOVE_ABOVE, POSITION_MOVE_BELOW, POSITION_MOVE_LEFT, POSITION_MOVE_RIGHT, PRIMITIVE_ARRAY, RIGHT, RUN_TIME, SOME_NULL, TEXT, THREE_D, TICK_ABOVE, TICK_ACROSS, TICK_BELOW, TICK_LEFT, TICK_NONE, TICK_RIGHT, TICK_SIDE1, TICK_SIDE2, TICK_SIZE, TOP, TWO_5_D, TWO_D, UNDEFINED, UNDEFINED_STRING, USER_INTERFACE, VALUE, VERTICAL |
Constructor Summary | |
---|---|
ScaleContext(int iMarginPercent,
int iType)
|
|
ScaleContext(int iMarginPercent,
int iType,
java.lang.Object oMinAuto,
java.lang.Object oMaxAuto,
java.lang.Object oStep)
|
|
ScaleContext(int iMarginPercent,
int iType,
java.lang.Object oUnit,
java.lang.Object oMinValue,
java.lang.Object oMaxValue,
java.lang.Object oStep)
|
Method Summary | |
---|---|
void |
computeMinMax()
|
void |
computeMinMax(boolean bAlignZero)
|
ScaleContext |
copy()
|
static ScaleContext |
createSimpleScale(java.lang.Object oMin,
java.lang.Object oMax)
Creates a simple instance of scale. |
java.lang.Object |
getMax()
Returns the maximum of the scale |
java.lang.Object |
getMaxWithMargin()
Returns the maximum plus margin. |
java.lang.Object |
getMin()
Returns the minimum of the scale |
java.lang.Object |
getMinWithMargin()
Returns the minimum plus margin. |
java.lang.Object |
getStep()
|
java.lang.Integer |
getStepNumber()
|
java.lang.Object |
getUnit()
|
boolean |
isExpandMinmax()
|
void |
setExpandMinmax(boolean expandMinmax)
|
void |
setFixedStep(boolean bStepFixed,
java.lang.Integer oStepNumber)
|
void |
setFixedValue(boolean bMinimumFixed,
boolean bMaximumFixed,
java.lang.Object oMinFixed,
java.lang.Object oMaxFixed)
|
void |
setMax(java.lang.Object oMax)
|
void |
setMaxWithMargin(java.lang.Object oMaxAuto)
|
void |
setMin(java.lang.Object oMin)
|
void |
setMinWithMargin(java.lang.Object oMinAuto)
|
void |
setStep(java.lang.Object oStep)
|
void |
setStepNumber(java.lang.Integer oStepNumber)
|
void |
setUnit(java.lang.Object oUnit)
|
void |
updateShared(ScaleContext that)
|
Methods inherited from class org.eclipse.birt.chart.computation.Methods |
---|
asDateTime, asDouble, asInteger, computeBox, computeBox, computeBox, computeBox, computeFontHeight, computeHeight, computeHeight, computeLabelSize, computePolygon, computePolygon, computePolygon, computeRotatedTopPoint, computeWidth, computeWidth, getLabelPosition, getLocation, getLocation, getNormalizedLocation, getNormalizedLocation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScaleContext(int iMarginPercent, int iType)
public ScaleContext(int iMarginPercent, int iType, java.lang.Object oUnit, java.lang.Object oMinValue, java.lang.Object oMaxValue, java.lang.Object oStep)
public ScaleContext(int iMarginPercent, int iType, java.lang.Object oMinAuto, java.lang.Object oMaxAuto, java.lang.Object oStep)
Method Detail |
---|
public ScaleContext copy()
public void updateShared(ScaleContext that)
that
- public static ScaleContext createSimpleScale(java.lang.Object oMin, java.lang.Object oMax)
oMin
- oMax
- public void setFixedValue(boolean bMinimumFixed, boolean bMaximumFixed, java.lang.Object oMinFixed, java.lang.Object oMaxFixed)
public void setFixedStep(boolean bStepFixed, java.lang.Integer oStepNumber)
public java.lang.Object getMin()
public void setMin(java.lang.Object oMin)
public java.lang.Object getMax()
public void setMax(java.lang.Object oMax)
public java.lang.Object getMinWithMargin()
public void setMinWithMargin(java.lang.Object oMinAuto)
public java.lang.Object getMaxWithMargin()
public void setMaxWithMargin(java.lang.Object oMaxAuto)
public java.lang.Object getStep()
public void setStep(java.lang.Object oStep)
public java.lang.Integer getStepNumber()
public void setStepNumber(java.lang.Integer oStepNumber)
public void computeMinMax()
public void computeMinMax(boolean bAlignZero)
public java.lang.Object getUnit()
public void setUnit(java.lang.Object oUnit)
public boolean isExpandMinmax()
public void setExpandMinmax(boolean expandMinmax)
expandMinmax
- The bExpandMinmax to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |