org.globus.cog.gui.grapheditor.targets.swing.util
Class AbstractPainter

java.lang.Object
  extended byorg.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


Field Summary
protected  Rectangle bounds
           
protected  BufferedImage buffer
           
protected  boolean canceled
           
protected  boolean destroyed
           
protected  Rectangle paintArea
           
protected  boolean painting
           
 
Constructor Summary
AbstractPainter()
           
 
Method Summary
 void cancel()
           
 void destroy()
           
protected  void fireBufferUpdated()
           
 Rectangle getBounds()
           
 BufferedImage getBuffer()
           
 Dimension getBufferDimension()
           
 Rectangle getPaintArea()
           
 boolean isPainting()
           
abstract  void paintRun()
           
 void run()
           
 void setBounds(Rectangle bounds)
           
 void setBuffer(BufferedImage buffer)
           
 void setBufferDimension(Dimension d)
           
 void setPaintArea(Rectangle paintArea)
           
 void setPainterListener(PainterListener pl)
           
 void wake()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canceled

protected boolean canceled

painting

protected boolean painting

destroyed

protected boolean destroyed

buffer

protected BufferedImage buffer

bounds

protected Rectangle bounds

paintArea

protected Rectangle paintArea
Constructor Detail

AbstractPainter

public AbstractPainter()
Method Detail

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()