java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
org.gtk.java.swing.plaf.gtk.GtkScrollBarUI
- All Implemented Interfaces:
- java.awt.LayoutManager, javax.swing.SwingConstants
- public class GtkScrollBarUI
- extends javax.swing.plaf.basic.BasicScrollBarUI
| 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 |
| Fields inherited from class javax.swing.plaf.basic.BasicScrollBarUI |
buttonListener, decrButton, DECREASE_HIGHLIGHT, incrButton, INCREASE_HIGHLIGHT, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightShadowColor, thumbRect, 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 |
| Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI |
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, getMaximumSize, getMaximumThumbSize, getMinimumSize, getTrackBounds, installComponents, installDefaults, installKeyboardActions, installListeners, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
darkShadow
private java.awt.Color darkShadow
mediumShadow
private java.awt.Color mediumShadow
lightShadow
private java.awt.Color lightShadow
trackColor
private java.awt.Color trackColor
highlight
private java.awt.Color highlight
scrollBarWidth
private int scrollBarWidth
scrollbar
private javax.swing.JScrollBar scrollbar
mouseover
private boolean mouseover
GtkScrollBarUI
public GtkScrollBarUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method returns a new BasicScrollBarUI.
installUI
public void installUI(javax.swing.JComponent c)
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method installs the UI for the component. This can include setting
up listeners, defaults, and components. This also includes initializing
any data objects.
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method uninstalls the UI. This includes removing any defaults,
listeners, and components that this UI may have initialized. It also
nulls any instance data.
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method returns a cached value of the preferredSize. The only
restrictions are: If the scrollbar is horizontal, the height should be
the maximum of the height of the JButtons and the minimum width of the
thumb. For vertical scrollbars, the calculation is similar (swap width
for height and vice versa).
createDecreaseButton
protected javax.swing.JButton createDecreaseButton(int orientation)
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method creates a new JButton with the appropriate icon for the
orientation.
createIncreaseButton
protected javax.swing.JButton createIncreaseButton(int orientation)
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method creates a new JButton with the appropriate icon for the
orientation.
paintTrack
public void paintTrack(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle trackBounds)
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method paints the track.
paintThumb
public void paintThumb(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle thumbBounds)
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method paints the thumb.
getMinimumThumbSize
protected java.awt.Dimension getMinimumThumbSize()
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method returns the minimum thumb size.
createTrackListener
protected javax.swing.plaf.basic.BasicScrollBarUI.TrackListener createTrackListener()
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method creates a new TrackListener.
getThumbBounds
protected java.awt.Rectangle getThumbBounds()
- Description copied from class:
javax.swing.plaf.basic.BasicScrollBarUI
- This method returns the thumb's bounds based on the current value of the
scrollbar. This method updates the cached value and returns that.
isDraggingTrack
protected boolean isDraggingTrack()