Class PanelLoadingLayer

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.util.EventListener

    public class PanelLoadingLayer
    extends javax.swing.plaf.LayerUI<javax.swing.JPanel>
    implements java.awt.event.ActionListener
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int angle  
      protected int fadeCount  
      protected int fadeLimit  
      protected boolean fadingOut  
      protected boolean running  
      protected javax.swing.Timer timer  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      void applyPropertyChange​(java.beans.PropertyChangeEvent e, javax.swing.JLayer<? extends javax.swing.JPanel> l)  
      static void main​(java.lang.String[] args)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      protected void paintFade​(java.awt.Graphics2D g, int w, int h)  
      protected void paintIndicator​(java.awt.Graphics2D g, javax.swing.JComponent c)  
      void start()  
      void stop()  
      • Methods inherited from class javax.swing.plaf.LayerUI

        addPropertyChangeListener, addPropertyChangeListener, doLayout, eventDispatched, firePropertyChange, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, imageUpdate, installUI, paintImmediately, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removePropertyChangeListener, removePropertyChangeListener, uninstallUI, updateUI
      • Methods inherited from class javax.swing.plaf.ComponentUI

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

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

      • running

        protected boolean running
      • fadingOut

        protected boolean fadingOut
      • timer

        protected javax.swing.Timer timer
      • angle

        protected int angle
      • fadeCount

        protected int fadeCount
      • fadeLimit

        protected int fadeLimit
    • Constructor Detail

      • PanelLoadingLayer

        public PanelLoadingLayer()
    • Method Detail

      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.LayerUI<javax.swing.JPanel>
      • paintFade

        protected void paintFade​(java.awt.Graphics2D g,
                                 int w,
                                 int h)
      • paintIndicator

        protected void paintIndicator​(java.awt.Graphics2D g,
                                      javax.swing.JComponent c)
      • start

        public void start()
      • stop

        public void stop()
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • applyPropertyChange

        public void applyPropertyChange​(java.beans.PropertyChangeEvent e,
                                        javax.swing.JLayer<? extends javax.swing.JPanel> l)
        Overrides:
        applyPropertyChange in class javax.swing.plaf.LayerUI<javax.swing.JPanel>
      • main

        public static void main​(java.lang.String[] args)