Class ChasingArrowsThrobberUI



  • public class ChasingArrowsThrobberUI
    extends ThrobberUI
    A ThrobberUI of two arrows that rotate clockwise.

    ChassingArrowsThrobberUI ChassingArrowsThrobberUI Magnified 2x ChassingArrowsThrobberUI Magnified 4x

    On installation: the component's foreground is set to dark gray, but if that is changed then that color is used to render this animation.

    The default period for this animation is 2000, but you can modify this with the period client properties ThrobberUI.PERIOD_KEY or ThrobberUI.PERIOD_MULTIPLIER_KEY.

    • Field Detail

      • DEFAULT_PERIOD

        public static final int DEFAULT_PERIOD
        The default duration (in ms) it takes to complete a cycle.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChasingArrowsThrobberUI

        public ChasingArrowsThrobberUI()
    • Method Detail

      • paintForeground

        protected void paintForeground(Graphics2D g,
                                       JComponent jc,
                                       Dimension size,
                                       Float fixedFraction)
        Description copied from class: ThrobberUI
        Paints the foreground. The Graphics2D passed to this object is configured as if you were painting size argument (which is the preferred size). So if the preferred size of this ThrobberUI is 16x16, you always paint as if you're painting to a 16x16 area.
        Specified by:
        paintForeground in class  ThrobberUI
        Parameters:
        g - the graphics to paint to.
        jc - the component to paint, this may be null if used as an Icon.
        size - the dimensions to paint to. Assume these are the dimensions of the component you are painting (the Graphics2D has been transformed to work within these dimensions).
        fixedFraction - an optional fixed fraction from [0, 1] representing the state of this animation. If null: then this should be derived from the current time.
      • getPreferredSize

        public Dimension getPreferredSize()
      • getDefaultForeground

        public Color getDefaultForeground()
        Description copied from class: ThrobberUI
        Return the default foreground color for this throbber. If this is not null: then during installUI() this will be assigned as the new foreground color.