public final class AxisSubUnit
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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) |
public final void reset()
public boolean isStackTogether()
public final double stackValue(double dValue)
dValue
- the value to accumulateisStackTogether()
,
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 locationCopyright © 2005-2008 Actuate Corp. All rights reserved.