E - component typeD - decoration typeI - background typepublic class ColorBackground<E extends javax.swing.JComponent,D extends IDecoration<E,D>,I extends ColorBackground<E,D,I>> extends AbstractBackground<E,D,I>
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
color
Background color.
|
id, opacity| Constructor and Description |
|---|
ColorBackground() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor()
Returns background color.
|
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, getDefaultId, getId, getOpacitypublic java.awt.Color getColor()
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 shapepublic I merge(I background)
merge in interface com.alee.api.Mergeable<I extends ColorBackground<E,D,I>>merge in class AbstractBackground<E extends javax.swing.JComponent,D extends IDecoration<E,D>,I extends ColorBackground<E,D,I>>