All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.basic.BasicScrollPaneUI
java.lang.Object
|
+----java.awt.swing.plaf.ComponentUI
|
+----java.awt.swing.plaf.ScrollPaneUI
|
+----java.awt.swing.basic.BasicScrollPaneUI
- public class BasicScrollPaneUI
- extends ScrollPaneUI
- implements ScrollPaneConstants, Serializable
A Windows L&F implementation of ScrollPaneUI.
BasicScrollPaneUI.BasicScrollPaneLayout-
BasicScrollPaneUI.HSBListener-
BasicScrollPaneUI.ViewportListener-
BasicScrollPaneUI.VSBListener-
hsbListener-
scrollpane-
viewportListener-
vsbListener-
BasicScrollPaneUI()
-
createHorizontalScrollBar()
- This method just delegates to the JScrollPane
createVerticalScrollbar()
method.
createHSBListener()
-
createLayoutManager()
-
createUI(JComponent)
-
createVerticalScrollBar()
- This method just delegates to the JScrollPane
createVerticalScrollbar()
method.
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)
-
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 c)
- 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()
- Returns:
- new BasicScrollPaneLayout()
createVerticalScrollBar
protected JScrollBar createVerticalScrollBar()
- This method just delegates to the JScrollPane
createVerticalScrollbar()
method. Subclasses
may override this method to wrap the scrollbar with a
special proxy or reconfigure the scrollbar, e.g.
by setting its border.
- See Also:
- createVerticalScrollBar
createHorizontalScrollBar
protected JScrollBar createHorizontalScrollBar()
- This method just delegates to the JScrollPane
createVerticalScrollbar()
method. Subclasses
may override this method to wrap the scrollbar with a
special proxy or reconfigure the scrollbar, e.g. by
setting its border.
- See Also:
- createHorizontalScrollBar
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature