public class ProgressBar
extends javax.swing.JComponent
implements java.awt.event.MouseListener
javax.swing.JComponent.AccessibleJComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
ProgressBar()
Initializes a new instance of the ProgressBar class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyEffectiveBackgroundBrush(java.awt.Rectangle bounds,
java.awt.Graphics e) |
void |
applyEffectiveBorderBrush(java.awt.Rectangle bounds,
int thickness,
java.awt.Graphics e) |
void |
applyEffectiveForegroundBrush(java.awt.Rectangle bounds,
java.awt.Graphics e) |
void |
applyEffectiveHighlightBrush(java.awt.Rectangle bounds,
java.awt.Graphics e) |
java.awt.Rectangle |
applyPadding(java.awt.Rectangle bounds) |
Brush |
getBackgroundBrush()
Gets the brush used to fill the progress bar.
|
Brush |
getBackgroundBrushDisabled()
Gets the brush used to fill the progress bar when it is disabled.
|
Brush |
getBorderBrush()
Gets the brush used to draw the progress bar border.
|
Brush |
getBorderBrushDisabled()
Gets the brush used to draw the progress bar border when disabled.
|
int |
getBorderThickness()
Gets the thickness of the progress bar border.
|
Brush |
getForegroundBrush()
Gets the brush used to draw the progress bar text.
|
Brush |
getForegroundBrushDisabled()
Gets the brush used to draw the progress bar text when it is disabled.
|
Brush |
getForegroundBrushHighlighted()
Gets the brush used to draw the progress bar text when it is highlighted.
|
java.text.NumberFormat |
getFormat()
Gets the formatting String.
|
Brush |
getHighlightBrush()
Gets the brush used to draw the progress gauge.
|
Brush |
getHighlightBrushDisabled()
Gets the brush used to draw the progress gauge when disabled.
|
double |
getMaximum()
Gets the maximum value of the progress bar.
|
double |
getMinimum()
Gets the minimum value of the progress bar.
|
java.awt.Rectangle |
getPadding() |
TextAlignment |
getTextAlign()
Gets the alignment of text in the progress bar.
|
double |
getValue()
Gets the value displayed by the progress bar.
|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
paint(java.awt.Graphics e)
JComponent.paint override.
|
void |
setBackgroundBrush(Brush value)
Sets the brush used to fill the progress bar.
|
void |
setBackgroundBrushDisabled(Brush value)
Sets the brush used to fill the progress bar when it is disabled.
|
void |
setBorderBrush(Brush value)
Sets the brush used to draw the progress bar border.
|
void |
setBorderBrushDisabled(Brush value)
Sets the brush used to draw the progress bar border when disabled.
|
void |
setBorderThickness(int value)
Sets the thickness of the progress bar border.
|
void |
setForegroundBrush(Brush value)
Sets the brush used to draw the progress bar text.
|
void |
setForegroundBrushDisabled(Brush value)
Sets the brush used to draw the progress bar text when it is disabled.
|
void |
setForegroundBrushHighlighted(Brush value)
Sets the brush used to draw the progress bar text when it is highlighted.
|
void |
setFormat(java.text.NumberFormat value)
Sets the formatting String.
|
void |
setHeight(int value) |
void |
setHighlightBrush(Brush value)
Sets the brush used to draw the progress gauge.
|
void |
setHighlightBrushDisabled(Brush value)
Sets the brush used to draw the progress gauge when disabled.
|
void |
setMaximum(double value)
Sets the maximum value of the progress bar.
|
void |
setMinimum(double value)
Sets the minimum value of the progress bar.
|
void |
setPadding(java.awt.Rectangle value) |
void |
setTextAlign(TextAlignment value)
Sets the alignment of text in the progress bar.
|
void |
setValue(double value)
Sets the value displayed by the progress bar.
|
void |
setWidth(int value) |
void |
setX(int value) |
void |
setY(int value) |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic ProgressBar()
public void paint(java.awt.Graphics e)
paint in class javax.swing.JComponentpublic void setX(int value)
public void setY(int value)
public void setWidth(int value)
public void setHeight(int value)
public Brush getForegroundBrush()
public void setForegroundBrush(Brush value)
value - A Brush instance.public Brush getForegroundBrushHighlighted()
public void setForegroundBrushHighlighted(Brush value)
value - A Brush instance.public Brush getForegroundBrushDisabled()
public void setForegroundBrushDisabled(Brush value)
value - A Brush instance.public Brush getBackgroundBrush()
public void setBackgroundBrush(Brush value)
value - A Brush instance.public Brush getBackgroundBrushDisabled()
public void setBackgroundBrushDisabled(Brush value)
value - A Brush instance.public Brush getHighlightBrush()
public void setHighlightBrush(Brush value)
value - A Brush instance.public Brush getHighlightBrushDisabled()
public void setHighlightBrushDisabled(Brush value)
value - A Brush instance.public Brush getBorderBrush()
public void setBorderBrush(Brush value)
value - A Brush instance.public Brush getBorderBrushDisabled()
public void setBorderBrushDisabled(Brush value)
value - A Brush instance.public int getBorderThickness()
public void setBorderThickness(int value)
value - An integer value representing border thickness.public TextAlignment getTextAlign()
public void setTextAlign(TextAlignment value)
value - A member of the TextAlignment enumeration.public double getValue()
public void setValue(double value)
value - A double value.public double getMinimum()
public void setMinimum(double value)
value - A double value.public double getMaximum()
public void setMaximum(double value)
value - A double value.public java.text.NumberFormat getFormat()
public void setFormat(java.text.NumberFormat value)
value - A String specifying progress bar's label format.public java.awt.Rectangle getPadding()
public void setPadding(java.awt.Rectangle value)
public void applyEffectiveBackgroundBrush(java.awt.Rectangle bounds,
java.awt.Graphics e)
public void applyEffectiveHighlightBrush(java.awt.Rectangle bounds,
java.awt.Graphics e)
public void applyEffectiveForegroundBrush(java.awt.Rectangle bounds,
java.awt.Graphics e)
public void applyEffectiveBorderBrush(java.awt.Rectangle bounds,
int thickness,
java.awt.Graphics e)
public java.awt.Rectangle applyPadding(java.awt.Rectangle bounds)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListener