Painter.Listener
Constructor and Description |
---|
AbstractPainter() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(Painter.Listener listener) |
abstract void |
executePaint(java.awt.Component component,
java.awt.Graphics2D g) |
protected void |
fireNeedsRepaint(javax.swing.JComponent dirtyComponent) |
boolean |
needsRepaint() |
void |
paint(java.awt.Component component,
java.awt.Graphics2D g) |
void |
removeListener(Painter.Listener listener) |
void |
setNeedsRepaint(boolean needsRepaint) |
void |
setNeedsRepaint(boolean needsRepaint,
javax.swing.JComponent dirtyComponent) |
<T> T |
setNeedsRepaint(T oldValue,
T newValue) |
<T> T |
setNeedsRepaint(T oldValue,
T newValue,
javax.swing.JComponent dirtyComponent) |
public boolean needsRepaint()
needsRepaint
in interface Painter
public void setNeedsRepaint(boolean needsRepaint)
public void setNeedsRepaint(boolean needsRepaint, javax.swing.JComponent dirtyComponent)
public void addListener(Painter.Listener listener)
addListener
in interface Painter
public void removeListener(Painter.Listener listener)
removeListener
in interface Painter
public <T> T setNeedsRepaint(T oldValue, T newValue)
public <T> T setNeedsRepaint(T oldValue, T newValue, javax.swing.JComponent dirtyComponent)
protected void fireNeedsRepaint(javax.swing.JComponent dirtyComponent)
public final void paint(java.awt.Component component, java.awt.Graphics2D g)
public abstract void executePaint(java.awt.Component component, java.awt.Graphics2D g)