Class InfiniteProgressPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener

public class InfiniteProgressPanel extends JComponent implements ActionListener
See Also:
  • Constructor Details

    • InfiniteProgressPanel

      public InfiniteProgressPanel()
    • InfiniteProgressPanel

      public InfiniteProgressPanel(double ratio)
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Called to animate the rotation of the bar's colors
      Specified by:
      actionPerformed in interface ActionListener
    • setVisible

      public void setVisible(boolean i_bIsVisible)
      Show/Hide the pane, starting and stopping the animation as you go
      Overrides:
      setVisible in class JComponent
    • setBounds

      public void setBounds(int x, int y, int width, int height)
      Recalc bars based on changes in size
      Overrides:
      setBounds in class Component
    • paintComponent

      protected void paintComponent(Graphics g)
      paint background dimmed and bars over top
      Overrides:
      paintComponent in class JComponent
    • start

      public void start()
    • stop

      public void stop()