javax.swing.JProgressBar .
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Dimension | |
| private boolean | |
| private int | |
| private boolean | |
| private SynthStyle | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ComponentUI | Returns: the UI objectcomponent to create UI object for x)Hides javax. Creates a new UI object for the given component. |
| public int | getBaseline(JComponent c, int width, int height)
Overrides javax. Returns the baseline. |
| protected Rectangle | getBox(Rectangle r)
Overrides javax. Stores the position and size of
the bouncing box that would be painted for the current animation index
in |
| private int | |
| public SynthContext | getContext(JComponent c)
Implements javax. Returns the Context for the specified component. |
| private SynthContext | |
| public Dimension | getPreferredSize(JComponent c)
Overrides javax. Returns the specified component's preferred size appropriate for the look and feel. |
| protected void | installDefaults()
Overrides javax. Installs default properties. |
| protected void | installListeners()
Overrides javax. Registers listeners. |
| public void | paint(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Paints the specified component according to the Look and Feel. |
| protected void | paint(SynthContext
context for the component being painted context, Graphics the g)Graphics object used for paintingPaints the specified component. |
| public void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Implements javax. Paints the border. |
| protected void | paintText(SynthContext
context for the component being painted context, Graphics Graphics object used for paintingthe text to paint title)Paints the component's text. |
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| protected void | setAnimationIndex(int newValue)
Overrides javax. Sets the index of the current animation frame to the specified value and requests that the progress bar be repainted. |
| protected void | uninstallDefaults()
Overrides javax. Unintalls default properties. |
| protected void | uninstallListeners()
Overrides javax. Removes all listeners installed by this object. |
| public void | update(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Notifies this UI delegate to repaint the specified component. |
| private void |
| glowWidth | back to summary |
|---|---|
| private int glowWidth | |
| minBarSize | back to summary |
|---|---|
| private Dimension minBarSize | |
| paintOutsideClip | back to summary |
|---|---|
| private boolean paintOutsideClip | |
| progressPadding | back to summary |
|---|---|
| private int progressPadding | |
| rotateText | back to summary |
|---|---|
| private boolean rotateText | |
| style | back to summary |
|---|---|
| private SynthStyle style | |
| tileWhenIndeterminate | back to summary |
|---|---|
| private boolean tileWhenIndeterminate | |
| tileWidth | back to summary |
|---|---|
| private int tileWidth | |
| SynthProgressBarUI | back to summary |
|---|---|
| public SynthProgressBarUI() Constructs a | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent x) Hides javax. Creates a new UI object for the given component.
| |
| getBaseline | back to summary |
|---|---|
| public int getBaseline(JComponent c, int width, int height) Overrides javax. Doc from javax. Returns the baseline.
| |
| getBox | back to summary |
|---|---|
| protected Rectangle getBox(Rectangle r) Overrides javax. Doc from javax. Stores the position and size of
the bouncing box that would be painted for the current animation index
in
| |
| getComponentState | back to summary |
|---|---|
| private int getComponentState(JComponent c) | |
| getContext | back to summary |
|---|---|
| public SynthContext getContext(JComponent c) Implements javax. Doc from javax. Returns the Context for the specified component.
| |
| getContext | back to summary |
|---|---|
| private SynthContext getContext(JComponent c, int state) | |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize(JComponent c) Overrides javax. Doc from javax. Returns the specified component's preferred size appropriate for
the look and feel. If
| |
| installDefaults | back to summary |
|---|---|
| protected void installDefaults() Overrides javax. Doc from javax. Installs default properties.
| |
| installListeners | back to summary |
|---|---|
| protected void installListeners() Overrides javax. Doc from javax. Registers listeners.
| |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, JComponent c) Overrides javax. Paints the specified component according to the Look and Feel. This method is not used by Synth Look and Feel.
Painting is handled by the
| |
| paint | back to summary |
|---|---|
| protected void paint(SynthContext context, Graphics g) Paints the specified component.
| |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) Implements javax. Doc from javax. Paints the border.
| |
| paintText | back to summary |
|---|---|
| protected void paintText(SynthContext context, Graphics g, String title) Paints the component's text.
| |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Implements java. Doc from java. This method gets called when a bound property is changed.
| |
| setAnimationIndex | back to summary |
|---|---|
| protected void setAnimationIndex(int newValue) Overrides javax. Doc from javax. Sets the index of the current animation frame
to the specified value and requests that the
progress bar be repainted.
Subclasses that don't use the default painting code
might need to override this method
to change the way that the
| |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults() Overrides javax. Doc from javax. Unintalls default properties.
| |
| uninstallListeners | back to summary |
|---|---|
| protected void uninstallListeners() Overrides javax. Doc from javax. Removes all listeners installed by this object.
| |
| update | back to summary |
|---|---|
| public void update(Graphics g, JComponent c) Overrides javax. Notifies this UI delegate to repaint the specified component.
This method paints the component background, then calls
the In general, this method does not need to be overridden by subclasses.
All Look and Feel rendering code should reside in the
| |
| updateStyle | back to summary |
|---|---|
| private void updateStyle(JProgressBar c) | |