E - component typepublic interface Painter<E extends javax.swing.JComponent>
AbstractPainter| Modifier and Type | Method and Description |
|---|---|
void |
addPainterListener(PainterListener listener)
Adds new painter listener.
|
java.awt.Insets |
getMargin(E c)
Returns margin required for visual data provided by this painter.
|
java.awt.Dimension |
getPreferredSize(E c)
Returns preferred size required for proper painting of visual data provided by this painter.
|
void |
install(E c)
Called when painter is intalled into some component.
|
java.lang.Boolean |
isOpaque(E c)
Returns whether visual data provided by this painter is opaque or not.
|
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)
Paints visual data onto the component graphics.
|
void |
removePainterListener(PainterListener listener)
Removes painter listener.
|
void |
uninstall(E c)
Called when painter is intalled into some component.
|
void install(E c)
c - component to processvoid uninstall(E c)
c - component to processjava.lang.Boolean isOpaque(E c)
c - component to processjava.awt.Dimension getPreferredSize(E c)
c - component to processjava.awt.Insets getMargin(E c)
c - component to processvoid paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c)
g2d - component graphicsbounds - bounds for painter visual datac - component to processvoid addPainterListener(PainterListener listener)
listener - painter listener to addvoid removePainterListener(PainterListener listener)
listener - painter listener to remove