Package zleurtor.scanmanager.view.plaf
Class ScanManagerScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
zleurtor.scanmanager.view.plaf.ScanManagerScrollBarUI
- All Implemented Interfaces:
LayoutManager
,SwingConstants
The 3D Scan Manager personalized scroll bar UI.
- Author:
- Zleurtor
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final JButton
createDecreaseButton
(int orientation) protected final JButton
createIncreaseButton
(int orientation) static ComponentUI
Create the UI.final void
protected final void
paintThumb
(Graphics g, JComponent c, Rectangle thumbBounds) protected final void
paintTrack
(Graphics g, JComponent c, Rectangle trackBounds) 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
-
ScanManagerScrollBarUI
public ScanManagerScrollBarUI()
-
-
Method Details
-
createUI
Create the UI.- Parameters:
c
- The component to which the UI shall be applied.- Returns:
- The unique UI instance.
-
installUI
- Overrides:
installUI
in classBasicScrollBarUI
-
paintTrack
- Overrides:
paintTrack
in classBasicScrollBarUI
-
paintThumb
- Overrides:
paintThumb
in classBasicScrollBarUI
-
createDecreaseButton
- Overrides:
createDecreaseButton
in classBasicScrollBarUI
-
createIncreaseButton
- Overrides:
createIncreaseButton
in classBasicScrollBarUI
-