JIDE 3.5.15

com.jidesoft.range
Class AbstractRange<T>

java.lang.Object
  extended by com.jidesoft.range.AbstractRange<T>
All Implemented Interfaces:
Range<T>
Direct Known Subclasses:
AbstractNumericRange, CategoryRange, TimeRange

public abstract class AbstractRange<T>
extends Object
implements Range<T>

An abstract implementation of Range


Field Summary
 
Fields inherited from interface com.jidesoft.range.Range
PROPERTY_MAX, PROPERTY_MIN
 
Constructor Summary
AbstractRange()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          You can add a property change listener if you are interested to know when the range changes
 Range<T> copy()
           
abstract  Range<T> createIntermediate(Range<T> targetRange, double position)
           
protected  void firePropertyChange(PropertyChangeEvent evt)
           
protected  void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
           
protected  void firePropertyChange(String propertyName, int oldValue, int newValue)
           
protected  void firePropertyChange(String propertyName, Object oldValue, Object newValue)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
          Remove a property change listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.range.Range
adjust, contains, lower, maximum, minimum, size, upper
 

Constructor Detail

AbstractRange

public AbstractRange()
Method Detail

copy

public Range<T> copy()

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: Range
You can add a property change listener if you are interested to know when the range changes

Specified by:
addPropertyChangeListener in interface Range<T>
Parameters:
listener - the new property change listener

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: Range
Remove a property change listener

Specified by:
removePropertyChangeListener in interface Range<T>
Parameters:
listener - the PropertyChangeListener to remove

firePropertyChange

protected void firePropertyChange(PropertyChangeEvent evt)

firePropertyChange

protected void firePropertyChange(String propertyName,
                                  boolean oldValue,
                                  boolean newValue)

firePropertyChange

protected void firePropertyChange(String propertyName,
                                  int oldValue,
                                  int newValue)

firePropertyChange

protected void firePropertyChange(String propertyName,
                                  Object oldValue,
                                  Object newValue)

createIntermediate

public abstract Range<T> createIntermediate(Range<T> targetRange,
                                            double position)

JIDE 3.5.15