Package com.jtattoo.plaf
Class BaseScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
com.jtattoo.plaf.BaseScrollBarUI
- All Implemented Interfaces:
LayoutManager
,SwingConstants
- Direct Known Subclasses:
AcrylScrollBarUI
,FastScrollBarUI
,SmartScrollBarUI
,XPScrollBarUI
BaseScrollBarUI class.
Author Michael Hagen-
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
Modifier and TypeFieldDescriptionprotected int
protected int
protected boolean
protected int
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected JButton
createDecreaseButton
(int orientation) protected JButton
createIncreaseButton
(int orientation) static ComponentUI
protected Dimension
protected Color[]
getThumbColors.protected void
protected void
protected void
protected void
paintThumb
(Graphics g, JComponent c, Rectangle thumbBounds) protected void
paintTrack
(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, uninstallUI
Methods 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:
createDecreaseButton
in classBasicScrollBarUI
-
createIncreaseButton
- Overrides:
createIncreaseButton
in classBasicScrollBarUI
-
createTrackListener
- Overrides:
createTrackListener
in classBasicScrollBarUI
-
getMinimumThumbSize
- Overrides:
getMinimumThumbSize
in classBasicScrollBarUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classBasicScrollBarUI
-
getThumbColors
getThumbColors.
- Returns:
- an array of
Color
objects.
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicScrollBarUI
-
layoutHScrollbar
- Overrides:
layoutHScrollbar
in classBasicScrollBarUI
-
layoutVScrollbar
- Overrides:
layoutVScrollbar
in classBasicScrollBarUI
-
paintThumb
- Overrides:
paintThumb
in classBasicScrollBarUI
-
paintTrack
- Overrides:
paintTrack
in classBasicScrollBarUI
-