All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.java.swing.BoundedRangeModel
- public interface BoundedRangeModel
-
addChangeListener(ChangeListener)
- Adds x as a listener to changes in the model.
-
getExtent()
- Returns the model's extent, the length of the inner range that
begins at the model's value.
-
getMaximum()
-
-
getMinimum()
-
-
getValue()
- Returns the model's value.
-
removeChangeListener(ChangeListener)
- Removes x as a listener to changes in the model.
-
setExtent(int)
- Sets the model's extent to x.
-
setMaximum(int)
- Sets the model's maximum to x.
-
setMinimum(int)
- Sets the model's minimum to x.
-
setValue(int)
- Sets the model's value to x.
getMinimum
public abstract int getMinimum()
- Returns:
- the model's minimum
- See Also:
- setMinimum
setMinimum
public abstract void setMinimum(int x)
- Sets the model's minimum to x. If any of the current maximum,
value, or extent are outside of the new minimum, they are adjusted.
Notifies any listeners if the model changes.
- Parameters:
- x - the model's new minimum
- See Also:
- getMinimum, addChangeListener
getMaximum
public abstract int getMaximum()
- Returns:
- the model's maximum
- See Also:
- setMaximum
setMaximum
public abstract void setMaximum(int x)
- Sets the model's maximum to x. If any of the current minimum,
value, or extent are outside of the new maximum, they are adjusted.
Notifies any listeners if the model changes.
- Parameters:
- x - the model's new maximum
- See Also:
- getMaximum, addChangeListener
getValue
public abstract int getValue()
- Returns the model's value. The value is always between the model's
minimum and maximum, inclusive.
- Returns:
- the model's value
- See Also:
- setValue
setValue
public abstract void setValue(int x)
- Sets the model's value to x. If x is less than the
minimum or greater than the maximum, or if it causes the extent to
extend beyond the maximum, this method throws
IllegalArgumentException and the value is not changed.
Notifies any listeners if the model changes.
- Parameters:
- x - the model's new value
- Throws: IllegalArgumentException
- if x is outside
the legal range
- See Also:
- getValue
getExtent
public abstract int getExtent()
- Returns the model's extent, the length of the inner range that
begins at the model's value. The value plus the extent must always
be between the model's minimum and maximum, inclusive.
- Returns:
- the model's extent
- See Also:
- setExtent, getValue
setExtent
public abstract void setExtent(int x)
- Sets the model's extent to x. If x is less than zero, or
if the value plus x is greater than the maximum, this method
throws IllegalArgumentException and the extent is not
changed.
Notifies any listeners if the model changes.
- Parameters:
- x - the model's new extent
- Throws: IllegalArgumentException
- if x is negative
or causes the inner range to
extend beyond the maximum
- See Also:
- getExtent, getValue
addChangeListener
public abstract void addChangeListener(ChangeListener x)
- Adds x as a listener to changes in the model.
removeChangeListener
public abstract void removeChangeListener(ChangeListener x)
- Removes x as a listener to changes in the model.
All Packages Class Hierarchy This Package Previous Next Index