Class FlatProgressBarUI

    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicProgressBarUI

        javax.swing.plaf.basic.BasicProgressBarUI.ChangeHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int arc  
      protected java.awt.Dimension horizontalSize  
      protected boolean largeHeight  
      private java.util.Map<java.lang.String,​java.lang.Object> oldStyleValues  
      private java.beans.PropertyChangeListener propertyChangeListener  
      protected boolean square  
      protected java.awt.Dimension verticalSize  
      • Fields inherited from class javax.swing.plaf.basic.BasicProgressBarUI

        boxRect, changeListener, progressBar
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void applyStyle​(java.lang.Object style)  
      protected java.lang.Object applyStyleProperty​(java.lang.String key, java.lang.Object value)  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      protected java.awt.Dimension getPreferredInnerHorizontal()  
      protected java.awt.Dimension getPreferredInnerVertical()  
      java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)  
      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)  
      protected void installDefaults()  
      protected void installListeners()  
      protected void installStyle()  
      void installUI​(javax.swing.JComponent c)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      protected void paintString​(java.awt.Graphics g, int x, int y, int width, int height, int amountFull, java.awt.Insets b)  
      protected void setAnimationIndex​(int newValue)  
      protected void uninstallDefaults()  
      protected void uninstallListeners()  
      void uninstallUI​(javax.swing.JComponent c)  
      void update​(java.awt.Graphics g, javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.basic.BasicProgressBarUI

        getAmountFull, getAnimationIndex, getBaseline, getBaselineResizeBehavior, getBox, getBoxLength, getCellLength, getCellSpacing, getFrameCount, getMaximumSize, getMinimumSize, getSelectionBackground, getSelectionForeground, getStringPlacement, incrementAnimationIndex, paintDeterminate, paintIndeterminate, setCellLength, setCellSpacing, startAnimationTimer, stopAnimationTimer
      • Methods inherited from class javax.swing.plaf.ComponentUI

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

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

      • arc

        protected int arc
      • horizontalSize

        protected java.awt.Dimension horizontalSize
      • verticalSize

        protected java.awt.Dimension verticalSize
      • largeHeight

        protected boolean largeHeight
        Since:
        2
      • square

        protected boolean square
        Since:
        2
      • propertyChangeListener

        private java.beans.PropertyChangeListener propertyChangeListener
      • oldStyleValues

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

      • FlatProgressBarUI

        public FlatProgressBarUI()
    • 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.BasicProgressBarUI
      • uninstallUI

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

        protected void installDefaults()
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicProgressBarUI
      • uninstallDefaults

        protected void uninstallDefaults()
        Overrides:
        uninstallDefaults in class javax.swing.plaf.basic.BasicProgressBarUI
      • installListeners

        protected void installListeners()
        Overrides:
        installListeners in class javax.swing.plaf.basic.BasicProgressBarUI
      • uninstallListeners

        protected void uninstallListeners()
        Overrides:
        uninstallListeners in class javax.swing.plaf.basic.BasicProgressBarUI
      • 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
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.basic.BasicProgressBarUI
      • getPreferredInnerHorizontal

        protected java.awt.Dimension getPreferredInnerHorizontal()
        Overrides:
        getPreferredInnerHorizontal in class javax.swing.plaf.basic.BasicProgressBarUI
      • getPreferredInnerVertical

        protected java.awt.Dimension getPreferredInnerVertical()
        Overrides:
        getPreferredInnerVertical in class javax.swing.plaf.basic.BasicProgressBarUI
      • 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.BasicProgressBarUI
      • paintString

        protected void paintString​(java.awt.Graphics g,
                                   int x,
                                   int y,
                                   int width,
                                   int height,
                                   int amountFull,
                                   java.awt.Insets b)
        Overrides:
        paintString in class javax.swing.plaf.basic.BasicProgressBarUI
      • setAnimationIndex

        protected void setAnimationIndex​(int newValue)
        Overrides:
        setAnimationIndex in class javax.swing.plaf.basic.BasicProgressBarUI