apwidgets
Class PAnalogClock

java.lang.Object
  extended by apwidgets.PWidget
      extended by apwidgets.PAnalogClock
All Implemented Interfaces:
android.view.View.OnClickListener

public class PAnalogClock
extends PWidget

An analog clock. Add instances to PWidgetContainer.

Author:
Rikard Lundstedt

Constructor Summary
PAnalogClock(int x, int y)
          Creates an analog clock.
PAnalogClock(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.PWidget
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

PAnalogClock

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

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

PAnalogClock

public PAnalogClock(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 PWidgetContainer as it is added to it.

Overrides:
init in class PWidget