- 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
 
 public class MetalScrollBarUI extends BasicScrollBarUI Implementation of ScrollBarUI for the Metal Look and Feel
- 
- 
Nested Class Summary- 
Nested classes/interfaces declared in class javax.swing.plaf.basic.BasicScrollBarUIBasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected MetalScrollButtondecreaseButtonThe decrease button.static StringFREE_STANDING_PROPThe propertyJScrollBar.isFreeStanding.protected MetalScrollButtonincreaseButtonThe increase button.protected booleanisFreeStandingThe value of the propertyJScrollBar.isFreeStanding.protected intscrollBarWidthThe 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, trackRect
 - 
Fields 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 Constructor Description MetalScrollBarUI()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JButtoncreateDecreaseButton(int orientation)Returns the view that represents the decrease view.protected JButtoncreateIncreaseButton(int orientation)Returns the view that represents the increase view.static ComponentUIcreateUI(JComponent c)Constructs 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.BasicScrollBarUIconfigureScrollBarColors, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getPreferredSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutHScrollbar, layoutVScrollbar, paintDecreaseHighlight, paintIncreaseHighlight, paintThumb, paintTrack, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 - 
Methods declared in class javax.swing.plaf.ComponentUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, paint, update
 - 
Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods declared in interface java.awt.LayoutManageraddLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
 
- 
 
- 
- 
- 
Field Detail- 
increaseButtonprotected MetalScrollButton increaseButton The increase button.
 - 
decreaseButtonprotected MetalScrollButton decreaseButton The decrease button.
 - 
scrollBarWidthprotected int scrollBarWidth The width of the scroll bar.
 - 
FREE_STANDING_PROPpublic static final String FREE_STANDING_PROP The propertyJScrollBar.isFreeStanding.- See Also:
- Constant Field Values
 
 - 
isFreeStandingprotected boolean isFreeStanding The value of the propertyJScrollBar.isFreeStanding.
 
- 
 - 
Method Detail- 
createUIpublic static ComponentUI createUI(JComponent c) Constructs a newMetalScrollBarUIinstance.- Parameters:
- c- a component
- Returns:
- a new MetalScrollBarUIinstance
 
 - 
createDecreaseButtonprotected JButton createDecreaseButton(int orientation) Returns the view that represents the decrease view.- Overrides:
- createDecreaseButtonin class- BasicScrollBarUI
- Parameters:
- orientation- the orientation
- Returns:
- a decrease button
 
 - 
createIncreaseButtonprotected JButton createIncreaseButton(int orientation) Returns 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:
- BasicScrollBarUI.getThumbBounds()
 
 
- 
 
-