All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.JBoundedRangeModel
java.lang.Object
|
+----com.sun.java.swing.JBoundedRangeModel
- public class JBoundedRangeModel
- extends Object
- implements BoundedRangeModel
-
changeEvent
-
-
changeListener
-
-
JBoundedRangeModel()
-
-
addChangeListener(ChangeListener)
-
-
getExtent()
-
-
getMaximum()
-
-
getMinimum()
-
-
getValue()
-
-
removeChangeListener(ChangeListener)
-
-
setExtent(int)
- Sets the extent to n.
-
setMaximum(int)
-
-
setMinimum(int)
-
-
setRangeProperties(int, int, int, int)
- The attribute-changing primitive.
-
setValue(int)
- Sets the value to n.
-
toString()
-
changeListener
protected ChangeListener changeListener
changeEvent
protected ChangeEvent changeEvent
JBoundedRangeModel
public JBoundedRangeModel()
getValue
public int getValue()
getExtent
public int getExtent()
getMinimum
public int getMinimum()
getMaximum
public int getMaximum()
setValue
public void setValue(int n)
- Sets the value to n. Makes sure that
the new value falls within the min/max values.
If n is less than min then value will be set to min.
If n is greater than an max - extent then value will be set to max - extent.
setExtent
public void setExtent(int n)
- Sets the extent to n. Makes sure that
the new extent falls within the min/max values.
If n is less than 0 then extent will be set to 0.
If n + value is greater than an max then extent will be set to max.
setMinimum
public void setMinimum(int n)
setMaximum
public void setMaximum(int n)
setRangeProperties
public void setRangeProperties(int newValue,
int newExtent,
int newMin,
int newMax)
- The attribute-changing primitive. This method ensures that the
model is always in a consistent state by enforcing the following
constraints:
minimum <= maximum
minimum <= value
value <= maximum - extent
extent >= 0
If the arguments don't satisfy these constraints, this method throws
IllegalArgumentException.
Notifies listeners if any attributes are changed.
addChangeListener
public void addChangeListener(ChangeListener l)
removeChangeListener
public void removeChangeListener(ChangeListener l)
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index