API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.basic. BasicScrollPaneUI View Source
Author(s)
Hans Muller
Since
Version
1.73 11/17/05
Serial
Hierarchy
 Object
      ComponentUI
          ScrollPaneUI
              BasicScrollPaneUI
Implements
 ScrollPaneConstants
Subclasses
Description
public class BasicScrollPaneUI
A default L&F implementation of ScrollPaneUI.
See also:   
Constructors
public BasicScrollPaneUI ()
Methods
Hide/Show inherited methods
public boolean contains (JComponent c, int x, int y) [Inherited From ComponentUI]
  Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
protected ChangeListener createHSBChangeListener ()
protected MouseWheelListener createMouseWheelListener ()
  Creates an instance of MouseWheelListener, which is added to the JScrollPane by installUI().
protected PropertyChangeListener createPropertyChangeListener ()
  Creates an instance of PropertyChangeListener that's added to the JScrollPane by installUI().
publicstatic ComponentUI createUI (JComponent x) [Overrides ComponentUI]
protected ChangeListener createViewportChangeListener ()
protected ChangeListener createVSBChangeListener ()
public Accessible getAccessibleChild (JComponent c, int i) [Inherited From ComponentUI]
  Returns the ith Accessible child of the object.
public int getAccessibleChildrenCount (JComponent c) [Inherited From ComponentUI]
  Returns the number of accessible children in the object.
public int getBaseline (JComponent c, int width, int height) [Overrides ComponentUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Overrides ComponentUI]
  Returns an enum indicating how the baseline of the component changes as the size changes.
pack-private InputMap getInputMap (int condition)
public Dimension getMaximumSize (JComponent c) [Overrides ComponentUI]
 
public Dimension getMinimumSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's minimum size appropriate for the look and feel.
public Dimension getPreferredSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's preferred size appropriate for the look and feel.
protected void installDefaults (JScrollPane scrollpane)
protected void installKeyboardActions (JScrollPane c)
protected void installListeners (JScrollPane c)
public void installUI (JComponent x) [Overrides ComponentUI]
pack-privatestatic void loadActionMap (LazyActionMap map)
public void paint (Graphics g, JComponent c) [Overrides ComponentUI]
protected void syncScrollPaneWithViewport ()
protected void uninstallDefaults (JScrollPane c)
protected void uninstallKeyboardActions (JScrollPane c)
protected void uninstallListeners (JComponent c)
public void uninstallUI (JComponent c) [Overrides ComponentUI]
public void update (Graphics g, JComponent c) [Inherited From ComponentUI]
  Notifies this UI delegate that it's time to paint the specified component.
protected void updateColumnHeader (PropertyChangeEvent e)
protected void updateRowHeader (PropertyChangeEvent e)
protected void updateScrollBarDisplayPolicy (PropertyChangeEvent e)
protected void updateViewport (PropertyChangeEvent e)
Fields
Hide/Show inherited fields
publicfinalstatic String COLUMN_HEADER = "COLUMN_HEADER" [Inherited From ScrollPaneConstants]
Identifies the area at the top the viewport between the upper left corner and the upper right corner.
publicfinalstatic String HORIZONTAL_SCROLLBAR = "HORIZONTAL_SCROLLBAR" [Inherited From ScrollPaneConstants]
Identifies a horizonal scrollbar.
publicfinalstatic int HORIZONTAL_SCROLLBAR_ALWAYS = "32" [Inherited From ScrollPaneConstants]
Used to set the horizontal scroll bar policy so that horizontal scrollbars are always displayed.
publicfinalstatic int HORIZONTAL_SCROLLBAR_AS_NEEDED = "30" [Inherited From ScrollPaneConstants]
Used to set the horizontal scroll bar policy so that horizontal scrollbars are displayed only when needed.
publicfinalstatic int HORIZONTAL_SCROLLBAR_NEVER = "31" [Inherited From ScrollPaneConstants]
Used to set the horizontal scroll bar policy so that horizontal scrollbars are never displayed.
publicfinalstatic String HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY" [Inherited From ScrollPaneConstants]
Identifies the horizontal scroll bar policy property.
protected ChangeListener hsbChangeListener
publicfinalstatic String LOWER_LEADING_CORNER = "LOWER_LEADING_CORNER" [Inherited From ScrollPaneConstants]
  Identifies the lower leading edge corner of the viewport.
