Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gtk.java.swing.plaf.gtk
Class GtkScrollBarUI  view GtkScrollBarUI download GtkScrollBarUI.java

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ScrollBarUI
          extended byjavax.swing.plaf.basic.BasicScrollBarUI
              extended byorg.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 Class Summary
protected  class GtkScrollBarUI.GtkTrackListener
           
 
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
private  java.awt.Color darkShadow
           
private  java.awt.Color highlight
           
private  java.awt.Color lightShadow
           
private  java.awt.Color mediumShadow
           
private  boolean mouseover
           
private  javax.swing.JScrollBar scrollbar
           
private  int scrollBarWidth
           
private  java.awt.Color trackColor
           
 
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
 
Constructor Summary
GtkScrollBarUI()
           
 
Method Summary
protected  javax.swing.JButton createDecreaseButton(int orientation)
          This method creates a new JButton with the appropriate icon for the orientation.
protected  javax.swing.JButton createIncreaseButton(int orientation)
          This method creates a new JButton with the appropriate icon for the orientation.
protected  javax.swing.plaf.basic.BasicScrollBarUI.TrackListener createTrackListener()
          This method creates a new TrackListener.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          This method returns a new BasicScrollBarUI.
protected  java.awt.Dimension getMinimumThumbSize()
          This method returns the minimum thumb size.
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          This method returns a cached value of the preferredSize.
protected  java.awt.Rectangle getThumbBounds()
          This method returns the thumb's bounds based on the current value of the scrollbar.
 void installUI(javax.swing.JComponent c)
          This method installs the UI for the component.
protected  boolean isDraggingTrack()
           
 void paintThumb(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle thumbBounds)
          This method paints the thumb.
 void paintTrack(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle trackBounds)
          This method paints the track.
 void uninstallUI(javax.swing.JComponent c)
          This method uninstalls the UI.
 
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 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

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
Constructor Detail

GtkScrollBarUI

public GtkScrollBarUI()
Method Detail

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()