Class RadianceScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
org.pushingpixels.radiance.theming.internal.ui.RadianceScrollBarUI
- All Implemented Interfaces:
LayoutManager, SwingConstants, TransitionAwareUI
UI for scroll bars in Radiance look and feel.
- Author:
- Kirill Grouchnikov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classTrack mouse drags.Nested classes/interfaces inherited from class BasicScrollBarUI
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener -
Field Summary
Fields inherited from class BasicScrollBarUI
buttonListener, decrButton, DECREASE_HIGHLIGHT, decrGap, incrButton, INCREASE_HIGHLIGHT, incrGap, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRectFields inherited from interface 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 BasicScrollBarUI.ArrowButtonListenerprotected JButtoncreateDecreaseButton(int orientation) protected JButtoncreateIncreaseButton(int orientation) protected BasicScrollBarUI.TrackListenerstatic ComponentUIcreateUI(JComponent comp) Returns the model for tracking the transitions.protected voidprotected voidprotected voidvoidbooleanisInside(MouseEvent me) Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.protected voidprotected voidprotected voidprotected voidvoidpaint(Graphics g, JComponent c) protected voidpaintThumb(Graphics g, JComponent c, Rectangle thumbBounds) protected voidpaintTrack(Graphics g, JComponent c, Rectangle trackBounds) voidscrollByBlock(int direction) protected voidprotected voidprotected voidvoidvoidupdate(Graphics g, JComponent c) Methods inherited from class BasicScrollBarUI
addLayoutComponent, configureScrollBarColors, createModelListener, createPropertyChangeListener, createScrollListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installKeyboardActions, isThumbRollover, layoutContainer, minimumLayoutSize, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByUnit, setThumbBounds, setThumbRollover, uninstallKeyboardActionsMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize
-
Constructor Details
-
RadianceScrollBarUI
Simple constructor.- Parameters:
b- Associated component.
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicScrollBarUI
-
uninstallUI
- Overrides:
uninstallUIin classBasicScrollBarUI
-
createDecreaseButton
- Overrides:
createDecreaseButtonin classBasicScrollBarUI
-
createIncreaseButton
- Overrides:
createIncreaseButtonin classBasicScrollBarUI
-
paintTrack
- Overrides:
paintTrackin classBasicScrollBarUI
-
paintThumb
- Overrides:
paintThumbin classBasicScrollBarUI
-
paint
- Overrides:
paintin classBasicScrollBarUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicScrollBarUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicScrollBarUI
-
installComponents
protected void installComponents()- Overrides:
installComponentsin classBasicScrollBarUI
-
uninstallComponents
protected void uninstallComponents()- Overrides:
uninstallComponentsin classBasicScrollBarUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicScrollBarUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicScrollBarUI
-
isInside
Description copied from interface:TransitionAwareUIChecks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.- Specified by:
isInsidein interfaceTransitionAwareUI- Parameters:
me- Mouse event.- Returns:
trueif the mouse position of the specified event lies inside the area of the component designated for transition effects,falseotherwise.
-
getTransitionTracker
Description copied from interface:TransitionAwareUIReturns the model for tracking the transitions.- Specified by:
getTransitionTrackerin interfaceTransitionAwareUI- Returns:
- Model for tracking the transitions.
-
scrollByBlock
public void scrollByBlock(int direction) - Overrides:
scrollByBlockin classBasicScrollBarUI
-
layoutVScrollbar
- Overrides:
layoutVScrollbarin classBasicScrollBarUI
-
layoutHScrollbar
- Overrides:
layoutHScrollbarin classBasicScrollBarUI
-
layoutVScrollbarNone
-
layoutHScrollbarNone
-
createTrackListener
- Overrides:
createTrackListenerin classBasicScrollBarUI
-
createArrowButtonListener
- Overrides:
createArrowButtonListenerin classBasicScrollBarUI
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicScrollBarUI
-
update
- Overrides:
updatein classComponentUI
-