ch.randelshofer.quaqua
Class QuaquaScrollPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollPaneUI
javax.swing.plaf.basic.BasicScrollPaneUI
ch.randelshofer.quaqua.QuaquaScrollPaneUI
- All Implemented Interfaces:
- VisuallyLayoutable, javax.swing.ScrollPaneConstants
public class QuaquaScrollPaneUI
- extends javax.swing.plaf.basic.BasicScrollPaneUI
- implements VisuallyLayoutable
QuaquaScrollPaneUI.
- Version:
- 1.2.2 2005-11-26 Retrieve default opaqueness from UIManager.
1.2.1 2005-09-17 Don't fill background if non-opaque.
1.2 2005-08-25 Installs a QuaquaScrollPaneLayout to the scroll
pane to avoid overlapping of scroll bars with the grow-box of a Frame or
Dialog.
1.1 2005-07-17 Adapted to changes in interface VisuallyLayoutable.
1.0 June 23, 2004 Created.
- Author:
- Werner Randelshofer
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollPaneUI |
javax.swing.plaf.basic.BasicScrollPaneUI.HSBChangeListener, javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler, javax.swing.plaf.basic.BasicScrollPaneUI.ViewportChangeHandler, javax.swing.plaf.basic.BasicScrollPaneUI.VSBChangeListener |
Fields inherited from class javax.swing.plaf.basic.BasicScrollPaneUI |
hsbChangeListener, scrollpane, spPropertyChangeListener, viewportChangeListener, vsbChangeListener |
Fields inherited from interface javax.swing.ScrollPaneConstants |
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT |
Method Summary |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
int |
getBaseline(javax.swing.JComponent c,
int width,
int height)
Returns the baseline for the specified component, or -1 if the
baseline can not be determined. |
java.awt.Rectangle |
getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
Returns the visual bounds for the specified component, or null if the
visual bounds can not be determined. |
java.awt.Insets |
getVisualMargin(java.awt.Component c)
|
protected void |
installDefaults(javax.swing.JScrollPane scrollpane)
|
void |
installUI(javax.swing.JComponent c)
|
protected void |
uninstallDefaults(javax.swing.JScrollPane scrollpane)
|
void |
update(java.awt.Graphics g,
javax.swing.JComponent c)
|
Methods inherited from class javax.swing.plaf.basic.BasicScrollPaneUI |
createHSBChangeListener, createMouseWheelListener, createViewportChangeListener, createVSBChangeListener, getMaximumSize, installKeyboardActions, installListeners, paint, syncScrollPaneWithViewport, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateColumnHeader, updateRowHeader, updateScrollBarDisplayPolicy, updateViewport |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getMinimumSize, getPreferredSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuaquaScrollPaneUI
public QuaquaScrollPaneUI()
- Creates a new instance.
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in class javax.swing.plaf.basic.BasicScrollPaneUI
createPropertyChangeListener
protected java.beans.PropertyChangeListener createPropertyChangeListener()
- Overrides:
createPropertyChangeListener
in class javax.swing.plaf.basic.BasicScrollPaneUI
installDefaults
protected void installDefaults(javax.swing.JScrollPane scrollpane)
- Overrides:
installDefaults
in class javax.swing.plaf.basic.BasicScrollPaneUI
uninstallDefaults
protected void uninstallDefaults(javax.swing.JScrollPane scrollpane)
- Overrides:
uninstallDefaults
in class javax.swing.plaf.basic.BasicScrollPaneUI
getVisualMargin
public java.awt.Insets getVisualMargin(java.awt.Component c)
update
public void update(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
update
in class javax.swing.plaf.ComponentUI
getBaseline
public int getBaseline(javax.swing.JComponent c,
int width,
int height)
- Description copied from interface:
VisuallyLayoutable
- Returns the baseline for the specified component, or -1 if the
baseline can not be determined. The baseline is measured from
the top of the component.
- Specified by:
getBaseline
in interface VisuallyLayoutable
- Parameters:
c
- JComponent to calculate baseline forwidth
- Width of the component to determine baseline for.height
- Height of the component to determine baseline for.
- Returns:
- baseline for the specified component
getVisualBounds
public java.awt.Rectangle getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
- Description copied from interface:
VisuallyLayoutable
- Returns the visual bounds for the specified component, or null if the
visual bounds can not be determined.
- Specified by:
getVisualBounds
in interface VisuallyLayoutable
- Parameters:
c
- JComponent to calculate visual margin fortype
- The type of the visual margin.width
- Width of the componentheight
- Height of the component
- Returns:
- The visual bounds in component coordinates.