es.ucm.look.ar.hud
Class Button

java.lang.Object
  extended by es.ucm.look.ar.ar3D.core.drawables.Mesh3D
      extended by es.ucm.look.ar.ar3D.core.drawables.primitives.TrianglePrimitive
          extended by es.ucm.look.ar.hud.Button
All Implemented Interfaces:
Drawable3D

public class Button
extends TrianglePrimitive


Constructor Summary
Button(float x, float y, float width, float height)
           
 
Method Summary
 void actionPerformed()
           
 boolean contains(float touchX, float touchY)
           
 boolean isPressed()
           
 void setActionListener(ActionListener listener)
           
 void setPressed(boolean p)
           
 
Methods inherited from class es.ucm.look.ar.ar3D.core.drawables.Mesh3D
draw, getArmarture, setNormalBuffer, setVertexBuffer, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Button

public Button(float x,
              float y,
              float width,
              float height)
Method Detail

actionPerformed

public void actionPerformed()

contains

public boolean contains(float touchX,
                        float touchY)

isPressed

public boolean isPressed()

setActionListener

public void setActionListener(ActionListener listener)

setPressed

public void setPressed(boolean p)