|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.computation.withaxes.AxisSubUnit
public final class AxisSubUnit
Computation unit for total, min, max and etc.
Method Summary | |
---|---|
void |
computeTotal(double dValue)
|
double |
getLastPosition(double dValue)
Gets the last position |
double |
getNegativeTotal()
|
double |
getPositiveTotal()
|
double |
getStackedValue(double dValue)
Returns the current accumulated value. |
boolean |
isStackTogether()
Returns if current positive and negative values are aggregated together or not |
void |
reset()
|
void |
setLastPosition(double dValue,
double dBaseLocation,
double dMargin)
Saves the last position and uses to compute current position by adding margin |
double |
stackValue(double dValue)
Accumulates the value and returns the result. |
double |
valuePercentage(double dValue)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final void reset()
public boolean isStackTogether()
public final double stackValue(double dValue)
dValue
- the value to accumulate
isStackTogether()
,
getStackedValue(double)
public final double getStackedValue(double dValue)
dValue
- value to check the sign. If stack together, it's no use.
public final void computeTotal(double dValue)
public final double getPositiveTotal()
public final double getNegativeTotal()
public final double valuePercentage(double dValue)
public final void setLastPosition(double dValue, double dBaseLocation, double dMargin)
dValue
- value to check the max or min locationdBaseLocation
- base location when last position is nulldMargin
- margin locationpublic final double getLastPosition(double dValue)
dValue
- value to check the max or min location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |