All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

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

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


Variable Index

 o hsbListener
 o scrollpane
 o viewportListener
 o vsbListener

Constructor Index

 o BasicScrollPaneUI()

Method Index

 o createHSBListener()
 o createLayoutManager()
 o createUI(JScrollPane)
 o createViewportListener()
 o createVSBListener()
 o deinstallUI(JComponent)
 o getColumnHeading()
 o getCorner(String)
 o getHorizontalScrollBar()
 o getHorizontalScrollBarPolicy()
 o getInsets(JComponent)
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getPreferredSize(JComponent)
 o getRowHeading()
 o getSPLayout()
 o getVerticalScrollBar()
 o getVerticalScrollBarPolicy()
 o getViewport()
 o installUI(JComponent)
 o paint(Graphics, JComponent)
 o setColumnHeading(JViewport)
If an old columnHeading exists, remove it.
 o setCorner(String, Component)
 o setHorizontalScrollBarPolicy(int)
 o setRowHeading(JViewport)
If an old rowHeading 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 headings (if there are any) with the new viewport, and finally sync the scrollbars and headings with the new viewport.
 o syncScrollPaneWithViewport()

Variables

 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)
 o getPreferredSize
 public Dimension getPreferredSize(JComponent c)
 o getMinimumSize
 public Dimension getMinimumSize(JComponent c)
 o getMaximumSize
 public Dimension getMaximumSize(JComponent x)
 o getInsets
 public Insets getInsets(JComponent x)
 o installUI
 public void installUI(JComponent x)
 o deinstallUI
 public void deinstallUI(JComponent x)
 o createUI
 public static ScrollPaneUI createUI(JScrollPane x)
 o getSPLayout
 protected JScrollPaneLayout getSPLayout()
 o getVerticalScrollBarPolicy
 public int getVerticalScrollBarPolicy()
 o setVerticalScrollBarPolicy
 public void setVerticalScrollBarPolicy(int x)
 o getHorizontalScrollBarPolicy
 public int getHorizontalScrollBarPolicy()
 o setHorizontalScrollBarPolicy
 public void setHorizontalScrollBarPolicy(int x)
 o getHorizontalScrollBar
 public JScrollBar getHorizontalScrollBar()
 o getVerticalScrollBar
 public JScrollBar getVerticalScrollBar()
 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 headings (if there are any) with the new viewport, and finally sync the scrollbars and headings with the new viewport.

 o getViewport
 public JViewport getViewport()
 o setRowHeading
 public void setRowHeading(JViewport newRowHead)
If an old rowHeading exists, remove it. If the new rowHeading 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.

 o getRowHeading
 public JViewport getRowHeading()
 o setColumnHeading
 public void setColumnHeading(JViewport newColHead)
If an old columnHeading exists, remove it. If the new columnHeading 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.

 o getColumnHeading
 public JViewport getColumnHeading()
 o getCorner
 public Component getCorner(String key)
 o setCorner
 public void setCorner(String key,
                       Component x)
 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