Class RangePolicyHighestValuesForcedMin
- java.lang.Object
-
- info.monitorenter.gui.chart.rangepolicies.ARangePolicy
-
- info.monitorenter.gui.chart.rangepolicies.RangePolicyHighestValuesForcedMin
-
- All Implemented Interfaces:
IRangePolicy
,java.io.Serializable
public final class RangePolicyHighestValuesForcedMin extends ARangePolicy
Range policy implementation that will show a viewport with only the highest values that are in the range of maximum - x which also forces the lower bound to be shown if no data towards this bound exists.- Version:
- $Revision: 1.7 $
- Author:
- zoola, Achim Westermann
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description RangePolicyHighestValuesForcedMin(Range range, double highestValueRangeToShow)
Constructor with a range and the value range for the highest values to show only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
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.int
hashCode()
-
Methods inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy
addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, getRange, removePropertyChangeListener, removePropertyChangeListener, setRange
-
-
-
-
Constructor Detail
-
RangePolicyHighestValuesForcedMin
public RangePolicyHighestValuesForcedMin(Range range, double highestValueRangeToShow)
Constructor with a range and the value range for the highest values to show only.- Parameters:
range
- unused, maximum bound is always returned.highestValueRangeToShow
- the value range for the highest values to show.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classARangePolicy
- See Also:
Object.equals(java.lang.Object)
-
getMax
public double getMax(double chartMin, double chartMax)
Returns the maximum of the chart always.- Parameters:
chartMin
- ignored.chartMax
- returned always.- Returns:
- Returns the maximum of the chart always.
- See Also:
IRangePolicy.getMax(double, double)
-
getMin
public double getMin(double chartMin, double chartMax)
Returns the maximum of the chart - interal highestValueRangeToShow.- Parameters:
chartMin
- unused: the lower bound is always controlled by max - internal highesValueRangeToShow.chartMax
- upper bound to compute down to the start of the latest highest values.- Returns:
- the maximum of the chart - interal highestValueRangeToShow.
- See Also:
IRangePolicy.getMin(double, double)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classARangePolicy
- See Also:
Object.hashCode()
-
-