org.globus.cog.gui.grapheditor.targets.swing.util
Class AbstractPainter
java.lang.Object
org.globus.cog.gui.grapheditor.targets.swing.util.AbstractPainter
- All Implemented Interfaces:
- Runnable, ScalingPainter
- Direct Known Subclasses:
- OutlinePainter, SwingScalingPainter
- public abstract class AbstractPainter
- extends Object
- implements ScalingPainter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
canceled
protected boolean canceled
painting
protected boolean painting
destroyed
protected boolean destroyed
buffer
protected BufferedImage buffer
bounds
protected Rectangle bounds
paintArea
protected Rectangle paintArea
AbstractPainter
public AbstractPainter()
run
public final void run()
- Specified by:
run in interface Runnable
paintRun
public abstract void paintRun()
setPainterListener
public void setPainterListener(PainterListener pl)
- Specified by:
setPainterListener in interface ScalingPainter
wake
public void wake()
- Specified by:
wake in interface ScalingPainter
cancel
public void cancel()
- Specified by:
cancel in interface ScalingPainter
destroy
public void destroy()
- Specified by:
destroy in interface ScalingPainter
setBuffer
public void setBuffer(BufferedImage buffer)
- Specified by:
setBuffer in interface ScalingPainter
isPainting
public boolean isPainting()
- Specified by:
isPainting in interface ScalingPainter
setBounds
public void setBounds(Rectangle bounds)
- Specified by:
setBounds in interface ScalingPainter
getBounds
public Rectangle getBounds()
setBufferDimension
public void setBufferDimension(Dimension d)
- Specified by:
setBufferDimension in interface ScalingPainter
getBufferDimension
public Dimension getBufferDimension()
getBuffer
public BufferedImage getBuffer()
- Specified by:
getBuffer in interface ScalingPainter
getPaintArea
public Rectangle getPaintArea()
setPaintArea
public void setPaintArea(Rectangle paintArea)
- Specified by:
setPaintArea in interface ScalingPainter
fireBufferUpdated
protected void fireBufferUpdated()