Package games.stendhal.client.gui.styled
Class StyledScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
games.stendhal.client.gui.styled.StyledScrollBarUI
- All Implemented Interfaces:
LayoutManager
,SwingConstants
-
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
Fields 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, scrollBarWidth, 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
createUI(JComponent pane)
void
installUI(JComponent scrollBar)
protected void
paintThumb(Graphics g, JComponent bar, Rectangle bounds)
Draws the handle of the scroll bar.protected void
paintTrack(Graphics g, JComponent bar, Rectangle trackBounds)
Paints the background flat area of the scroll bar.Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getPreferredSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installDefaults, installKeyboardActions, installListeners, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, 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
-
Constructor Details
-
StyledScrollBarUI
-
-
Method Details
-
createUI
-
paintTrack
Paints the background flat area of the scroll bar.- Overrides:
paintTrack
in classBasicScrollBarUI
- Parameters:
g
- graphicsbar
- the scroll bar to be paintedtrackBounds
- bounds of the painted area
-
paintThumb
Draws the handle of the scroll bar.- Overrides:
paintThumb
in classBasicScrollBarUI
- Parameters:
g
- graphicsbar
- the scroll bar to be paintedbounds
- bounds of the scroll bar handle
-
createDecreaseButton
- Overrides:
createDecreaseButton
in classBasicScrollBarUI
-
createIncreaseButton
- Overrides:
createIncreaseButton
in classBasicScrollBarUI
-
installUI
- Overrides:
installUI
in classBasicScrollBarUI
-