public class UIBasicScrollBarUI
extends javax.swing.plaf.basic.BasicScrollBarUI
限定符和类型 | 类和说明 |
---|---|
protected class |
UIBasicScrollBarUI.MyTrackListener
Basically does BasicScrollBarUI.TrackListener the right job, it just needs
an additional repaint and rollover management
|
protected class |
UIBasicScrollBarUI.OrientationChangeListener |
javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener, javax.swing.plaf.basic.BasicScrollBarUI.ModelListener, javax.swing.plaf.basic.BasicScrollBarUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener, javax.swing.plaf.basic.BasicScrollBarUI.TrackListener
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
isRollover
true if thumb is in rollover state
|
protected boolean |
wasRollover
true if thumb was in rollover state
|
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, trackRect
构造器和说明 |
---|
UIBasicScrollBarUI() |
限定符和类型 | 方法和说明 |
---|---|
protected javax.swing.JButton |
createDecreaseButton(int orientation)
Creates the decrease button of the scrollbar.
|
protected javax.swing.JButton |
createIncreaseButton(int orientation)
Creates the increase button of the scrollbar.
|
protected javax.swing.plaf.basic.BasicScrollBarUI.TrackListener |
createTrackListener() |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
创建组件UI
|
protected java.awt.Dimension |
getMaximumThumbSize() |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
protected void |
installDefaults()
Installs some default values.
|
boolean |
isThumbVisible()
是否可见
|
void |
paintThumb(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle thumbBounds) |
void |
paintTrack(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle t) |
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, getMaximumSize, getMinimumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
protected boolean isRollover
protected boolean wasRollover
protected void installDefaults()
installDefaults
在类中 javax.swing.plaf.basic.BasicScrollBarUI
protected java.awt.Dimension getMaximumThumbSize()
getMaximumThumbSize
在类中 javax.swing.plaf.basic.BasicScrollBarUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- 组件protected javax.swing.JButton createDecreaseButton(int orientation)
createDecreaseButton
在类中 javax.swing.plaf.basic.BasicScrollBarUI
orientation
- The button's orientation.protected javax.swing.JButton createIncreaseButton(int orientation)
createIncreaseButton
在类中 javax.swing.plaf.basic.BasicScrollBarUI
orientation
- The button's orientation.public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
在类中 javax.swing.plaf.basic.BasicScrollBarUI
public void paintTrack(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle t)
paintTrack
在类中 javax.swing.plaf.basic.BasicScrollBarUI
public void paintThumb(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle thumbBounds)
paintThumb
在类中 javax.swing.plaf.basic.BasicScrollBarUI
public boolean isThumbVisible()
protected javax.swing.plaf.basic.BasicScrollBarUI.TrackListener createTrackListener()
createTrackListener
在类中 javax.swing.plaf.basic.BasicScrollBarUI