com.l2fprod.gui.plaf.xtra
Class XTraScrollBarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ScrollBarUI
          extended by javax.swing.plaf.basic.BasicScrollBarUI
              extended by com.l2fprod.gui.plaf.xtra.XTraScrollBarUI
All Implemented Interfaces:
java.awt.LayoutManager, javax.swing.SwingConstants
Direct Known Subclasses:
SkinScrollBarUI

public class XTraScrollBarUI
extends javax.swing.plaf.basic.BasicScrollBarUI

XTra Scrollbar.

Version:
$Revision: 1.2 $, $Date: 2004/07/29 19:09:27 $
Author:
$Author: l2fprod $

Nested Class Summary
 class XTraScrollBarUI.MyTrackListener
          Track mouse drags.
 
Nested classes/interfaces 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  boolean useAlternateLayout
          Description of the Field
 
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
 
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
XTraScrollBarUI()
           
 
Method Summary
protected  void alternateLayoutHScrollbar(javax.swing.JScrollBar sb)
          Description of the Method
protected  void alternateLayoutVScrollbar(javax.swing.JScrollBar sb)
          Description of the Method
protected  javax.swing.plaf.basic.BasicScrollBarUI.TrackListener createTrackListener()
          Description of the Method
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
          Description of the Method
 javax.swing.JButton decrButton()
          Description of the Method
 java.awt.Rectangle getThumbBounds()
          Gets the ThumbBounds attribute of the XTraScrollBarUI object
 java.awt.Rectangle getTrackBounds()
          Gets the TrackBounds attribute of the XTraScrollBarUI object
 javax.swing.JButton incrButton()
          Description of the Method
 boolean isDragging()
          Gets the Dragging attribute of the XTraScrollBarUI object
protected  void layoutHScrollbar(javax.swing.JScrollBar sb)
          Description of the Method
protected  void layoutVScrollbar(javax.swing.JScrollBar sb)
          Description of the Method
 javax.swing.JScrollBar scrollbar()
          Description of the Method
 void setThumbBounds(int x, int y, int w, int h)
          Sets the ThumbBounds attribute of the XTraScrollBarUI object
 
Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createDecreaseButton, createIncreaseButton, createModelListener, createPropertyChangeListener, createScrollListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getPreferredSize, getSupportsAbsolutePositioning, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, paintThumb, paintTrack, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useAlternateLayout

protected boolean useAlternateLayout
Description of the Field

Constructor Detail

XTraScrollBarUI

public XTraScrollBarUI()
Method Detail

setThumbBounds

public void setThumbBounds(int x,
                           int y,
                           int w,
                           int h)
Sets the ThumbBounds attribute of the XTraScrollBarUI object

Overrides:
setThumbBounds in class javax.swing.plaf.basic.BasicScrollBarUI
Parameters:
x - The new ThumbBounds value
y - The new ThumbBounds value
w - The new ThumbBounds value
h - The new ThumbBounds value

isDragging

public boolean isDragging()
Gets the Dragging attribute of the XTraScrollBarUI object

Returns:
The Dragging value

getThumbBounds

public java.awt.Rectangle getThumbBounds()
Gets the ThumbBounds attribute of the XTraScrollBarUI object

Overrides:
getThumbBounds in class javax.swing.plaf.basic.BasicScrollBarUI
Returns:
The ThumbBounds value

getTrackBounds

public java.awt.Rectangle getTrackBounds()
Gets the TrackBounds attribute of the XTraScrollBarUI object

Overrides:
getTrackBounds in class javax.swing.plaf.basic.BasicScrollBarUI
Returns:
The TrackBounds value

decrButton

public javax.swing.JButton decrButton()
Description of the Method

Returns:
Description of the Returned Value

incrButton

public javax.swing.JButton incrButton()
Description of the Method

Returns:
Description of the Returned Value

scrollbar

public javax.swing.JScrollBar scrollbar()
Description of the Method

Returns:
Description of the Returned Value

layoutVScrollbar

protected void layoutVScrollbar(javax.swing.JScrollBar sb)
Description of the Method

Overrides:
layoutVScrollbar in class javax.swing.plaf.basic.BasicScrollBarUI
Parameters:
sb - Description of Parameter

alternateLayoutVScrollbar

protected void alternateLayoutVScrollbar(javax.swing.JScrollBar sb)
Description of the Method

Parameters:
sb - Description of Parameter

layoutHScrollbar

protected void layoutHScrollbar(javax.swing.JScrollBar sb)
Description of the Method

Overrides:
layoutHScrollbar in class javax.swing.plaf.basic.BasicScrollBarUI
Parameters:
sb - Description of Parameter

alternateLayoutHScrollbar

protected void alternateLayoutHScrollbar(javax.swing.JScrollBar sb)
Description of the Method

Parameters:
sb - Description of Parameter

createTrackListener

protected javax.swing.plaf.basic.BasicScrollBarUI.TrackListener createTrackListener()
Description of the Method

Overrides:
createTrackListener in class javax.swing.plaf.basic.BasicScrollBarUI
Returns:
Description of the Returned Value

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
Description of the Method

Parameters:
x - Description of Parameter
Returns:
Description of the Returned Value