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.
-
defaultBorder
-
-
hsbListener
-
-
scrollpane
-
-
viewportListener
-
-
vsbListener
-
-
BasicScrollPaneUI()
-
-
createHSBListener()
-
-
createLayoutManager()
-
-
createUI(JComponent)
-
-
createViewportListener()
-
-
createVSBListener()
-
-
getColumnHeader()
-
-
getCorner(String)
-
-
getHorizontalScrollBar()
-
-
getHorizontalScrollBarPolicy()
-
-
getMaximumSize(JComponent)
-
-
getMinimumSize(JComponent)
-
-
getPreferredSize(JComponent)
-
-
getRowHeader()
-
-
getSPLayout()
-
-
getVerticalScrollBar()
-
-
getVerticalScrollBarPolicy()
-
-
getViewport()
-
-
installUI(JComponent)
-
-
paint(Graphics, JComponent)
-
-
setColumnHeader(JViewport)
-
If an old columnHeader exists, remove it.
-
setCorner(String, Component)
-
-
setHorizontalScrollBarPolicy(int)
-
-
setRowHeader(JViewport)
-
If an old rowHeader 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 headers (if there are any) with the
new viewport, and finally sync the scrollbars and
headers with the new viewport.
-
syncScrollPaneWithViewport()
-
-
uninstallUI(JComponent)
-
defaultBorder
protected static Border defaultBorder
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)
- Overrides:
- paint in class ComponentUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
- getPreferredSize in class ComponentUI
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
- getMinimumSize in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent x)
- Overrides:
- getMaximumSize in class ComponentUI
installUI
public void installUI(JComponent x)
- Overrides:
- installUI in class ComponentUI
uninstallUI
public void uninstallUI(JComponent x)
- Overrides:
- uninstallUI in class ComponentUI
createUI
public static ComponentUI createUI(JComponent x)
getSPLayout
protected ScrollPaneLayout getSPLayout()
getVerticalScrollBarPolicy
public int getVerticalScrollBarPolicy()
- Overrides:
- getVerticalScrollBarPolicy in class ScrollPaneUI
setVerticalScrollBarPolicy
public void setVerticalScrollBarPolicy(int x)
- Overrides:
- setVerticalScrollBarPolicy in class ScrollPaneUI
getHorizontalScrollBarPolicy
public int getHorizontalScrollBarPolicy()
- Overrides:
- getHorizontalScrollBarPolicy in class ScrollPaneUI
setHorizontalScrollBarPolicy
public void setHorizontalScrollBarPolicy(int x)
- Overrides:
- setHorizontalScrollBarPolicy in class ScrollPaneUI
getHorizontalScrollBar
public JScrollBar getHorizontalScrollBar()
- Overrides:
- getHorizontalScrollBar in class ScrollPaneUI
getVerticalScrollBar
public JScrollBar getVerticalScrollBar()
- Overrides:
- getVerticalScrollBar in class ScrollPaneUI
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
getViewport
public JViewport getViewport()
- Overrides:
- getViewport in class ScrollPaneUI
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
getRowHeader
public JViewport getRowHeader()
- Overrides:
- getRowHeader in class ScrollPaneUI
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
getColumnHeader
public JViewport getColumnHeader()
- Overrides:
- getColumnHeader in class ScrollPaneUI
getCorner
public Component getCorner(String key)
- Overrides:
- getCorner in class ScrollPaneUI
setCorner
public void setCorner(String key,
Component x)
- Overrides:
- setCorner in class ScrollPaneUI
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