All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.DefaultBoundedRangeModel

java.lang.Object
   |
   +----com.sun.java.swing.DefaultBoundedRangeModel

public class DefaultBoundedRangeModel
extends Object
implements BoundedRangeModel, Serializable

Variable Index

 o changeEvent
 o listenerList

Constructor Index

 o DefaultBoundedRangeModel()

Method Index

 o addChangeListener(ChangeListener)
Adds a ChangeListener to the button.
 o fireStateChanged()
 o getExtent()
 o getMaximum()
 o getMinimum()
 o getValue()
 o getValueIsAdjusting()
 o removeChangeListener(ChangeListener)
Removes a ChangeListener from the button.
 o setExtent(int)
Sets the extent to n.
 o setMaximum(int)
 o setMinimum(int)
 o setRangeProperties(int, int, int, int, boolean)
The attribute-changing primitive.
 o setValue(int)
Sets the value to n.
 o setValueIsAdjusting(boolean)
 o toString()

Variables

 o changeEvent
 protected transient ChangeEvent changeEvent
 o listenerList
 protected EventListenerList listenerList

Constructors

 o DefaultBoundedRangeModel
 public DefaultBoundedRangeModel()

Methods

 o getValue
 public int getValue()
 o getExtent
 public int getExtent()
 o getMinimum
 public int getMinimum()
 o getMaximum
 public int getMaximum()
 o 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.

 o 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.

 o setMinimum
 public void setMinimum(int n)
 o setMaximum
 public void setMaximum(int n)
 o setValueIsAdjusting
 public void setValueIsAdjusting(boolean b)
 o getValueIsAdjusting
 public boolean getValueIsAdjusting()
 o setRangeProperties
 public void setRangeProperties(int newValue,
                                int newExtent,
                                int newMin,
                                int newMax,
                                boolean adjusting)
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, the arguements are forced to fit the necessary ranges. Notifies listeners if any attributes are changed.

 o addChangeListener
 public void addChangeListener(ChangeListener l)
Adds a ChangeListener to the button.

 o removeChangeListener
 public void removeChangeListener(ChangeListener l)
Removes a ChangeListener from the button.

 o fireStateChanged
 protected void fireStateChanged()
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index