public class SubstanceProgressBarUI extends BasicProgressBarUI
BasicProgressBarUI.ChangeHandler| 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 PropertyChangeListener |
substancePropertyChangeListener |
Property change listener.
|
protected ChangeListener |
substanceValueChangeListener |
Value change listener on the associated progress bar.
|
boxRect, changeListener, progressBar| Constructor | Description |
|---|---|
SubstanceProgressBarUI() |
| Modifier and Type | Method | Description |
|---|---|---|
static ComponentUI |
createUI(JComponent comp) |
|
protected int |
getAmountFull(Insets b,
int width,
int height) |
|
protected Rectangle |
getBox(Rectangle r) |
|
static String |
getMemoryUsage() |
Returns the memory usage string.
|
protected Dimension |
getPreferredInnerHorizontal() |
|
protected Dimension |
getPreferredInnerVertical() |
|
protected Color |
getSelectionBackground() |
|
protected Color |
getSelectionForeground() |
|
protected Rectangle |
getStringRectangle(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(Graphics g,
JComponent c) |
|
void |
paintIndeterminate(Graphics g,
JComponent c) |
|
protected void |
paintString(Graphics g,
int x,
int y,
int width,
int height,
int amountFull,
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, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, updateprotected ChangeListener substanceValueChangeListener
protected 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 ComponentUI createUI(JComponent comp)
protected void installDefaults()
installDefaults in class BasicProgressBarUIprotected void installListeners()
installListeners in class BasicProgressBarUIprotected void uninstallListeners()
uninstallListeners in class BasicProgressBarUIpublic void paintDeterminate(Graphics g, JComponent c)
paintDeterminate in class BasicProgressBarUIprotected Color getSelectionBackground()
getSelectionBackground in class BasicProgressBarUIprotected Color getSelectionForeground()
getSelectionForeground in class BasicProgressBarUIpublic void paintIndeterminate(Graphics g, JComponent c)
paintIndeterminate in class BasicProgressBarUIprotected Rectangle getBox(Rectangle r)
getBox in class BasicProgressBarUIprotected void startAnimationTimer()
startAnimationTimer in class BasicProgressBarUIprotected void stopAnimationTimer()
stopAnimationTimer in class BasicProgressBarUIpublic static String getMemoryUsage()
protected int getAmountFull(Insets b, int width, int height)
getAmountFull in class BasicProgressBarUIprotected Dimension getPreferredInnerHorizontal()
getPreferredInnerHorizontal in class BasicProgressBarUIprotected Dimension getPreferredInnerVertical()
getPreferredInnerVertical in class BasicProgressBarUIprotected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
paintString in class BasicProgressBarUIprotected Rectangle getStringRectangle(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