Class FlatScrollPaneUI

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  FlatScrollPaneUI.FlatScrollPaneLayout  
      private class  FlatScrollPaneUI.Handler
      ContainerListener is added to JViewport to keep focus listener on view up-to-date.
      • Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollPaneUI

        javax.swing.plaf.basic.BasicScrollPaneUI.HSBChangeListener, javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler, javax.swing.plaf.basic.BasicScrollPaneUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicScrollPaneUI.ViewportChangeHandler, javax.swing.plaf.basic.BasicScrollPaneUI.VSBChangeListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.atomic.AtomicBoolean borderShared  
      private FlatScrollPaneUI.Handler handler  
      private java.util.Map<java.lang.String,​java.lang.Object> oldStyleValues  
      protected java.lang.Boolean showButtons  
      • Fields inherited from class javax.swing.plaf.basic.BasicScrollPaneUI

        hsbChangeListener, scrollpane, spPropertyChangeListener, viewportChangeListener, vsbChangeListener
      • Fields inherited from interface javax.swing.ScrollPaneConstants

        COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addViewportListeners​(javax.swing.JViewport viewport)  
      protected void applyStyle​(java.lang.Object style)  
      protected java.lang.Object applyStyleProperty​(java.lang.String key, java.lang.Object value)  
      protected java.awt.event.MouseWheelListener createMouseWheelListener()  
      protected java.beans.PropertyChangeListener createPropertyChangeListener()  
      protected FlatScrollPaneUI.FlatScrollPaneLayout createScrollPaneLayout()  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      private static float getBorderArc​(javax.swing.JScrollPane scrollPane)  
      private static int getBorderLeftRightPadding​(javax.swing.JScrollPane scrollPane)  
      private FlatScrollPaneUI.Handler getHandler()  
      java.util.Map<java.lang.String,​java.lang.Class<?>> getStyleableInfos​(javax.swing.JComponent c)  
      java.lang.Object getStyleableValue​(javax.swing.JComponent c, java.lang.String key)  
      (package private) static java.awt.Component getView​(javax.swing.JScrollPane scrollPane)  
      protected void installListeners​(javax.swing.JScrollPane c)  
      protected void installStyle()  
      void installUI​(javax.swing.JComponent c)  
      private void installUIImpl​(javax.swing.JComponent c)  
      static boolean isPermanentFocusOwner​(javax.swing.JScrollPane scrollPane)  
      protected boolean isSmoothScrollingEnabled()  
      private void mouseWheelMovedSmooth​(java.awt.event.MouseWheelEvent e)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      private void removeViewportListeners​(javax.swing.JViewport viewport)  
      protected void uninstallListeners​(javax.swing.JComponent c)  
      void uninstallUI​(javax.swing.JComponent c)  
      void update​(java.awt.Graphics g, javax.swing.JComponent c)  
      protected void updateViewport​(java.beans.PropertyChangeEvent e)  
      • Methods inherited from class javax.swing.plaf.basic.BasicScrollPaneUI

        createHSBChangeListener, createViewportChangeListener, createVSBChangeListener, getBaseline, getBaselineResizeBehavior, getMaximumSize, installDefaults, installKeyboardActions, syncScrollPaneWithViewport, uninstallDefaults, uninstallKeyboardActions, updateColumnHeader, updateRowHeader, updateScrollBarDisplayPolicy
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getMinimumSize, getPreferredSize
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • showButtons

        protected java.lang.Boolean showButtons
        Since:
        2
      • oldStyleValues

        private java.util.Map<java.lang.String,​java.lang.Object> oldStyleValues
      • borderShared

        private java.util.concurrent.atomic.AtomicBoolean borderShared
    • Constructor Detail

      • FlatScrollPaneUI

        public FlatScrollPaneUI()
    • Method Detail

      • createUI

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

        public void installUI​(javax.swing.JComponent c)
        Overrides:
        installUI in class javax.swing.plaf.basic.BasicScrollPaneUI
      • installUIImpl

        private void installUIImpl​(javax.swing.JComponent c)
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class javax.swing.plaf.basic.BasicScrollPaneUI
      • installListeners

        protected void installListeners​(javax.swing.JScrollPane c)
        Overrides:
        installListeners in class javax.swing.plaf.basic.BasicScrollPaneUI
      • uninstallListeners

        protected void uninstallListeners​(javax.swing.JComponent c)
        Overrides:
        uninstallListeners in class javax.swing.plaf.basic.BasicScrollPaneUI
      • createMouseWheelListener

        protected java.awt.event.MouseWheelListener createMouseWheelListener()
        Overrides:
        createMouseWheelListener in class javax.swing.plaf.basic.BasicScrollPaneUI
      • isSmoothScrollingEnabled

        protected boolean isSmoothScrollingEnabled()
      • mouseWheelMovedSmooth

        private void mouseWheelMovedSmooth​(java.awt.event.MouseWheelEvent e)
      • createPropertyChangeListener

        protected java.beans.PropertyChangeListener createPropertyChangeListener()
        Overrides:
        createPropertyChangeListener in class javax.swing.plaf.basic.BasicScrollPaneUI
      • installStyle

        protected void installStyle()
        Since:
        2
      • applyStyle

        protected void applyStyle​(java.lang.Object style)
        Since:
        2
      • applyStyleProperty

        protected java.lang.Object applyStyleProperty​(java.lang.String key,
                                                      java.lang.Object value)
        Since:
        2
      • updateViewport

        protected void updateViewport​(java.beans.PropertyChangeEvent e)
        Overrides:
        updateViewport in class javax.swing.plaf.basic.BasicScrollPaneUI
      • addViewportListeners

        private void addViewportListeners​(javax.swing.JViewport viewport)
      • removeViewportListeners

        private void removeViewportListeners​(javax.swing.JViewport viewport)
      • update

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

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

        public static boolean isPermanentFocusOwner​(javax.swing.JScrollPane scrollPane)
        Since:
        1.3
      • getView

        static java.awt.Component getView​(javax.swing.JScrollPane scrollPane)
      • getBorderArc

        private static float getBorderArc​(javax.swing.JScrollPane scrollPane)
      • getBorderLeftRightPadding

        private static int getBorderLeftRightPadding​(javax.swing.JScrollPane scrollPane)