Class MaterialScrollBarUI

  • All Implemented Interfaces:
    java.awt.LayoutManager, javax.swing.SwingConstants

    public class MaterialScrollBarUI
    extends javax.swing.plaf.basic.BasicScrollBarUI
    • Nested Class Summary

      • 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 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configureScrollBarColors()  
      protected javax.swing.JButton createDecreaseButton​(int orientation)  
      protected javax.swing.JButton createIncreaseButton​(int orientation)  
      protected void createInvisibleButton​(javax.swing.JComponent component)  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      protected javax.swing.JButton installButton​(int orientation)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      protected void paintThumb​(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle thumbBounds)  
      protected void paintTrack​(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle trackBounds)  
      protected void setIconArrowButton​(javax.swing.JButton button, int orientation)  
      • Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI

        addLayoutComponent, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getPreferredSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, 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
    • Constructor Detail

      • MaterialScrollBarUI

        public MaterialScrollBarUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.basic.BasicScrollBarUI
      • createDecreaseButton

        protected javax.swing.JButton createDecreaseButton​(int orientation)
        Overrides:
        createDecreaseButton in class javax.swing.plaf.basic.BasicScrollBarUI
      • createIncreaseButton

        protected javax.swing.JButton createIncreaseButton​(int orientation)
        Overrides:
        createIncreaseButton in class javax.swing.plaf.basic.BasicScrollBarUI
      • paintTrack

        protected void paintTrack​(java.awt.Graphics g,
                                  javax.swing.JComponent c,
                                  java.awt.Rectangle trackBounds)
        Overrides:
        paintTrack in class javax.swing.plaf.basic.BasicScrollBarUI
      • paintThumb

        protected void paintThumb​(java.awt.Graphics g,
                                  javax.swing.JComponent c,
                                  java.awt.Rectangle thumbBounds)
        Overrides:
        paintThumb in class javax.swing.plaf.basic.BasicScrollBarUI
      • configureScrollBarColors

        protected void configureScrollBarColors()
        Overrides:
        configureScrollBarColors in class javax.swing.plaf.basic.BasicScrollBarUI
      • setIconArrowButton

        protected void setIconArrowButton​(javax.swing.JButton button,
                                          int orientation)
      • createInvisibleButton

        protected void createInvisibleButton​(javax.swing.JComponent component)
      • installButton

        protected javax.swing.JButton installButton​(int orientation)