E - component typeD - decoration typeI - background typepublic class AlphaLayerBackground<E extends javax.swing.JComponent,D extends IDecoration<E,D>,I extends AlphaLayerBackground<E,D,I>> extends AbstractTextureBackground<E,D,I>
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
darkColor
Dark cell color.
|
protected java.awt.Color |
lightColor
Light cell color.
|
protected java.awt.Dimension |
size
Cells size.
|
bounds, paintid, opacity| Constructor and Description |
|---|
AlphaLayerBackground() |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.TexturePaint |
getTexturePaint(java.awt.Rectangle bounds)
Returns texture paint implementation.
|
protected boolean |
isPaintable()
Returns whether or not texture background is paintable right now.
|
I |
merge(I background) |
clearCache, paintclone, getDefaultId, getId, getOpacity@XStreamAsAttribute protected java.awt.Dimension size
@XStreamAsAttribute protected java.awt.Color darkColor
@XStreamAsAttribute protected java.awt.Color lightColor
protected boolean isPaintable()
AbstractTextureBackgroundisPaintable in class AbstractTextureBackground<E extends javax.swing.JComponent,D extends IDecoration<E,D>,I extends AlphaLayerBackground<E,D,I>>protected java.awt.TexturePaint getTexturePaint(java.awt.Rectangle bounds)
AbstractTextureBackgroundgetTexturePaint in class AbstractTextureBackground<E extends javax.swing.JComponent,D extends IDecoration<E,D>,I extends AlphaLayerBackground<E,D,I>>bounds - painting boundspublic I merge(I background)
merge in interface com.alee.api.Mergeable<I extends AlphaLayerBackground<E,D,I>>merge in class AbstractBackground<E extends javax.swing.JComponent,D extends IDecoration<E,D>,I extends AlphaLayerBackground<E,D,I>>