All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.JScrollBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JScrollBar

public class JScrollBar
extends JComponent
implements ChangeListener, Adjustable, Accessible
An implementation of a Scrollbar


Variable Index

 o blockIncrement
 o model
 o orientation
 o ui
 o unitIncrement

Constructor Index

 o JScrollBar()
 o JScrollBar(int)
 o JScrollBar(int, int, int, int, int)

Method Index

 o addAdjustmentListener(AdjustmentListener)
 o fireAdjustmentValueChanged(AdjustmentEvent)
 o getAccessibleRole()
Get the role of this object.
 o getAccessibleValue()
Get the accessible value of this object.
 o getBlockIncrement()
 o getBlockIncrement(int)
 o getMaximum()
 o getMaximumSize()
The scrollbar is flexible along it's scrolling axis and rigid along the other axis.
 o getMinimum()
 o getMinimumSize()
The scrollbar is flexible along it's scrolling axis and rigid along the other axis.
 o getModel()
 o getOrientation()
 o getUI()
 o getUIClassID()
 o getUnitIncrement()
 o getUnitIncrement(int)
 o getValue()
 o getValueIsAdjusting()
 o getVisibleAmount()
 o isOpaque()
Returns true if this component is completely opaque.
 o removeAdjustmentListener(AdjustmentListener)
 o setBlockIncrement(int)
 o setEnabled(boolean)
 o setMaximum(int)
 o setMinimum(int)
 o setModel(BoundedRangeModel)
 o setOrientation(int)
 o setUnitIncrement(int)
 o setValue(int)
 o setValueIsAdjusting(boolean)
 o setValues(int, int, int, int)
Ensures that the model is always in a consistent state by enforcing the following constraints.
 o setVisibleAmount(int)
 o stateChanged(ChangeEvent)
Implemented for the ChangeListener interface support.
 o toString()
 o updateUI()
Notification from the UIFactory that the L&F has changed.

Variables

 o ui
 protected ScrollBarUI ui
 o model
 protected BoundedRangeModel model
 o orientation
 protected int orientation
 o unitIncrement
 protected int unitIncrement
 o blockIncrement
 protected int blockIncrement

Constructors

 o JScrollBar
 public JScrollBar()
 o JScrollBar
 public JScrollBar(int orientation)
 o JScrollBar
 public JScrollBar(int orientation,
                   int value,
                   int extent,
                   int minimum,
                   int maximum)

Methods

 o getOrientation
 public int getOrientation()
 o getUnitIncrement
 public int getUnitIncrement(int direction)
 o getBlockIncrement
 public int getBlockIncrement(int direction)
 o getUnitIncrement
 public int getUnitIncrement()
 o getBlockIncrement
 public int getBlockIncrement()
 o getValue
 public int getValue()
 o getVisibleAmount
 public int getVisibleAmount()
 o getMinimum
 public int getMinimum()
 o getMaximum
 public int getMaximum()
 o getValueIsAdjusting
 public boolean getValueIsAdjusting()
 o setOrientation
 public void setOrientation(int n)
 o setUnitIncrement
 public void setUnitIncrement(int n)
 o setBlockIncrement
 public void setBlockIncrement(int n)
 o setValue
 public void setValue(int n)
 o setVisibleAmount
 public void setVisibleAmount(int n)
 o setMinimum
 public void setMinimum(int n)
 o setMaximum
 public void setMaximum(int n)
 o setValueIsAdjusting
 public void setValueIsAdjusting(boolean b)
 o updateUI
 public void updateUI()
Notification from the UIFactory that the L&F has changed.

Overrides:
updateUI in class JComponent
 o getUIClassID
 public String getUIClassID()
Returns:
"ScrollBarUI"
Overrides:
getUIClassID in class JComponent
See Also:
getUIClassID, getUI
 o setValues
 public void setValues(int newValue,
                       int newExtent,
                       int newMinimum,
                       int newMaximum)
Ensures that the model is always in a consistent state by enforcing the following constraints.
   minimum < maximum
   minimum <= value
   extent >= 1
   value <= maximum - extent
 
If neccessary we change newValue and newExtent, newExtent is forced to be greater than 0.

 o addAdjustmentListener
 public void addAdjustmentListener(AdjustmentListener l)
 o removeAdjustmentListener
 public void removeAdjustmentListener(AdjustmentListener l)
 o fireAdjustmentValueChanged
 protected void fireAdjustmentValueChanged(AdjustmentEvent e)
 o stateChanged
 public void stateChanged(ChangeEvent e)
Implemented for the ChangeListener interface support. Forwards the event to any adjustmentListeners

 o getModel
 public BoundedRangeModel getModel()
 o setModel
 public void setModel(BoundedRangeModel newModel)
 o getUI
 public ScrollBarUI getUI()
 o getMinimumSize
 public Dimension getMinimumSize()
The scrollbar is flexible along it's scrolling axis and rigid along the other axis.

Overrides:
getMinimumSize in class JComponent
 o getMaximumSize
 public Dimension getMaximumSize()
The scrollbar is flexible along it's scrolling axis and rigid along the other axis.

Overrides:
getMaximumSize in class JComponent
 o setEnabled
 public void setEnabled(boolean x)
Overrides:
setEnabled in class Component
 o toString
 public String toString()
Overrides:
toString in class Component
 o isOpaque
 public boolean isOpaque()
Returns true if this component is completely opaque.

Overrides:
isOpaque in class JComponent
 o getAccessibleRole
 public AccessibleRole getAccessibleRole()
Get the role of this object.

Returns:
an instance of AccessibleRole describing the role of the object
Overrides:
getAccessibleRole in class JComponent
 o getAccessibleValue
 public String getAccessibleValue()
Get the accessible value of this object.

Returns:
a localized String describing the value of this object
Overrides:
getAccessibleValue in class JComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index