de.grogra.imp
public abstract class Renderer extends java.lang.Object implements Disposable, java.awt.image.ImageObserver
| Modifier and Type | Field and Description |
|---|---|
protected int |
height |
protected java.util.ArrayList<java.awt.image.ImageObserver> |
observers |
protected View |
view |
protected int |
width |
| Constructor and Description |
|---|
Renderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addImageObserver(java.awt.image.ImageObserver obs) |
java.awt.Image |
computeImage() |
abstract java.lang.String |
getName() |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height) |
void |
initialize(View view,
int width,
int height) |
protected void |
initializeImpl() |
abstract void |
render() |
java.awt.Image |
waitForImage() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposeprotected int height
protected java.util.ArrayList<java.awt.image.ImageObserver> observers
protected View view
protected int width
public void addImageObserver(java.awt.image.ImageObserver obs)
public java.awt.Image computeImage()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic abstract java.lang.String getName()
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
imageUpdate in interface java.awt.image.ImageObserverpublic final void initialize(View view, int width, int height)
protected void initializeImpl()
public abstract void render()
throws java.io.IOException
java.io.IOExceptionpublic java.awt.Image waitForImage()
throws java.lang.InterruptedException
java.lang.InterruptedException