javax.swing.plaf.metal
public class MetalProgressBarUI extends BasicProgressBarUI
JProgressBar
component.BasicProgressBarUI.ChangeHandler
boxRect, changeListener, progressBar
Constructor and Description |
---|
MetalProgressBarUI()
Constructs a new instance of
MetalProgressBarUI . |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent component)
Returns a new instance of
MetalProgressBarUI . |
void |
paintDeterminate(Graphics g,
JComponent c)
Performs the painting for determinate progress bars.
|
void |
paintIndeterminate(Graphics g,
JComponent c)
Performs the painting for indeterminate progress bars.
|
getAmountFull, getAnimationIndex, getBox, getCellLength, getCellSpacing, getMaximumSize, getMinimumSize, getPreferredInnerHorizontal, getPreferredInnerVertical, getPreferredSize, getSelectionBackground, getSelectionForeground, getStringPlacement, incrementAnimationIndex, installDefaults, installListeners, installUI, paint, paintString, setAnimationIndex, setCellLength, setCellSpacing, startAnimationTimer, stopAnimationTimer, uninstallDefaults, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
public MetalProgressBarUI()
MetalProgressBarUI
.public static ComponentUI createUI(JComponent component)
MetalProgressBarUI
.component
- the component for which we return an UI instanceMetalProgressBarUI
.public void paintDeterminate(Graphics g, JComponent c)
paintDeterminate
in class BasicProgressBarUI
g
- the graphics contextc
- not used herepublic void paintIndeterminate(Graphics g, JComponent c)
paintIndeterminate
in class BasicProgressBarUI
g
- the graphics contextc
- not used here