Class JSmoothProgressBar

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
fr.esrf.tangoatk.widget.util.JSmoothProgressBar
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class JSmoothProgressBar extends JComponent
A progress bar using anti-aliased font
See Also:
  • Constructor Details

    • JSmoothProgressBar

      public JSmoothProgressBar()
      Construct a progress bar.
  • Method Details

    • setProgressBarColors

      public void setProgressBarColors(Color back, Color light, Color dark)
      Sets the shadow and background colors used to paint the progress bar.
      Parameters:
      back - Background color
      light - Light color used for shadow
      dark - Dark color used for shadow
    • setBorder

      public void setBorder(Border b)
      Overrides:
      setBorder in class JComponent
    • setFont

      public void setFont(Font f)
      Overrides:
      setFont in class JComponent
    • setValue

      public void setValue(int v)
      Sets the progress value.
      Parameters:
      v - Progress value
    • getValue

      public int getValue()
      Returns:
      the current progress value.
      See Also:
    • setMaximum

      public void setMaximum(int v)
      Sets the maximum progress value.
      Parameters:
      v - Maximum
    • getMaximum

      public int getMaximum()
      Returns:
      the maximum progress value.
    • setIndeterminate

      public void setIndeterminate(boolean b)
      Deprecated.
      Parameters:
      b - Not used
    • setStringPainted

      public void setStringPainted(boolean b)
      Enable/Disable the string showing the progress
      Parameters:
      b - True to display the progress string
    • setValueOffsets

      public void setValueOffsets(int x, int y)
      Sets an offset (in pixels) for drawing the progress string.
      Parameters:
      x - Horizontal offset
      y - Vertical offset
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent