Package com.fluendo.jtiger
Class Renderer
- java.lang.Object
-
- com.fluendo.jtiger.Renderer
-
public class Renderer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Renderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Event ev)
Add a new event to the renderer.void
flush()
Flushes all events.boolean
isDirty()
java.awt.Image
render(java.awt.Component c, java.awt.Image img)
Renders onto the given image.int
update(java.awt.Component c, java.awt.Dimension d, double t)
Update the renderer, and all the events it tracks.
-
-
-
Method Detail
-
add
public void add(Event ev)
Add a new event to the renderer.
-
update
public int update(java.awt.Component c, java.awt.Dimension d, double t)
Update the renderer, and all the events it tracks. Returns 1 if there is nothing to draw, as an optimization
-
render
public java.awt.Image render(java.awt.Component c, java.awt.Image img)
Renders onto the given image.
-
flush
public void flush()
Flushes all events.
-
isDirty
public boolean isDirty()
-
-