Class CommonProgressAnimations.CircleProgress

All Implemented Interfaces:
Animation, Editable, StyleListener
Enclosing class:
CommonProgressAnimations

public static class CommonProgressAnimations.CircleProgress extends CommonProgressAnimations.ProgressAnimation

A progress animation that shows an animated circle.

Since

7.0

  • Constructor Details

    • CircleProgress

      public CircleProgress()
  • Method Details

    • markComponentLoading

      public static CommonProgressAnimations.CircleProgress markComponentLoading(Component cmp)
      Replaces the given component with a CircleProgress until its content is ready. When the component's content is ready, then make sure to call invalid input: ') to swap the component back into its parent. #### Parameters - `cmp`'
    • animate

      public boolean animate()
      Description copied from class: Component

      Allows the animation to reduce "repaint" calls when it returns false. It is called once for every frame. Frames are defined by the com.codename1.ui.Display class.

      Returns

      true if a repaint is desired or false if no repaint is necessary

      Specified by:
      animate in interface Animation
      Overrides:
      animate in class Component
    • paintBackground

      protected void paintBackground(Graphics g)
      Description copied from class: Component

      This method paints the Component background, it should be overriden by subclasses to perform custom background drawing.

      Parameters
      • g: the component graphics
      Overrides:
      paintBackground in class Component
    • calcPreferredSize

      protected Dimension calcPreferredSize()
      Description copied from class: Component

      Calculates the preferred size based on component content. This method is invoked lazily by getPreferred size.

      Returns

      the calculated preferred size based on component content

      Overrides:
      calcPreferredSize in class Component