es.ucm.look.ar.ar2D.drawables
Class Text2D

java.lang.Object
  extended by es.ucm.look.ar.ar2D.drawables.Text2D
All Implemented Interfaces:
Drawable2D

public class Text2D
extends java.lang.Object
implements Drawable2D


Constructor Summary
Text2D(java.lang.String text)
           
Text2D(java.lang.String text, int textColor, int bubbleColor, int bubbleBorderColor, int alpha)
           
 
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.
 RectF getBounds()
           
 void update(long elapsed)
          Updates the drawable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text2D

public Text2D(java.lang.String text)

Text2D

public Text2D(java.lang.String text,
              int textColor,
              int bubbleColor,
              int bubbleBorderColor,
              int alpha)
Method Detail

draw

public void draw(Canvas c)
Description copied from interface: Drawable2D
Draws the element in the canvas

Specified by:
draw in interface Drawable2D
Parameters:
c - the canvas

drawTouchableArea

public void drawTouchableArea(Canvas c,
                              Paint p)
Description copied from interface: Drawable2D
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

Specified by:
drawTouchableArea in interface Drawable2D
Parameters:
c - the canvas
p - the paint

getBounds

public RectF getBounds()

update

public void update(long elapsed)
Description copied from interface: Drawable2D
Updates the drawable

Specified by:
update in interface Drawable2D
Parameters:
elapsed - elapsed time since last updated