All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicScrollPaneUI

java.lang.Object
   |
   +----com.sun.java.swing.plaf.ComponentUI
           |
           +----com.sun.java.swing.plaf.ScrollPaneUI
                   |
                   +----com.sun.java.swing.basic.BasicScrollPaneUI

public class BasicScrollPaneUI
extends ScrollPaneUI
implements ScrollPaneConstants, Serializable
A Windows L&F implementation of ScrollPaneUI.


Variable Index

 o defaultBorder
 o hsbListener
 o scrollpane
 o viewportListener
 o vsbListener

Constructor Index

 o BasicScrollPaneUI()

Method Index

 o createHSBListener()
 o createLayoutManager()
 o createUI(JComponent)
 o createViewportListener()
 o createVSBListener()
 o getColumnHeader()
 o getCorner(String)
 o getHorizontalScrollBar()
 o getHorizontalScrollBarPolicy()
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getPreferredSize(JComponent)
 o getRowHeader()
 o getSPLayout()
 o getVerticalScrollBar()
 o getVerticalScrollBarPolicy()
 o getViewport()
 o installUI(JComponent)
 o paint(Graphics, JComponent)
 o setColumnHeader(JViewport)
If an old columnHeader exists, remove it.
 o setCorner(String, Component)
 o setHorizontalScrollBarPolicy(int)
 o setRowHeader(JViewport)
If an old rowHeader exists, remove it.
 o setVerticalScrollBarPolicy(int)
 o setViewport(JViewport)
Remove the old viewport (if there is one), force the viewPosition of the new viewport to be in the +x,+y quadrant, sync up the row and column headers (if there are any) with the new viewport, and finally sync the scrollbars and headers with the new viewport.
 o syncScrollPaneWithViewport()
 o uninstallUI(JComponent)

Variables

 o defaultBorder
 protected static Border defaultBorder
 o scrollpane
 protected JScrollPane scrollpane
 o vsbListener
 protected ChangeListener vsbListener
 o hsbListener
 protected ChangeListener hsbListener
 o viewportListener
 protected ChangeListener viewportListener

Constructors

 o BasicScrollPaneUI
 public BasicScrollPaneUI()

Methods

 o paint
 public void paint(Graphics g,
                   JComponent c)
Overrides:
paint in class ComponentUI
 o getPreferredSize
 public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI
 o getMinimumSize
 public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class ComponentUI
 o getMaximumSize
 public Dimension getMaximumSize(JComponent x)
Overrides:
getMaximumSize in class ComponentUI
 o installUI
 public void installUI(JComponent x)
Overrides:
installUI in class ComponentUI
 o uninstallUI
 public void uninstallUI(JComponent x)
Overrides:
uninstallUI in class ComponentUI
 o createUI
 public static ComponentUI createUI(JComponent x)
 o getSPLayout
 protected ScrollPaneLayout getSPLayout()
 o getVerticalScrollBarPolicy
 public int getVerticalScrollBarPolicy()
Overrides:
getVerticalScrollBarPolicy in class ScrollPaneUI
 o setVerticalScrollBarPolicy
 public void setVerticalScrollBarPolicy(int x)
Overrides:
setVerticalScrollBarPolicy in class ScrollPaneUI
 o getHorizontalScrollBarPolicy
 public int getHorizontalScrollBarPolicy()
Overrides:
getHorizontalScrollBarPolicy in class ScrollPaneUI
 o setHorizontalScrollBarPolicy
 public void setHorizontalScrollBarPolicy(int x)
Overrides:
setHorizontalScrollBarPolicy in class ScrollPaneUI
 o getHorizontalScrollBar
 public JScrollBar getHorizontalScrollBar()
Overrides:
getHorizontalScrollBar in class ScrollPaneUI
 o getVerticalScrollBar
 public JScrollBar getVerticalScrollBar()
Overrides:
getVerticalScrollBar in class ScrollPaneUI
 o setViewport
 public void setViewport(JViewport newViewport)
Remove the old viewport (if there is one), force the viewPosition of the new viewport to be in the +x,+y quadrant, sync up the row and column headers (if there are any) with the new viewport, and finally sync the scrollbars and headers with the new viewport.

Overrides:
setViewport in class ScrollPaneUI
 o getViewport
 public JViewport getViewport()
Overrides:
getViewport in class ScrollPaneUI
 o setRowHeader
 public void setRowHeader(JViewport newRowHead)
If an old rowHeader exists, remove it. If the new rowHeader isn't null, sync the y coordinate of the its viewPosition with the viewport (if there is one) and then add it to the ScrollPane.

Overrides:
setRowHeader in class ScrollPaneUI
 o getRowHeader
 public JViewport getRowHeader()
Overrides:
getRowHeader in class ScrollPaneUI
 o setColumnHeader
 public void setColumnHeader(JViewport newColHead)
If an old columnHeader exists, remove it. If the new columnHeader isn't null, sync the x coordinate of the its viewPosition with the viewport (if there is one) and then add it to the ScrollPane.

Overrides:
setColumnHeader in class ScrollPaneUI
 o getColumnHeader
 public JViewport getColumnHeader()
Overrides:
getColumnHeader in class ScrollPaneUI
 o getCorner
 public Component getCorner(String key)
Overrides:
getCorner in class ScrollPaneUI
 o setCorner
 public void setCorner(String key,
                       Component x)
Overrides:
setCorner in class ScrollPaneUI
 o syncScrollPaneWithViewport
 protected void syncScrollPaneWithViewport()
 o createViewportListener
 protected ChangeListener createViewportListener()
 o createHSBListener
 protected ChangeListener createHSBListener()
 o createVSBListener
 protected ChangeListener createVSBListener()
 o createLayoutManager
 protected LayoutManager createLayoutManager()

All Packages  Class Hierarchy  This Package  Previous  Next  Index