uic.themes
Class UICScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
uic.themes.UICScrollBarUI
- All Implemented Interfaces:
- LayoutManager, SwingConstants
public class UICScrollBarUI
- extends BasicScrollBarUI
Improved look for the scrollbars
- Since:
- 2.0
Fields inherited from class javax.swing.plaf.basic.BasicScrollBarUI |
buttonListener, decrButton, DECREASE_HIGHLIGHT, incrButton, INCREASE_HIGHLIGHT, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRect |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI |
addLayoutComponent, configureScrollBarColors, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UICScrollBarUI
public UICScrollBarUI()
createUI
public static ComponentUI createUI(JComponent c)
paintTrack
protected void paintTrack(Graphics g,
JComponent c,
Rectangle trackBounds)
- Overrides:
paintTrack
in class BasicScrollBarUI
paintThumb
protected void paintThumb(Graphics g,
JComponent c,
Rectangle thumbBounds)
- Overrides:
paintThumb
in class BasicScrollBarUI
paintVerticalThumb
protected void paintVerticalThumb(Graphics g,
JComponent c,
Rectangle thumbBounds)
paintHorizontalThumb
protected void paintHorizontalThumb(Graphics g,
JComponent c,
Rectangle thumbBounds)
installComponents
protected void installComponents()
- Overrides:
installComponents
in class BasicScrollBarUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Override the default preferred size.
Override the default preferred size to be dependant on the label font as set in the UIManager to make the scrollbars scale
- Overrides:
getPreferredSize
in class BasicScrollBarUI
createArrowButtonListener
protected BasicScrollBarUI.ArrowButtonListener createArrowButtonListener()
- Overrides:
createArrowButtonListener
in class BasicScrollBarUI
createIncreaseButton
protected JButton createIncreaseButton(int orientation)
- Overrides:
createIncreaseButton
in class BasicScrollBarUI
createDecreaseButton
protected JButton createDecreaseButton(int orientation)
- Overrides:
createDecreaseButton
in class BasicScrollBarUI
Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence