java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
javax.swing.plaf.metal.MetalScrollBarUI
- All Implemented Interfaces:
- LayoutManager,- SwingConstants
Implementation of ScrollBarUI for the Metal Look and Feel
- 
Nested Class SummaryNested classes/interfaces declared in class javax.swing.plaf.basic.BasicScrollBarUIBasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected MetalScrollButtonThe decrease button.static final StringThe propertyJScrollBar.isFreeStanding.protected MetalScrollButtonThe increase button.protected booleanThe value of the propertyJScrollBar.isFreeStanding.protected intThe width of the scroll bar.Fields declared in class javax.swing.plaf.basic.BasicScrollBarUIbuttonListener, 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 declared in interface javax.swing.SwingConstantsBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected JButtoncreateDecreaseButton(int orientation) Returns the view that represents the decrease view.protected JButtoncreateIncreaseButton(int orientation) Returns the view that represents the increase view.static ComponentUIConstructs a newMetalScrollBarUIinstance.protected voidsetThumbBounds(int x, int y, int width, int height) This is overridden only to increase the invalid area.Methods declared in class javax.swing.plaf.basic.BasicScrollBarUIaddLayoutComponent, configureScrollBarColors, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getPreferredSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paintDecreaseHighlight, paintIncreaseHighlight, paintThumb, paintTrack, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIMethods declared in class javax.swing.plaf.ComponentUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, paint, update
- 
Field Details- 
increaseButtonThe increase button.
- 
decreaseButtonThe decrease button.
- 
scrollBarWidthprotected int scrollBarWidthThe width of the scroll bar.
- 
FREE_STANDING_PROPThe propertyJScrollBar.isFreeStanding.- See Also:
 
- 
isFreeStandingprotected boolean isFreeStandingThe value of the propertyJScrollBar.isFreeStanding.
 
- 
- 
Constructor Details- 
MetalScrollBarUIpublic MetalScrollBarUI()Constructs aMetalScrollBarUI.
 
- 
- 
Method Details- 
createUIConstructs a newMetalScrollBarUIinstance.- Parameters:
- c- a component
- Returns:
- a new MetalScrollBarUIinstance
 
- 
createDecreaseButtonReturns the view that represents the decrease view.- Overrides:
- createDecreaseButtonin class- BasicScrollBarUI
- Parameters:
- orientation- the orientation
- Returns:
- a decrease button
 
- 
createIncreaseButtonReturns the view that represents the increase view.- Overrides:
- createIncreaseButtonin class- BasicScrollBarUI
- Parameters:
- orientation- the orientation
- Returns:
- an increase button
 
- 
setThumbBoundsprotected void setThumbBounds(int x, int y, int width, int height) This is overridden only to increase the invalid area. This ensures that the "Shadow" below the thumb is invalidated- Overrides:
- setThumbBoundsin class- BasicScrollBarUI
- Parameters:
- x- set the x location of the thumb
- y- set the y location of the thumb
- width- set the width of the thumb
- height- set the height of the thumb
- See Also:
 
 
-