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 voidadd(Event ev)Add a new event to the renderer.voidflush()Flushes all events.booleanisDirty()java.awt.Imagerender(java.awt.Component c, java.awt.Image img)Renders onto the given image.intupdate(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()
-
-