public class ProgressBar
extends java.awt.Component
Constructor and Description |
---|
ProgressBar() |
ProgressBar(java.awt.Dimension size) |
ProgressBar(int minValue,
int maxValue)
Creates a new progress bar with the min- and max-value
set to the provided arguments and an initial value of
0 . |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBarColor() |
java.awt.Color |
getBorderColor() |
int |
getMaxValue() |
int |
getMinValue() |
int |
getValue() |
boolean |
isIndeterminate() |
void |
paint(java.awt.Graphics g) |
void |
setBarColor(java.awt.Color value) |
void |
setBorderColor(java.awt.Color value) |
void |
setIndeterminate(boolean indeterminate) |
void |
setMaxValue(int value) |
void |
setMinValue(int value) |
void |
setValue(int value) |
void |
step() |
void |
step(int amount) |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public ProgressBar()
public ProgressBar(java.awt.Dimension size)
public ProgressBar(int minValue, int maxValue)
0
.minValue
- maxValue
- public void paint(java.awt.Graphics g)
paint
in class java.awt.Component
public int getMinValue()
public void setMinValue(int value)
value
- the minValue to setpublic int getMaxValue()
public void setMaxValue(int value)
value
- the maxValue to setpublic int getValue()
public void setValue(int value)
value
- the value to setpublic void step()
public void step(int amount)
public java.awt.Color getBarColor()
public void setBarColor(java.awt.Color value)
value
- the barColor to setpublic java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color value)
value
- the borderColor to setpublic boolean isIndeterminate()
public void setIndeterminate(boolean indeterminate)