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, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected 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 BasicProgressBarUI
protected void installListeners()
installListeners
in class BasicProgressBarUI
protected void uninstallListeners()
uninstallListeners
in class BasicProgressBarUI
public void paintDeterminate(Graphics g, JComponent c)
paintDeterminate
in class BasicProgressBarUI
protected Color getSelectionBackground()
getSelectionBackground
in class BasicProgressBarUI
protected Color getSelectionForeground()
getSelectionForeground
in class BasicProgressBarUI
public void paintIndeterminate(Graphics g, JComponent c)
paintIndeterminate
in class BasicProgressBarUI
protected Rectangle getBox(Rectangle r)
getBox
in class BasicProgressBarUI
protected void startAnimationTimer()
startAnimationTimer
in class BasicProgressBarUI
protected void stopAnimationTimer()
stopAnimationTimer
in class BasicProgressBarUI
public static String getMemoryUsage()
protected int getAmountFull(Insets b, int width, int height)
getAmountFull
in class BasicProgressBarUI
protected Dimension getPreferredInnerHorizontal()
getPreferredInnerHorizontal
in class BasicProgressBarUI
protected Dimension getPreferredInnerVertical()
getPreferredInnerVertical
in class BasicProgressBarUI
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
paintString
in class BasicProgressBarUI
protected 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