com.b3dgs.lionengine.drawable
Interface Renderable

All Known Subinterfaces:
AnimatedSprite, FontSprite, Image, ParallaxedSprite, Sprite, TiledSprite

public interface Renderable

Anything that can be rendered on screen.


Method Summary
 int getHeight()
          Get the image height size.
 int getWidth()
          Get the image width size.
 void render(java.awt.Graphics2D g, int x, int y)
          Render image on current graphic output, at specified coordinates.
 

Method Detail

render

void render(java.awt.Graphics2D g,
            int x,
            int y)
Render image on current graphic output, at specified coordinates.

Parameters:
g - graphic output.
x - abscissa.
y - ordinate.

getWidth

int getWidth()
Get the image width size.

Returns:
image width size as integer.

getHeight

int getHeight()
Get the image height size.

Returns:
image height size as integer.