apwidgets
Class APAnalogClock

java.lang.Object
  extended by apwidgets.APWidget
      extended by apwidgets.APAnalogClock
All Implemented Interfaces:
android.view.View.OnClickListener

public class APAnalogClock
extends APWidget

An analog clock. Add instances to APWidgetContainer.

Author:
Rikard Lundstedt

Constructor Summary
APAnalogClock(int x, int y)
          Creates an analog clock.
APAnalogClock(int x, int y, int size)
          Creates an analog clock.
 
Method Summary
 void init(processing.core.PApplet pApplet)
          Initializes the analog clock.
 
Methods inherited from class apwidgets.APWidget
addOnClickWidgetListener, getHeight, getPApplet, getWidth, getView, getX, getY, onClick, setPosition, setSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

APAnalogClock

public APAnalogClock(int x,
                     int y)
Creates an analog clock.

Parameters:
x - The analog clock's x position.
y - The analog clock's y position.

APAnalogClock

public APAnalogClock(int x,
                     int y,
                     int size)
Creates an analog clock.

Parameters:
x - The analog clock's x position in pixels.
y - The analog clock's y position in pixels.
size - The analog clocks size in pixels.
Method Detail

init

public void init(processing.core.PApplet pApplet)
Initializes the analog clock. Is called by APWidgetContainer as it is added to it.

Overrides:
init in class APWidget