public class SubstanceProgressBarUI
extends javax.swing.plaf.basic.BasicProgressBarUI
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
displayedValue |
|
protected org.pushingpixels.trident.Timeline |
displayTimeline |
|
protected org.pushingpixels.trident.Timeline |
indeterminateLoopTimeline |
|
protected int |
margin |
Inner margin.
|
protected float |
speed |
The speed factor for the indeterminate progress bars.
|
protected java.beans.PropertyChangeListener |
substancePropertyChangeListener |
Property change listener.
|
protected javax.swing.event.ChangeListener |
substanceValueChangeListener |
Value change listener on the associated progress bar.
|
| Constructor | Description |
|---|---|
SubstanceProgressBarUI() |
| Modifier and Type | Method | Description |
|---|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent comp) |
|
protected int |
getAmountFull(java.awt.Insets b,
int width,
int height) |
|
protected java.awt.Rectangle |
getBox(java.awt.Rectangle r) |
|
static java.lang.String |
getMemoryUsage() |
Returns the memory usage string.
|
protected java.awt.Dimension |
getPreferredInnerHorizontal() |
|
protected java.awt.Dimension |
getPreferredInnerVertical() |
|
protected java.awt.Color |
getSelectionBackground() |
|
protected java.awt.Color |
getSelectionForeground() |
|
protected java.awt.Rectangle |
getStringRectangle(java.lang.String progressString,
int x,
int y,
int width,
int height) |
Returns the rectangle for the progress bar string.
|
protected void |
installDefaults() |
|
protected void |
installListeners() |
|
void |
paintDeterminate(java.awt.Graphics g,
javax.swing.JComponent c) |
|
void |
paintIndeterminate(java.awt.Graphics g,
javax.swing.JComponent c) |
|
protected void |
paintString(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int amountFull,
java.awt.Insets b) |
|
protected void |
startAnimationTimer() |
|
protected void |
stopAnimationTimer() |
|
protected void |
uninstallListeners() |
getAnimationIndex, getBaseline, getBaselineResizeBehavior, getBoxLength, getCellLength, getCellSpacing, getFrameCount, getMaximumSize, getMinimumSize, getPreferredSize, getStringPlacement, incrementAnimationIndex, installUI, paint, setAnimationIndex, setCellLength, setCellSpacing, uninstallDefaults, uninstallUIprotected javax.swing.event.ChangeListener substanceValueChangeListener
protected java.beans.PropertyChangeListener substancePropertyChangeListener
font
property.protected int margin
protected float speed
protected int displayedValue
protected org.pushingpixels.trident.Timeline displayTimeline
protected org.pushingpixels.trident.Timeline indeterminateLoopTimeline
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
protected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicProgressBarUIprotected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicProgressBarUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicProgressBarUIpublic void paintDeterminate(java.awt.Graphics g,
javax.swing.JComponent c)
paintDeterminate in class javax.swing.plaf.basic.BasicProgressBarUIprotected java.awt.Color getSelectionBackground()
getSelectionBackground in class javax.swing.plaf.basic.BasicProgressBarUIprotected java.awt.Color getSelectionForeground()
getSelectionForeground in class javax.swing.plaf.basic.BasicProgressBarUIpublic void paintIndeterminate(java.awt.Graphics g,
javax.swing.JComponent c)
paintIndeterminate in class javax.swing.plaf.basic.BasicProgressBarUIprotected java.awt.Rectangle getBox(java.awt.Rectangle r)
getBox in class javax.swing.plaf.basic.BasicProgressBarUIprotected void startAnimationTimer()
startAnimationTimer in class javax.swing.plaf.basic.BasicProgressBarUIprotected void stopAnimationTimer()
stopAnimationTimer in class javax.swing.plaf.basic.BasicProgressBarUIpublic static java.lang.String getMemoryUsage()
protected int getAmountFull(java.awt.Insets b,
int width,
int height)
getAmountFull in class javax.swing.plaf.basic.BasicProgressBarUIprotected java.awt.Dimension getPreferredInnerHorizontal()
getPreferredInnerHorizontal in class javax.swing.plaf.basic.BasicProgressBarUIprotected java.awt.Dimension getPreferredInnerVertical()
getPreferredInnerVertical in class javax.swing.plaf.basic.BasicProgressBarUIprotected void paintString(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int amountFull,
java.awt.Insets b)
paintString in class javax.swing.plaf.basic.BasicProgressBarUIprotected java.awt.Rectangle getStringRectangle(java.lang.String progressString,
int x,
int y,
int width,
int height)
progressString - Progress bar string.x - x location of bounding boxy - y location of bounding boxwidth - width of bounding boxheight - height of bounding box