E - component typeI - decoration typepublic interface IDecoration<E extends javax.swing.JComponent,I extends IDecoration<E,I>> extends java.io.Serializable, java.lang.Cloneable, com.alee.api.Mergeable<I>, com.alee.api.Identifiable, PainterShapeProvider<E>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
STATES_SEPARATOR
States separator.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorderInsets(E c)
Returns decoration borders size.
|
java.awt.Dimension |
getPreferredSize()
Returns decoration preferred size.
|
java.util.List<java.lang.String> |
getStates()
Returns component states this decoration is describing.
|
boolean |
isSection()
Returns whether or not this decoration is applied only to a section of the component.
|
boolean |
isVisible()
Returns whether or not this decoration state provides any visible decoration.
|
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)
Paints component decoration.
|
void |
setSection(boolean section)
Sets whether or not this decoration is applied only to a section of the component.
|
provideShapestatic final java.lang.String STATES_SEPARATOR
java.util.List<java.lang.String> getStates()
boolean isVisible()
boolean isSection()
void setSection(boolean section)
section - whether or not this decoration is applied only to a section of the componentjava.awt.Insets getBorderInsets(E c)
c - painted componentvoid paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)
g2d - graphics contextbounds - painting boundsc - painted componentjava.awt.Dimension getPreferredSize()