Draw2D v2.0

org.eclipse.draw2d
Interface RangeModel

All Known Implementing Classes:
DefaultRangeModel

public interface RangeModel


Field Summary
static String PROPERTY_EXTENT
           
static String PROPERTY_MAXIMUM
           
static String PROPERTY_MINIMUM
           
static String PROPERTY_VALUE
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Registers listener as a PropertyChangeListener of this RangeModel.
 int getExtent()
          Returns the extent.
 int getMaximum()
          Returns the maximum value in the range.
 int getMinimum()
          Returns the minimum value in the range.
 int getValue()
          Returns the current value.
 boolean isEnabled()
          Returns true if this RangeModel is enabled.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes the given listener from this RangeModel's list of PropertyChangeListeners.
 void setExtent(int extent)
          Sets the extent.
 void setMaximum(int max)
          Sets the maximum value of the range.
 void setMinimum(int min)
          Sets the minimum value of the range.
 void setValue(int value)
          Sets the current value.
 

Field Detail

PROPERTY_VALUE

public static final String PROPERTY_VALUE

PROPERTY_EXTENT

public static final String PROPERTY_EXTENT

PROPERTY_MINIMUM

public static final String PROPERTY_MINIMUM

PROPERTY_MAXIMUM

public static final String PROPERTY_MAXIMUM
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Registers listener as a PropertyChangeListener of this RangeModel.

getExtent

public int getExtent()
Returns the extent.

getMaximum

public int getMaximum()
Returns the maximum value in the range.

getMinimum

public int getMinimum()
Returns the minimum value in the range.

getValue

public int getValue()
Returns the current value.

isEnabled

public boolean isEnabled()
Returns true if this RangeModel is enabled.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Removes the given listener from this RangeModel's list of PropertyChangeListeners.

setExtent

public void setExtent(int extent)
Sets the extent.

setMaximum

public void setMaximum(int max)
Sets the maximum value of the range.

setMinimum

public void setMinimum(int min)
Sets the minimum value of the range.

setValue

public void setValue(int value)
Sets the current value.

Draw2D v2.0