Class BasicBusyLabelUI

All Implemented Interfaces:
PropertyChangeListener, EventListener, BusyLabelUI

public class BasicBusyLabelUI extends BasicLabelUI implements BusyLabelUI
Base implementation of the JXBusyLabel UI.
Author:
rah003
  • Constructor Details

    • BasicBusyLabelUI

      public BasicBusyLabelUI(JXBusyLabel lbl)
      Creates a new instance of BasicBusyLabelUI
      Parameters:
      lbl - JXBusyLabel
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent c)
      factory
      Parameters:
      c - JComponent not used
      Returns:
      new instance of BasicBusyLabelUI
    • getBusyPainter

      public BusyPainter getBusyPainter(Dimension dim)
      Specified by:
      getBusyPainter in interface BusyLabelUI
      Parameters:
      dim - Dimension of the BusyPainter
      Returns:
      The BusyPainter for the JXBusyLabel. If this method returns null, then no progress indication will be shown by busy label.
    • getDelay

      public int getDelay()
      Description copied from interface: BusyLabelUI
      Delay between moving from one point to another. The exact timing will be close to the selected value but is not guaranteed to be precise (subject to the timing precision of underlaying jvm).
      Specified by:
      getDelay in interface BusyLabelUI
      Returns:
      Delay in ms.