Package totalcross.ui

Class CircularProgressBar


  • public class CircularProgressBar
    extends Control
    • Constructor Detail

      • CircularProgressBar

        public CircularProgressBar​(int thickness,
                                   int maxValue,
                                   int value,
                                   IconType icon)
      • CircularProgressBar

        public CircularProgressBar​(int thickness,
                                   int maxValue,
                                   IconType icon)
      • CircularProgressBar

        public CircularProgressBar​(int thickness,
                                   IconType icon)
      • CircularProgressBar

        public CircularProgressBar​(int thickness,
                                   int maxValue,
                                   int value)
      • CircularProgressBar

        public CircularProgressBar​(int thickness,
                                   int maxValue)
      • CircularProgressBar

        public CircularProgressBar​(int thickness)
    • Method Detail

      • onPaint

        public void onPaint​(Graphics g)
        Description copied from class: Control
        Called to draw the control. When this method is called, the graphics object passed has been translated into the coordinate system of the control and the area behind the control has already been painted.
        Overrides:
        onPaint in class Control
        Parameters:
        g - the graphics object for drawing
        See Also:
        Graphics
      • onBoundsChanged

        protected void onBoundsChanged​(boolean screenChanged)
        Description copied from class: Control
        Called after a setRect.
        Overrides:
        onBoundsChanged in class Control
        Parameters:
        screenChanged - If the bounds were changed due to a screen change (rotation, collapse)
      • getPreferredWidth

        public int getPreferredWidth()
        Description copied from class: Control
        Returns the preferred width of this control.
        Overrides:
        getPreferredWidth in class Control
      • getPreferredHeight

        public int getPreferredHeight()
        Description copied from class: Control
        Returns the preferred height of this control.
        Overrides:
        getPreferredHeight in class Control
      • getMaxValue

        public int getMaxValue()
      • setMaxValue

        public void setMaxValue​(int maxValue)
      • getValue

        public int getValue()
      • setValue

        public void setValue​(int value)
      • getIconColor

        public int getIconColor()
      • setIconColor

        public void setIconColor​(int iconColor)
      • getIcon

        public Icon getIcon()
      • setIcon

        public void setIcon​(Icon icon)