info.monitorenter.gui.chart.rangepolicies
Class RangePolicyUnbounded

java.lang.Object
  extended by info.monitorenter.gui.chart.rangepolicies.ARangePolicy
      extended by info.monitorenter.gui.chart.rangepolicies.RangePolicyUnbounded
All Implemented Interfaces:
IRangePolicy, java.io.Serializable

public final class RangePolicyUnbounded
extends ARangePolicy

A dummy IRangePolicy implementation that reflects the bounds of the connected Chart2D instance.

Version:
$Revision: 1.7 $
Author:
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
RangePolicyUnbounded()
          Creates a range policy with an unconfigured range (Range.RANGE_UNBOUNDED).
RangePolicyUnbounded(Range range)
          Creates a range policy backed by the given range which is not used for getMax(double, double) or getMin(double, double) but stored for later changes of the range policy from outside.
 
Method Summary
 double getMax(double chartMin, double chartMax)
          Define the upper bound of the Chart2D's value range.
 double getMin(double chartMin, double chartMax)
          Define the lower bound of the Chart2D's value range.
 
Methods inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy
addPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListener, setRange
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangePolicyUnbounded

public RangePolicyUnbounded()
Creates a range policy with an unconfigured range (Range.RANGE_UNBOUNDED).


RangePolicyUnbounded

public RangePolicyUnbounded(Range range)
Creates a range policy backed by the given range which is not used for getMax(double, double) or getMin(double, double) but stored for later changes of the range policy from outside.

Parameters:
range - the range that may be used to decide about the policy of displaying the range.
See Also:
AAxis.setRangePolicy(info.monitorenter.gui.chart.IRangePolicy)
Method Detail

getMax

public double getMax(double chartMin,
                     double chartMax)
Description copied from interface: IRangePolicy
Define the upper bound of the Chart2D's value range. Depends on the AAxis this instance is bound to.

Parameters:
chartMin - the minimum value of the connected Chart2D that may / should be taken into account.
chartMax - the maximum value of the connected Chart2D that may / should be taken into account.
Returns:
the maximum value (upper bound) for the Chart2D to display.
See Also:
IRangePolicy.getMax(double,double)

getMin

public double getMin(double chartMin,
                     double chartMax)
Description copied from interface: IRangePolicy
Define the lower bound of the Chart2D's value range. Depends on the AAxis this instance is bound to.

Parameters:
chartMin - the minimum value of the connected Chart2D that may / should be taken into account.
chartMax - the maximum value of the connected Chart2D that may / should be taken into account.
Returns:
the minimum value (lower bound) for the Chart2D to display.
See Also:
IRangePolicy.getMin(double, double)


Copyright © 2001 - 2010 LGPL, All Rights Footloose.