|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
javax.swing.plaf.metal.MetalScrollBarUI
net.sourceforge.mlf.metouia.MetouiaScrollBarUI
This class represents the UI delegate for the JScrollBar component.
Nested Class Summary |
Nested classes inherited from class javax.swing.plaf.basic.BasicScrollBarUI |
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 |
Field Summary | |
protected MetouiaDots |
dots
The reference of the metouia dots used for the thumb. |
Fields inherited from class javax.swing.plaf.metal.MetalScrollBarUI |
bumps, decreaseButton, FREE_STANDING_PROP, increaseButton, isFreeStanding, scrollBarWidth |
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, thumbDarkShadowColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRect |
Fields 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 | |
MetouiaScrollBarUI()
|
Method Summary | |
protected void |
configureScrollBarColors()
Initializes the scrollbar color from the current theme. |
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. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates the UI delegate for the given component. |
protected void |
installDefaults()
Installs some default values. |
protected void |
paintThumb(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle thumbBounds)
Paints the scrollbar's thumb. |
protected void |
paintTrack(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle trackBounds)
Paints the scrollbar's track. |
Methods inherited from class javax.swing.plaf.metal.MetalScrollBarUI |
createPropertyChangeListener, getMinimumThumbSize, getPreferredSize, installListeners, setThumbBounds |
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 javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected MetouiaDots dots
Constructor Detail |
public MetouiaScrollBarUI()
Method Detail |
protected void installDefaults()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- The component to create its UI delegate.
protected javax.swing.JButton createDecreaseButton(int orientation)
orientation
- The button's orientation.
protected javax.swing.JButton createIncreaseButton(int orientation)
orientation
- The button's orientation.
protected void paintThumb(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle thumbBounds)
g
- The graphics context to use.c
- The component to paint.thumbBounds
- The track bounds.protected void configureScrollBarColors()
protected void paintTrack(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle trackBounds)
g
- The graphics context to use.c
- The component to paint.trackBounds
- The track bounds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |