E - component typeI - decoration typepublic class WebDecoration<E extends javax.swing.JComponent,I extends WebDecoration<E,I>> extends AbstractDecoration<E,I>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<IBackground> |
background
Optional decoration backgrounds.
|
protected java.util.List<IBorder> |
borders
Optional decoration border.
|
protected java.util.List<IContent> |
contents
Optional decoration contents.
|
protected java.util.List<IContentLayout> |
layout
Optional decoration contents layout.
|
protected java.util.List<IShadow> |
shades
Optional decoration shades.
|
protected java.util.List<IShape> |
shapes
Decoration shape.
|
defaultStateId, opacity, section, size, states, visibleSTATES_SEPARATOR| Constructor and Description |
|---|
WebDecoration() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IBackground> |
getBackgrounds()
Returns decoration backgrounds.
|
IBorder |
getBorder()
Returns decoration border.
|
java.awt.Insets |
getBorderInsets(E c)
Returns decoration borders size.
|
float |
getBorderWidth()
Returns border width.
|
java.util.List<IContent> |
getContents()
Returns decoration contents.
|
IContentLayout |
getLayout()
Returns decoration contents layout.
|
IShadow |
getShade(ShadowType type)
Returns shade of the specified type.
|
int |
getShadeWidth(ShadowType type)
Returns width of the shade with the specified type.
|
IShape |
getShape()
Returns decoration shape.
|
I |
merge(I decoration) |
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)
Paints component decoration.
|
java.awt.Shape |
provideShape(E component,
java.awt.Rectangle bounds)
Returns painted component shape.
|
clone, getId, getOpacity, getPreferredSize, getStates, isSection, isVisible, setSection, toStringprotected java.util.List<IShape> shapes
IShape,
AbstractShapeprotected java.util.List<IShadow> shades
IShadow,
AbstractShadowprotected java.util.List<IBorder> borders
IBorder,
AbstractBorderprotected java.util.List<IBackground> background
IBackground,
AbstractBackgroundprotected java.util.List<IContentLayout> layout
IContentLayoutprotected java.util.List<IContent> contents
IContent,
AbstractContentpublic IShape getShape()
public IShadow getShade(ShadowType type)
type - shade typepublic int getShadeWidth(ShadowType type)
type - shade typepublic IBorder getBorder()
public float getBorderWidth()
public java.util.List<IBackground> getBackgrounds()
public IContentLayout getLayout()
public java.util.List<IContent> getContents()
public java.awt.Insets getBorderInsets(E c)
IDecorationc - painted componentpublic java.awt.Shape provideShape(E component, java.awt.Rectangle bounds)
PainterShapeProvidercomponent - component to processbounds - bounds for painter visual datapublic void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)
IDecorationg2d - graphics contextbounds - painting boundsc - painted componentpublic I merge(I decoration)
merge in interface com.alee.api.Mergeable<I extends WebDecoration<E,I>>merge in class AbstractDecoration<E extends javax.swing.JComponent,I extends WebDecoration<E,I>>