Package org.kopi.vkopi.lib.ui.swing.plaf
Class KopiScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
javax.swing.plaf.metal.MetalScrollBarUI
org.kopi.vkopi.lib.ui.swing.plaf.KopiScrollBarUI
- All Implemented Interfaces:
LayoutManager,SwingConstants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classNested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollBarUI
BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener -
Field Summary
Fields inherited from class javax.swing.plaf.metal.MetalScrollBarUI
decreaseButton, FREE_STANDING_PROP, increaseButton, isFreeStanding, scrollBarWidthFields 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, scrollListener, scrollTimer, thumbDarkShadowColor, 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 voidprotected BasicScrollBarUI.ArrowButtonListenerprotected JButtoncreateDecreaseButton(int orientation) protected JButtoncreateIncreaseButton(int orientation) protected BasicScrollBarUI.ScrollListenerprotected BasicScrollBarUI.TrackListenerstatic ComponentUIprotected voidpaintThumb(Graphics g, JComponent c, Rectangle thumbBounds) protected voidpaintTrack(Graphics g, JComponent c, Rectangle trackBounds) voidstopIt()WORK AROUND: 20021126 In a multiblock, the mouse released event of the scrollbar could be (depends on timing) consumed by the modal error message dialog.Methods inherited from class javax.swing.plaf.metal.MetalScrollBarUI
createPropertyChangeListener, getMinimumThumbSize, getPreferredSize, installDefaults, installListeners, setThumbBoundsMethods inherited from class javax.swing.plaf.basic.BasicScrollBarUI
addLayoutComponent, createModelListener, getMaximumSize, getMaximumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, update
-
Constructor Details
-
KopiScrollBarUI
public KopiScrollBarUI()
-
-
Method Details
-
createUI
-
createDecreaseButton
- Overrides:
createDecreaseButtonin classMetalScrollBarUI
-
createIncreaseButton
- Overrides:
createIncreaseButtonin classMetalScrollBarUI
-
paintTrack
- Overrides:
paintTrackin classMetalScrollBarUI
-
paintThumb
- Overrides:
paintThumbin classMetalScrollBarUI
-
configureScrollBarColors
protected void configureScrollBarColors()- Overrides:
configureScrollBarColorsin classMetalScrollBarUI
-
stopIt
public void stopIt()WORK AROUND: 20021126 In a multiblock, the mouse released event of the scrollbar could be (depends on timing) consumed by the modal error message dialog. Therefore the scrollbar send endless adjustment events (which cause also error messages). -
createScrollListener
- Overrides:
createScrollListenerin classBasicScrollBarUI
-
createTrackListener
- Overrides:
createTrackListenerin classBasicScrollBarUI
-
createArrowButtonListener
- Overrides:
createArrowButtonListenerin classBasicScrollBarUI
-