|
|||||||||||
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.AutoScale
Encapsulates the auto scaling algorithms used by the rendering and chart computation framework.
Field Summary |
Fields inherited from interface org.eclipse.birt.chart.computation.IConstants |
ABOVE, ANCILLARY_AXIS, ANCILLARY_BASE, AVERAGE, AXIS, BACKWARD, BASE, BASE_AXIS, BELOW, BOTTOM, CENTER, COLLECTION, DATE_TIME, DESIGN_TIME, EMPTY_STRING, EQUAL, FORWARD, HORIZONTAL, INSIDE, LABELS, LEFT, LESS, LINEAR, LOG_10, LOGARITHMIC, MAJOR, MAX, MIN, MINOR, MORE, NON_PRIMITIVE_ARRAY, NULL_STRING, NUMERICAL, ONE_SPACE, ORTHOGONAL, ORTHOGONAL_AXIS, OTHER, OUTSIDE, PERCENT, 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 | |
AutoScale(int _iType,
java.lang.Object _oMinimum,
java.lang.Object _oMaximum,
java.lang.Object _oStep)
The constructor. |
Method Summary | |
boolean |
checkFit(IDisplayServer xs,
Label la,
int iLabelLocation)
Checks all labels for any overlap for a given axis' scale |
java.lang.Object |
clone()
|
double |
computeStaggeredAxisLabelOffset(IDisplayServer xs,
Label la,
int iOrientation)
|
int |
computeTicks(IDisplayServer xs,
Label la,
int iLabelLocation,
int iOrientation,
double dStart,
double dEnd,
boolean bConsiderStartEndLabels,
AllAxes aax)
|
java.lang.String |
formatCategoryValue(int iType,
java.lang.Object oValue,
int iDateTimeUnit)
Returns the formatted value for given Axis type and value. |
DataSetIterator |
getData()
|
double |
getEnd()
|
double[] |
getEndPoints()
|
FormatSpecifier |
getFormatSpecifier()
|
java.lang.Object |
getMaximum()
|
java.lang.Object |
getMinimum()
|
double[] |
getMinorCoordinates(int iMinorUnitsPerMajor)
|
double |
getNormalizedEnd()
Returns the normalized end point. |
double[] |
getNormalizedEndPoints()
Returns the normalized start and end point. |
double |
getNormalizedStart()
Returns the normalized start point. |
double[] |
getNormalizedTickCoordinates()
Returns the normalized tick coordinates. |
java.lang.String |
getNumericPattern()
Returns an auto computed decimal format pattern for representing axis labels on a numeric axis |
java.lang.String |
getNumericPattern(double dValue)
Returns an auto computed decimal format pattern for representing axis labels on a numeric axis This is used for representing logarithmic values |
RunTimeContext |
getRunTimeContext()
|
double |
getStart()
|
java.lang.Object |
getStep()
|
double[] |
getTickCordinates()
|
int |
getTickCount()
|
int |
getType()
|
java.lang.Object |
getUnit()
|
double |
getUnitSize()
|
boolean |
isAxisLabelStaggered()
|
boolean |
isCategoryScale()
|
boolean |
isMaximumFixed()
|
boolean |
isMinimumFixed()
|
boolean |
isStepFixed()
|
boolean |
isTickLabelVisible(int index)
|
void |
setAlwaysForward(boolean val)
Tick coordinates always lines forward. |
void |
setData(DataSetIterator _oaData)
|
void |
setFormatSpecifier(FormatSpecifier fs)
|
void |
setMaximum(java.lang.Object o)
|
void |
setMaximumFixed(boolean v)
|
void |
setMinimum(java.lang.Object o)
|
void |
setMinimumFixed(boolean v)
|
void |
setRunTimeContext(RunTimeContext context)
|
void |
setStep(java.lang.Object o)
|
void |
setStepFixed(boolean v)
|
void |
updateAxisMinMax(java.lang.Object oMinValue,
java.lang.Object oMaxValue)
|
boolean |
zoomIn()
Zooms IN 'once' into a scale of type numerical or datetime Typically, this is called in a loop until label overlaps occur |
boolean |
zoomOut()
Zooms OUT 'once' into a scale of type numerical or datetime Typically, this is called in a loop until label overlaps occur |
Methods inherited from class org.eclipse.birt.chart.computation.Methods |
asDateTime, asDouble, asInteger, computeBox, computePolygon, computeRotatedTopPoint, getLabelPosition, getLocation, getLocation, getLocation, getNormalizedLocation, getNormalizedLocation |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AutoScale(int _iType, java.lang.Object _oMinimum, java.lang.Object _oMaximum, java.lang.Object _oStep)
_iType
- _oMinimum
- _oMaximum
- _oStep
- Method Detail |
public final void setAlwaysForward(boolean val)
val
- public final java.lang.Object clone()
public final boolean zoomIn()
public final boolean zoomOut()
public final java.lang.String getNumericPattern(double dValue)
public final java.lang.String getNumericPattern()
public final int getType()
public final void setData(DataSetIterator _oaData)
_oaData
- public final FormatSpecifier getFormatSpecifier()
public final void setFormatSpecifier(FormatSpecifier fs)
fs
- public final java.lang.Object getUnit()
public final DataSetIterator getData()
public final boolean isTickLabelVisible(int index)
index
-
public final boolean isAxisLabelStaggered()
public final double[] getTickCordinates()
public final double[] getNormalizedTickCoordinates()
public final double getNormalizedStart()
public final double getNormalizedEnd()
public final double[] getNormalizedEndPoints()
public final double[] getEndPoints()
public final int getTickCount()
public final double getUnitSize()
public final java.lang.Object getMinimum()
public final void setMinimum(java.lang.Object o)
o
- public final java.lang.Object getMaximum()
public final void setMaximum(java.lang.Object o)
o
- public final java.lang.Object getStep()
public final void setStep(java.lang.Object o)
o
- public final void updateAxisMinMax(java.lang.Object oMinValue, java.lang.Object oMaxValue)
oMinValue
- oMaxValue
- public final boolean checkFit(IDisplayServer xs, Label la, int iLabelLocation) throws ChartException
la
- iLabelLocation
-
ChartException
public final double getStart()
public final double getEnd()
public final int computeTicks(IDisplayServer xs, Label la, int iLabelLocation, int iOrientation, double dStart, double dEnd, boolean bConsiderStartEndLabels, AllAxes aax) throws ChartException
la
- iLabelLocation
- iOrientation
- dStart
- dEnd
- bConsiderStartEndLabels
- aax
-
ChartException
public final java.lang.String formatCategoryValue(int iType, java.lang.Object oValue, int iDateTimeUnit)
iType
- oValue
-
public final double computeStaggeredAxisLabelOffset(IDisplayServer xs, Label la, int iOrientation) throws ChartException
xs
- la
- iOrientation
-
ChartException
public final boolean isStepFixed()
public final void setStepFixed(boolean v)
v
- public final boolean isMinimumFixed()
public final void setMinimumFixed(boolean v)
v
- public final boolean isMaximumFixed()
public final void setMaximumFixed(boolean v)
v
- public final boolean isCategoryScale()
public final double[] getMinorCoordinates(int iMinorUnitsPerMajor)
iMinorUnitsPerMajor
-
public final RunTimeContext getRunTimeContext()
public final void setRunTimeContext(RunTimeContext context)
context
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |