de.grogra.imp
Class Renderer
java.lang.Object
de.grogra.imp.Renderer
- All Implemented Interfaces:
- Disposable, java.awt.image.ImageObserver
- Direct Known Subclasses:
- ExternalRenderer, FluxRenderer, Raytracer, Renderer
public abstract class Renderer
- extends java.lang.Object
- implements Disposable, java.awt.image.ImageObserver
Field Summary |
protected int |
height
|
protected java.util.ArrayList<java.awt.image.ImageObserver> |
observers
|
protected View |
view
|
protected int |
width
|
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
height
protected int height
observers
protected java.util.ArrayList<java.awt.image.ImageObserver> observers
view
protected View view
width
protected int width
Renderer
public Renderer()
addImageObserver
public void addImageObserver(java.awt.image.ImageObserver obs)
computeImage
public java.awt.Image computeImage()
throws java.io.IOException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
getName
public abstract java.lang.String getName()
imageUpdate
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
- Specified by:
imageUpdate
in interface java.awt.image.ImageObserver
initialize
public final void initialize(View view,
int width,
int height)
initializeImpl
protected void initializeImpl()
render
public abstract void render()
throws java.io.IOException
- Throws:
java.io.IOException
waitForImage
public java.awt.Image waitForImage()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException