E - component typeU - component UI typeD - decoration typepublic class ProgressBarPainter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI,D extends IDecoration<E,D>> extends AbstractDecorationPainter<E,U,D> implements IProgressBarPainter<E,U>
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Dimension |
minimumContentSize
Style settings.
|
protected IProgressPainter |
progressPainter
Progress line painter.
|
ancestor, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, neighboursTracker, statescomponent, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
ProgressBarPainter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
getDecorationStates()
Returns current component decoration states.
|
protected java.awt.Dimension |
getMinimumContentSize()
Returns minimum content area size.
|
java.awt.Dimension |
getPreferredSize()
Returns preferred size required for proper painting of visual data provided by this painter.
|
protected java.util.List<SectionPainter<E,U>> |
getSectionPainters()
Returns section painters used within this painter.
|
void |
install(E c,
U ui)
Called when painter is installed onto some component.
|
protected boolean |
isHorizontal()
Returns whether or not progress bar is horizontal.
|
protected void |
paintContent(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
Paints content decorated by this painter.
|
protected void |
paintProgress(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds)
Paints progress line.
|
protected void |
paintText(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds)
Paints progress bar text.
|
protected void |
propertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
Performs various updates on property changes.
|
void |
uninstall(E c,
U ui)
Called when painter is installed into some component.
|
adjustBounds, asList, collectDecorationStates, getBorders, getDecoration, getDecorations, getDecorationSize, installFocusListener, installHierarchyListener, installHoverListener, isDecorated, isDecorationPaintAllowed, isEnabled, isFocused, isHover, isOpaque, isOpaqueDecorated, isOpaqueUndecorated, isPlainBackgroundPaintAllowed, paint, provideShape, uninstallFocusListener, uninstallHierarchyListener, uninstallHoverListener, updateDecorationState, usesState, usesStateaddPainterListener, b, borderChange, getCompleteBorder, i, i, i, installPropertyChangeListener, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPainterListener, getBorders, isOpaque, paint, removePainterListenerprotected java.awt.Dimension minimumContentSize
@DefaultPainter(value=ProgressPainter.class) protected IProgressPainter progressPainter
public void install(E c, U ui)
Painterinstall in interface Painter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI>install in class AbstractDecorationPainter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI,D extends IDecoration<E,D>>c - component this painter is being installed ontoui - component UIpublic void uninstall(E c, U ui)
Painteruninstall in interface Painter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI>uninstall in class AbstractDecorationPainter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI,D extends IDecoration<E,D>>c - component this painter is being uninstalled fromui - component UIprotected void propertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
AbstractPainterpropertyChange in class AbstractDecorationPainter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI,D extends IDecoration<E,D>>property - modified propertyoldValue - old property valuenewValue - new property valueprotected java.util.List<SectionPainter<E,U>> getSectionPainters()
AbstractDecorationPainternull in case no section painters are used within this one.
This method is used for various internal update mechanisms involving section painters.getSectionPainters in class AbstractDecorationPainter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI,D extends IDecoration<E,D>>protected java.util.List<java.lang.String> getDecorationStates()
AbstractDecorationPaintergetDecorationStates in class AbstractDecorationPainter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI,D extends IDecoration<E,D>>protected void paintContent(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
AbstractDecorationPainterpaintContent in class AbstractDecorationPainter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI,D extends IDecoration<E,D>>g2d - graphics contextbounds - painting boundsc - painted componentui - painted component UIprotected void paintProgress(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds)
g2d - graphics contextbounds - painting boundsprotected void paintText(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds)
g2d - graphics contextbounds - painting boundsprotected java.awt.Dimension getMinimumContentSize()
protected boolean isHorizontal()
public java.awt.Dimension getPreferredSize()
PaintergetPreferredSize in interface Painter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI>getPreferredSize in class AbstractDecorationPainter<E extends javax.swing.JProgressBar,U extends WebProgressBarUI,D extends IDecoration<E,D>>