Back to project page Look.
The source code is released under:
====================== LOOK! LICENSING TERMS ====================== look! is licensed under the BSD 3-Clause (also known as "BSD New" or "BSD Simplified"), as follows: Copyright (c) 2010-2012, Look...
If you think the Android project Look listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** *----------------------------------------------------------------------------- * Copyright (c) 2012, Look! Development Team * All rights reserved./*from w w w . j a v a2s . co m*/ * * Distributed under the terms of the BSD Simplified License. * * The full license is in the LICENSE file, distributed with this software. *----------------------------------------------------------------------------- */ package es.ucm.look.ar.ar2D; import android.graphics.Canvas; import android.graphics.Paint; /** * Implemented by all those classes that can be drawn in a {@link Canvas} * * @author ??ngel Serrano * */ public interface Drawable2D { /** * Draws the element in the canvas * * @param c * the canvas */ void draw(Canvas c); /** * Updates the drawable * * @param elapsed * elapsed time since last updated */ void update(long elapsed); /** * 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 * * @param c * the canvas * @param p * the paint */ void drawTouchableArea(Canvas c, Paint p); }