Package com.jtattoo.plaf.base
Class BaseScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
com.jtattoo.plaf.base.BaseScrollBarUI
- All Implemented Interfaces:
LayoutManager,SwingConstants
- Direct Known Subclasses:
AcrylScrollBarUI,FastScrollBarUI,SmartScrollBarUI,XPScrollBarUI
BaseScrollBarUI class.
Author Michael Hagen-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollBarUI
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected booleanprotected intFields 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, 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 JButtoncreateDecreaseButton(int orientation) protected JButtoncreateIncreaseButton(int orientation) static ComponentUIprotected Dimensionprotected Color[]getThumbColors.protected voidprotected voidprotected voidprotected voidpaintThumb(Graphics g, JComponent c, Rectangle thumbBounds) protected voidpaintTrack(Graphics g, JComponent c, Rectangle trackBounds) Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, getMaximumSize, getMaximumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, update
-
Field Details
-
scrollBarWidth
protected int scrollBarWidth -
incrGap
protected int incrGap -
decrGap
protected int decrGap -
isRollover
protected boolean isRollover
-
-
Constructor Details
-
BaseScrollBarUI
public BaseScrollBarUI()
-
-
Method Details
-
createUI
-
createDecreaseButton
- Overrides:
createDecreaseButtonin classBasicScrollBarUI
-
createIncreaseButton
- Overrides:
createIncreaseButtonin classBasicScrollBarUI
-
createTrackListener
- Overrides:
createTrackListenerin classBasicScrollBarUI
-
getMinimumThumbSize
- Overrides:
getMinimumThumbSizein classBasicScrollBarUI
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicScrollBarUI
-
getThumbColors
getThumbColors.
- Returns:
- an array of
Colorobjects.
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicScrollBarUI
-
layoutHScrollbar
- Overrides:
layoutHScrollbarin classBasicScrollBarUI
-
layoutVScrollbar
- Overrides:
layoutVScrollbarin classBasicScrollBarUI
-
paintThumb
- Overrides:
paintThumbin classBasicScrollBarUI
-
paintTrack
- Overrides:
paintTrackin classBasicScrollBarUI
-