publicfinalstatic String LOWER_LEFT_CORNER = "LOWER_LEFT_CORNER" [Inherited From ScrollPaneConstants]
Identifies the lower left corner of the viewport.
publicfinalstatic String LOWER_RIGHT_CORNER = "LOWER_RIGHT_CORNER" [Inherited From ScrollPaneConstants]
Identifies the lower right corner of the viewport.
publicfinalstatic String LOWER_TRAILING_CORNER = "LOWER_TRAILING_CORNER" [Inherited From ScrollPaneConstants]
  Identifies the lower trailing edge corner of the viewport.
publicfinalstatic String ROW_HEADER = "ROW_HEADER" [Inherited From ScrollPaneConstants]
Identifies the area along the left side of the viewport between the upper left corner and the lower left corner.
protected JScrollPane scrollpane
protected PropertyChangeListener spPropertyChangeListener
publicfinalstatic String UPPER_LEADING_CORNER = "UPPER_LEADING_CORNER" [Inherited From ScrollPaneConstants]
  Identifies the upper leading edge corner of the viewport.
publicfinalstatic String UPPER_LEFT_CORNER = "UPPER_LEFT_CORNER" [Inherited From ScrollPaneConstants]
Identifies the upper left corner of the viewport.
publicfinalstatic String UPPER_RIGHT_CORNER = "UPPER_RIGHT_CORNER" [Inherited From ScrollPaneConstants]
Identifies the upper right corner of the viewport.
publicfinalstatic String UPPER_TRAILING_CORNER = "UPPER_TRAILING_CORNER" [Inherited From ScrollPaneConstants]
  Identifies the upper trailing edge corner of the viewport.
publicfinalstatic String VERTICAL_SCROLLBAR = "VERTICAL_SCROLLBAR" [Inherited From ScrollPaneConstants]
Identifies a vertical scrollbar.
publicfinalstatic int VERTICAL_SCROLLBAR_ALWAYS = "22" [Inherited From ScrollPaneConstants]
Used to set the vertical scroll bar policy so that vertical scrollbars are always displayed.
publicfinalstatic int VERTICAL_SCROLLBAR_AS_NEEDED = "20" [Inherited From ScrollPaneConstants]
Used to set the vertical scroll bar policy so that vertical scrollbars are displayed only when needed.
publicfinalstatic int VERTICAL_SCROLLBAR_NEVER = "21" [Inherited From ScrollPaneConstants]
Used to set the vertical scroll bar policy so that vertical scrollbars are never displayed.
publicfinalstatic String VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY" [Inherited From ScrollPaneConstants]
Identifies the vertical scroll bar policy property.
publicfinalstatic String VIEWPORT = "VIEWPORT" [Inherited From ScrollPaneConstants]
Identifies a "viewport" or display area, within which scrolled contents are visible.
protected ChangeListener viewportChangeListener
protected ChangeListener vsbChangeListener
Nested Classes
  BasicScrollPaneUI.ViewportChangeHandler
Listener for viewport events.
  BasicScrollPaneUI.HSBChangeListener
Horizontal scrollbar listener.
  BasicScrollPaneUI.VSBChangeListener
Vertical scrollbar listener.
  BasicScrollPaneUI.MouseWheelHandler
MouseWheelHandler is an inner class which implements the MouseWheelListener interface.
  BasicScrollPaneUI.PropertyChangeHandler
  BasicScrollPaneUI.Handler
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar