Class 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

      Nested Classes 
      Modifier and Type Class Description
      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

      Fields 
      Modifier and Type Field Description
      protected boolean useAlternateLayout
      Description of the Field
      • Fields inherited from class javax.swing.plaf.basic.BasicScrollBarUI

        buttonListener, decrButton, DECREASE_HIGHLIGHT, decrGap, incrButton, INCREASE_HIGHLIGHT, incrGap, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollBarWidth, 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

      Constructors 
      Constructor Description
      XTraScrollBarUI()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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