public class WebMemoryBarBackground<E extends WebMemoryBar,D extends IDecoration<E,D>,I extends WebMemoryBarBackground<E,D,I>> extends AbstractBackground<E,D,I>
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
allocatedMarkColor
Allocated mark color.
|
protected java.lang.Integer |
round
Progress shape round.
|
protected java.awt.Color |
usedBorderColor
Used border color.
|
protected java.awt.Color |
usedFillColor
Used fill color.
|
id, opacity| Constructor and Description |
|---|
WebMemoryBarBackground() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getDefaultId()
Returns default background ID.
|
protected java.awt.Shape |
getProgressShape(java.awt.Rectangle bounds,
long progress,
long max,
boolean fill)
Returns progress shape.
|
protected int |
getProgressWidth(java.awt.Rectangle bounds,
long progress,
long max,
boolean fill)
Returns progress width.
|
I |
merge(I background) |
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
D d,
java.awt.Shape shape)
Fills the specified shape with this background.
|
clone, getId, getOpacity@XStreamAsAttribute protected java.lang.Integer round
protected java.awt.Color usedBorderColor
protected java.awt.Color usedFillColor
protected java.awt.Color allocatedMarkColor
protected java.lang.String getDefaultId()
AbstractBackgroundgetDefaultId in class AbstractBackground<E extends WebMemoryBar,D extends IDecoration<E,D>,I extends WebMemoryBarBackground<E,D,I>>public void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
D d,
java.awt.Shape shape)
IBackgroundg2d - graphics contextbounds - painting boundsc - painted componentd - painted decoration stateshape - background shapeprotected java.awt.Shape getProgressShape(java.awt.Rectangle bounds,
long progress,
long max,
boolean fill)
bounds - content boundsprogress - progress amountmax - max progress amountfill - whether or not fill shape is requiredprotected int getProgressWidth(java.awt.Rectangle bounds,
long progress,
long max,
boolean fill)
bounds - content boundsprogress - progress amountmax - max progress amountfill - whether or not fill shape is requiredpublic I merge(I background)
merge in interface com.alee.api.Mergeable<I extends WebMemoryBarBackground<E,D,I>>merge in class AbstractBackground<E extends WebMemoryBar,D extends IDecoration<E,D>,I extends WebMemoryBarBackground<E,D,I>>