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.
-
hsbListener
-
-
scrollpane
-
-
viewportListener
-
-
vsbListener
-
-
BasicScrollPaneUI()
-
-
createHSBListener()
-
-
createLayoutManager()
-
-
createUI(JScrollPane)
-
-
createViewportListener()
-
-
createVSBListener()
-
-
deinstallUI(JComponent)
-
-
getColumnHeading()
-
-
getCorner(String)
-
-
getHorizontalScrollBar()
-
-
getHorizontalScrollBarPolicy()
-
-
getInsets(JComponent)
-
-
getMaximumSize(JComponent)
-
-
getMinimumSize(JComponent)
-
-
getPreferredSize(JComponent)
-
-
getRowHeading()
-
-
getSPLayout()
-
-
getVerticalScrollBar()
-
-
getVerticalScrollBarPolicy()
-
-
getViewport()
-
-
installUI(JComponent)
-
-
paint(Graphics, JComponent)
-
-
setColumnHeading(JViewport)
-
If an old columnHeading exists, remove it.
-
setCorner(String, Component)
-
-
setHorizontalScrollBarPolicy(int)
-
-
setRowHeading(JViewport)
-
If an old rowHeading exists, remove it.
-
setVerticalScrollBarPolicy(int)
-
-
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.
-
syncScrollPaneWithViewport()
-
scrollpane
protected JScrollPane scrollpane
vsbListener
protected ChangeListener vsbListener
hsbListener
protected ChangeListener hsbListener
viewportListener
protected ChangeListener viewportListener
BasicScrollPaneUI
public BasicScrollPaneUI()
paint
public void paint(Graphics g,
JComponent c)
getPreferredSize
public Dimension getPreferredSize(JComponent c)
getMinimumSize
public Dimension getMinimumSize(JComponent c)
getMaximumSize
public Dimension getMaximumSize(JComponent x)
getInsets
public Insets getInsets(JComponent x)
installUI
public void installUI(JComponent x)
deinstallUI
public void deinstallUI(JComponent x)
createUI
public static ScrollPaneUI createUI(JScrollPane x)
getSPLayout
protected JScrollPaneLayout getSPLayout()
getVerticalScrollBarPolicy
public int getVerticalScrollBarPolicy()
setVerticalScrollBarPolicy
public void setVerticalScrollBarPolicy(int x)
getHorizontalScrollBarPolicy
public int getHorizontalScrollBarPolicy()
setHorizontalScrollBarPolicy
public void setHorizontalScrollBarPolicy(int x)
getHorizontalScrollBar
public JScrollBar getHorizontalScrollBar()
getVerticalScrollBar
public JScrollBar getVerticalScrollBar()
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.
getViewport
public JViewport getViewport()
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.
getRowHeading
public JViewport getRowHeading()
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.
getColumnHeading
public JViewport getColumnHeading()
getCorner
public Component getCorner(String key)
setCorner
public void setCorner(String key,
Component x)
syncScrollPaneWithViewport
protected void syncScrollPaneWithViewport()
createViewportListener
protected ChangeListener createViewportListener()
createHSBListener
protected ChangeListener createHSBListener()
createVSBListener
protected ChangeListener createVSBListener()
createLayoutManager
protected LayoutManager createLayoutManager()
All Packages Class Hierarchy This Package Previous Next Index