All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.JScrollBar

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----java.awt.swing.JComponent
                            |
                            +----java.awt.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 getAccessibleStateSet()
Get the state set of this object.
 o getAccessibleValue()
Get the accessible value of this object.
 o getBlockIncrement()
 o getBlockIncrement(int)
 o getMaximum()
 o getMaximumAccessibleValue()
Get the maximum accessible value of this object.
 o getMaximumSize()
The scrollbar is flexible along it's scrolling axis and rigid along the other axis.
 o getMinimum()
 o getMinimumAccessibleValue()
Get the minimum accessible value of this object.
 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 setAccessibleValue(Number)
Set the value of this object as a Number.
 o setBlockIncrement(int)
 o setEnabled(boolean)
Enables or disables this component, depending on the value of the parameter b.
 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()
Returns a string representation of this component and its values.
 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)
Enables or disables this component, depending on the value of the parameter b.

Overrides:
setEnabled in class Component
 o toString
public String toString()
Returns a string representation of this component and its values.

Overrides:
toString in class Component
 o isOpaque
public boolean isOpaque()
Returns true if this component is completely opaque.

Overrides:
isOpaque in class JComponent
 o getAccessibleStateSet
public AccessibleStateSet getAccessibleStateSet()
Get the state set of this object.

Returns:
an instance of AccessibleState containing the current state of the object
Overrides:
getAccessibleStateSet in class JComponent
See Also:
AccessibleState
 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 Number getAccessibleValue()
Get the accessible value of this object.

Returns:
The current value of this object.
Overrides:
getAccessibleValue in class JComponent
 o setAccessibleValue
public boolean setAccessibleValue(Number n)
Set the value of this object as a Number.

Returns:
True if the value was set.
Overrides:
setAccessibleValue in class JComponent
 o getMinimumAccessibleValue
public Number getMinimumAccessibleValue()
Get the minimum accessible value of this object.

Returns:
The minimum value of this object.
Overrides:
getMinimumAccessibleValue in class JComponent
 o getMaximumAccessibleValue
public Number getMaximumAccessibleValue()
Get the maximum accessible value of this object.

Returns:
The maximum value of this object.
Overrides:
getMaximumAccessibleValue in class JComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature