static
ComponentUI
|
createUI(JComponent x)
|
int
|
getAmountFull(Insets b, int width, int height)
This determines the amount of the progress bar that should be filled
based on the percent done gathered from the model.
|
int
|
getAnimationIndex()
Gets the index of the current animation frame.
|
int
|
getBaseline(JComponent c, int width, int height)
Returns the baseline.
|
Component.BaselineResizeBehavior
|
getBaselineResizeBehavior(JComponent c)
Returns an enum indicating how the baseline of the component
changes as the size changes.
|
Rectangle
|
getBox(Rectangle r)
Stores the position and size of
the bouncing box that would be painted for the current animation index
in r and returns r .
|
int
|
getBoxLength(int availableLength, int otherDimension)
Returns the length
of the "bouncing box" to be painted.
|
int
|
getCellLength()
Returns the width (if HORIZONTAL) or height (if VERTICAL)
of each of the indivdual cells/units to be rendered in the
progress bar.
|
int
|
getCellSpacing()
Returns the spacing between each of the cells/units in the
progress bar.
|
final
int
|
getFrameCount()
Returns the number of frames for the complete animation loop
used by an indeterminate JProgessBar.
|
Dimension
|
getMaximumSize(JComponent c)
Returns the specified component's maximum size appropriate for
the look and feel.
|
Dimension
|
getMinimumSize(JComponent c)
The Minimum size for this component is 10.
|
Dimension
|
getPreferredInnerHorizontal()
|
Dimension
|
getPreferredInnerVertical()
|
Dimension
|
getPreferredSize(JComponent c)
Returns the specified component's preferred size appropriate for
the look and feel.
|
Color
|
getSelectionBackground()
The "selectionBackground" is the color of the text when it is painted
over an unfilled area of the progress bar.
|
Color
|
getSelectionForeground()
The "selectionForeground" is the color of the text when it is painted
over a filled area of the progress bar.
|
Point
|
getStringPlacement(Graphics g, String progressString, int x, int y, int width, int height)
Designate the place where the progress string will be painted.
|
void
|
incrementAnimationIndex()
Sets the index of the current animation frame,
to the next valid value,
which results in the progress bar being repainted.
|
void
|
installDefaults()
|
void
|
installListeners()
|
void
|
installUI(JComponent c)
Configures the specified component appropriate for the look and feel.
|
void
|
paint(Graphics g, JComponent c)
Delegates painting to one of two methods:
paintDeterminate or paintIndeterminate.
|
void
|
paintDeterminate(Graphics g, JComponent c)
All purpose paint method that should do the right thing for almost
all linear, determinate progress bars.
|
void
|
paintIndeterminate(Graphics g, JComponent c)
All purpose paint method that should do the right thing for all
linear bouncing-box progress bars.
|
void
|
paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
|
void
|
setAnimationIndex(int newValue)
Sets the index of the current animation frame
to the specified value and requests that the
progress bar be repainted.
|
void
|
setCellLength(int cellLen)
|
void
|
setCellSpacing(int cellSpace)
|
void
|
startAnimationTimer()
Starts the animation thread, creating and initializing
it if necessary.
|
void
|
stopAnimationTimer()
Stops the animation thread.
|
void
|
uninstallDefaults()
|
void
|
uninstallListeners()
Removes all listeners installed by this object.
|
void
|
uninstallUI(JComponent c)
Reverses configuration which was done on the specified component during
installUI .
|