当前页面:
在线文档首页 >
JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Class MetalScrollBarUI - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
javax.swing.plaf.metal
Class MetalScrollBarUI
java.lang.Object
|
+--javax.swing.plaf.ComponentUI
|
+--javax.swing.plaf.ScrollBarUI
|
+--javax.swing.plaf.basic.BasicScrollBarUI
|
+--javax.swing.plaf.metal.MetalScrollBarUI
- public class MetalScrollBarUI
- extends BasicScrollBarUI
Implementation of ScrollBarUI for the Metal Look and Feel
Fields inherited from class javax.swing.plaf.basic.BasicScrollBarUI |
buttonListener,
decrButton,
DECREASE_HIGHLIGHT,
incrButton,
INCREASE_HIGHLIGHT,
isDragging,
maximumThumbSize,
minimumThumbSize,
modelListener,
NO_HIGHLIGHT,
propertyChangeListener,
scrollbar,
scrollListener,
scrollTimer,
thumbColor,
thumbDarkShadowColor,
thumbHighlightColor,
thumbLightShadowColor,
thumbRect,
trackColor,
trackHighlight,
trackHighlightColor,
trackListener,
trackRect |
Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI |
addLayoutComponent,
createArrowButtonListener,
createModelListener,
createScrollListener,
createTrackListener,
getMaximumSize,
getMaximumThumbSize,
getMinimumSize,
getThumbBounds,
getTrackBounds,
installComponents,
installKeyboardActions,
installUI,
layoutContainer,
layoutHScrollbar,
layoutVScrollbar,
minimumLayoutSize,
paint,
paintDecreaseHighlight,
paintIncreaseHighlight,
preferredLayoutSize,
removeLayoutComponent,
scrollByBlock,
scrollByUnit,
uninstallComponents,
uninstallDefaults,
uninstallKeyboardActions,
uninstallListeners,
uninstallUI |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
bumps
protected javax.swing.plaf.metal.MetalBumps bumps
increaseButton
protected MetalScrollButton increaseButton
decreaseButton
protected MetalScrollButton decreaseButton
scrollBarWidth
protected int scrollBarWidth
FREE_STANDING_PROP
public static final String FREE_STANDING_PROP
isFreeStanding
protected boolean isFreeStanding
MetalScrollBarUI
public MetalScrollBarUI()
createUI
public static ComponentUI createUI(JComponent c)
installDefaults
protected void installDefaults()
- Overrides:
- installDefaults in class BasicScrollBarUI
installListeners
protected void installListeners()
- Overrides:
- installListeners in class BasicScrollBarUI
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener()
- Overrides:
- createPropertyChangeListener in class BasicScrollBarUI
configureScrollBarColors
protected void configureScrollBarColors()
- Overrides:
- configureScrollBarColors in class BasicScrollBarUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Description copied from class: BasicScrollBarUI
- A vertical scrollbars preferred width is the maximum of
preferred widths of the (non null) increment/decrement buttons,
and the minimum width of the thumb. The preferred height is the
sum of the preferred heights of the same parts. The basis for
the preferred size of a horizontal scrollbar is similar.
The preferredSize is only computed once, subequent
calls to this method just return a cached size. T
- Overrides:
- getPreferredSize in class BasicScrollBarUI
- Tags copied from class: BasicScrollBarUI
- Parameters:
c
- The JScrollBar that's delegating this method to us.- Returns:
- The preferred size of a Basic JScrollBar.
- See Also:
BasicScrollBarUI.getMaximumSize(javax.swing.JComponent)
,
BasicScrollBarUI.getMinimumSize(javax.swing.JComponent)
createDecreaseButton
protected JButton createDecreaseButton(int orientation)
- Returns the view that represents the decrease view.
- Overrides:
- createDecreaseButton in class BasicScrollBarUI
createIncreaseButton
protected JButton createIncreaseButton(int orientation)
- Returns the view that represents the increase view.
- Overrides:
- createIncreaseButton in class BasicScrollBarUI
paintTrack
protected void paintTrack(Graphics g,
JComponent c,
Rectangle trackBounds)
- Overrides:
- paintTrack in class BasicScrollBarUI
paintThumb
protected void paintThumb(Graphics g,
JComponent c,
Rectangle thumbBounds)
- Overrides:
- paintThumb in class BasicScrollBarUI
getMinimumThumbSize
protected Dimension getMinimumThumbSize()
- Description copied from class: BasicScrollBarUI
- Return the smallest acceptable size for the thumb. If the scrollbar
becomes so small that this size isn't available, the thumb will be
hidden.
Warning : the value returned by this method should not be
be modified, it's a shared static constant.
- Overrides:
- getMinimumThumbSize in class BasicScrollBarUI
- Tags copied from class: BasicScrollBarUI
- Returns:
- The smallest acceptable size for the thumb.
- See Also:
BasicScrollBarUI.getMaximumThumbSize()
setThumbBounds
protected 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:
- setThumbBounds in class BasicScrollBarUI
- Tags copied from class: BasicScrollBarUI
- See Also:
BasicScrollBarUI.getThumbBounds()
Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.