com.fluendo.jtiger

Class Item

public class Item extends Object

Constructor Summary
Item(Event ev)
Create a new item from a Kate event.
Method Summary
booleanisDirty()
voidrender(Component c, Image img)
Renders the item on the given image.
voidrenderBackground(Component c, Image img)
Render a background for the item, if approrpiate.
voidrenderText(Image img)
Render text text for the item, if approrpiate.
voidsetupRegion(Component c, Image img)
Set up the region.
booleanupdate(Component c, Dimension d, double t)
Updates the item at the given time. returns true for alive, false for dead

Constructor Detail

Item

public Item(Event ev)
Create a new item from a Kate event.

Method Detail

isDirty

public boolean isDirty()

render

public void render(Component c, Image img)
Renders the item on the given image.

renderBackground

public void renderBackground(Component c, Image img)
Render a background for the item, if approrpiate. The background may be a color, or an image.

renderText

public void renderText(Image img)
Render text text for the item, if approrpiate.

setupRegion

public void setupRegion(Component c, Image img)
Set up the region.

update

public boolean update(Component c, Dimension d, double t)
Updates the item at the given time. returns true for alive, false for dead