E - component typeD - decoration typeI - content typepublic abstract class AbstractTextContent<E extends javax.swing.JComponent,D extends IDecoration<E,D>,I extends AbstractTextContent<E,D,I>> extends AbstractContent<E,D,I>
bounds| Constructor and Description |
|---|
AbstractTextContent() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract javax.swing.Icon |
getIcon(E c,
D d)
Returns icon to be painted near text.
|
protected abstract java.lang.String |
getText(E c,
D d)
Returns text to be painted.
|
protected boolean |
isDisplayed(E c,
D d)
Returns whether or not text should be painted.
|
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
D d)
Paints component's content.
|
getBoundsTypepublic void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
D d)
IContentg2d - graphics contextbounds - painting boundsc - painted componentd - painted decoration stateprotected boolean isDisplayed(E c, D d)
c - painted componentd - painted decoration stateprotected abstract javax.swing.Icon getIcon(E c, D d)
c - painted componentd - painted decoration state