|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.ar.ar2D.drawables.Circle2D
public class Circle2D
A 2D drawable circle, centered at ( 0, 0 )
Constructor Summary | |
---|---|
Circle2D(float radius)
|
|
Circle2D(float radius,
boolean drawCircle,
int color)
|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Circle2D(float radius)
public Circle2D(float radius, boolean drawCircle, int color)
Method Detail |
---|
public void draw(Canvas c)
Drawable2D
draw
in interface Drawable2D
c
- the canvaspublic void drawTouchableArea(Canvas c, Paint p)
Drawable2D
drawTouchableArea
in interface Drawable2D
c
- the canvasp
- the paintpublic void update(long elapsed)
Drawable2D
update
in interface Drawable2D
elapsed
- elapsed time since last updated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |