|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.monitorenter.gui.chart.rangepolicies.ARangePolicy
info.monitorenter.gui.chart.rangepolicies.RangePolicyHighestValues
public final class RangePolicyHighestValues
Range policy implementation that will force a viewport that only shows the highest values that are in the range of maximum - x.
Field Summary |
---|
Fields inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy |
---|
m_propertyChangeSupport |
Fields inherited from interface info.monitorenter.gui.chart.IRangePolicy |
---|
PROPERTY_RANGE, PROPERTY_RANGE_MAX, PROPERTY_RANGE_MIN |
Constructor Summary | |
---|---|
RangePolicyHighestValues()
Creates a range policy with an unconfigured range ( Range.RANGE_UNBOUNDED )
that will show the 50 hightest values. |
|
RangePolicyHighestValues(int amountHighestValues)
Creates a range policy with an unconfigured range ( Range.RANGE_UNBOUNDED )
that will show the given amount of highest values. |
|
RangePolicyHighestValues(Range range,
double highestValueRangeToShow)
Constructor with a range and the value range for the highest values to show only. |
Method Summary | |
---|---|
double |
getMax(double chartMin,
double chartMax)
Returns the maximum of the chart always. |
double |
getMin(double chartMin,
double chartMax)
Returns the maximum of the chart - interal highestValueRangeToShow or chartMin if greater. |
Methods inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy |
---|
addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, getRange, removePropertyChangeListener, removePropertyChangeListener, setRange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangePolicyHighestValues()
Range.RANGE_UNBOUNDED
)
that will show the 50 hightest values.
public RangePolicyHighestValues(int amountHighestValues)
Range.RANGE_UNBOUNDED
)
that will show the given amount of highest values.
amountHighestValues
- the amount of highest values to show.public RangePolicyHighestValues(Range range, double highestValueRangeToShow)
range
- unused, maximum bound is always returned.highestValueRangeToShow
- the value range for the highest values to show.Method Detail |
---|
public double getMax(double chartMin, double chartMax)
chartMin
- ignored.chartMax
- returned always.
IRangePolicy.getMax(double, double)
public double getMin(double chartMin, double chartMax)
chartMin
- used for return value if chartMax - highestValuesToShow is smaller
than this minimum of the chart.chartMax
- upper bound to compute down to the start of the latest highest
values.
IRangePolicy.getMin(double, double)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |