Package com.jgoodies.looks.plastic
Class PlasticScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
javax.swing.plaf.metal.MetalScrollBarUI
com.jgoodies.looks.plastic.PlasticScrollBarUI
- All Implemented Interfaces:
LayoutManager,SwingConstants
The JGoodies Plastic L&F implementation of
ScrollBarUI.
Can add a pseudo 3D effect and honors the Plastic Option
ScrollBar.maxBumpsWidth to limit the with of the scroll bar bumps.- Version:
- $Revision: 1.10 $
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollBarUI
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PlasticBumpsprivate Colorprivate Colorstatic final Stringprivate static final Stringprivate Colorprivate Colorprivate Colorprivate ColorFields inherited from class javax.swing.plaf.metal.MetalScrollBarUI
decreaseButton, FREE_STANDING_PROP, increaseButton, isFreeStanding, scrollBarWidthFields inherited from class javax.swing.plaf.basic.BasicScrollBarUI
buttonListener, decrButton, DECREASE_HIGHLIGHT, decrGap, incrButton, INCREASE_HIGHLIGHT, incrGap, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbDarkShadowColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRectFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected JButtoncreateDecreaseButton(int orientation) protected JButtoncreateIncreaseButton(int orientation) static ComponentUIprotected voidprivate voidpaintBumps(Graphics g, JComponent c, int x, int y, int width, int height) protected voidpaintThumb(Graphics g, JComponent c, Rectangle thumbBounds) private voidpaintThumb3D(Graphics g, Rectangle thumbBounds) protected voidpaintTrack(Graphics g, JComponent c, Rectangle trackBounds) private static booleanMethods inherited from class javax.swing.plaf.metal.MetalScrollBarUI
createPropertyChangeListener, getMinimumThumbSize, getPreferredSize, installListeners, setThumbBoundsMethods inherited from class javax.swing.plaf.basic.BasicScrollBarUI
addLayoutComponent, createArrowButtonListener, createModelListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, update
-
Field Details
-
PROPERTY_PREFIX
- See Also:
-
MAX_BUMPS_WIDTH_KEY
- See Also:
-
shadowColor
-
highlightColor
-
darkShadowColor
-
thumbColor
-
thumbShadow
-
thumbHighlightColor
-
bumps
-
-
Constructor Details
-
PlasticScrollBarUI
public PlasticScrollBarUI()
-
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classMetalScrollBarUI
-
createDecreaseButton
- Overrides:
createDecreaseButtonin classMetalScrollBarUI
-
createIncreaseButton
- Overrides:
createIncreaseButtonin classMetalScrollBarUI
-
configureScrollBarColors
protected void configureScrollBarColors()- Overrides:
configureScrollBarColorsin classMetalScrollBarUI
-
paintTrack
- Overrides:
paintTrackin classMetalScrollBarUI
-
paintThumb
- Overrides:
paintThumbin classMetalScrollBarUI
-
paintBumps
-
paintThumb3D
-
useNarrowBumps
private static boolean useNarrowBumps()
-