es.ucm.look.ar.ar2D
Interface Drawable2D

All Known Subinterfaces:
HUDElement
All Known Implementing Classes:
Circle2D, Image2D, Text2D, WorldEntity

public interface Drawable2D

Implemented by all those classes that can be drawn in a Canvas


Method Summary
 void draw(Canvas c)
          Draws the element in the canvas
 void drawTouchableArea(Canvas c, Paint p)
          Fills the touchable zone for the drawable only with the the given Paint.
 void update(long elapsed)
          Updates the drawable
 

Method Detail

draw

void draw(Canvas c)
Draws the element in the canvas

Parameters:
c - the canvas

drawTouchableArea

void drawTouchableArea(Canvas c,
                       Paint p)
Fills the touchable zone for the drawable only with the the given Paint. This method is used processing screen touches. It can be empty if drawable is not receiving touch events

Parameters:
c - the canvas
p - the paint

update

void update(long elapsed)
Updates the drawable

Parameters:
elapsed - elapsed time since last updated