info.monitorenter.gui.chart.rangepolicies
Class RangePolicyForcedPoint

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

public final class RangePolicyForcedPoint
extends RangePolicyMinimumViewport

A range policy that forces the chart always to display the constructor given point regardless of the actual bounds of the traces within the chart.

Version:
$Revision: 1.8 $
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
RangePolicyForcedPoint()
          Creates a range policy that ensures zero to be visible.
RangePolicyForcedPoint(double point)
          Creates a range policy backed by the given point in the dimension this policy is used (x or y).
 
Method Summary
 void setPoint(double point)
          Sets the point to ensure to be visible.
 void setRange(Range range)
          This method is an invariant of the super class contract: only the minimum value of the given range is used to enforce visibility.
 
Methods inherited from class info.monitorenter.gui.chart.rangepolicies.RangePolicyMinimumViewport
getMax, getMin
 
Methods inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy
addPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangePolicyForcedPoint

public RangePolicyForcedPoint()
Creates a range policy that ensures zero to be visible.


RangePolicyForcedPoint

public RangePolicyForcedPoint(double point)
Creates a range policy backed by the given point in the dimension this policy is used (x or y).

Parameters:
point - the point that always has to be shown.
Method Detail

setPoint

public void setPoint(double point)
Sets the point to ensure to be visible.

Parameters:
point - the point to ensure to be visible.

setRange

public void setRange(Range range)
This method is an invariant of the super class contract: only the minimum value of the given range is used to enforce visibility.

Use setPoint(double) instead.

Specified by:
setRange in interface IRangePolicy
Overrides:
setRange in class ARangePolicy
Parameters:
range - the internal range that may be taken into account for returning bounds from IRangePolicy.getMax(double, double) and IRangePolicy.getMax(double, double).


Copyright © 2001 - 2010 LGPL, All Rights Footloose.