org.perfectjpattern.core.behavioral.observer
Class AnalogClock

java.lang.Object
  extended by org.perfectjpattern.core.behavioral.observer.AnalogClock
All Implemented Interfaces:
IObserver<Date>, IClock, IWidget

public class AnalogClock
extends Object
implements IClock

Concrete implementation of IClock of type Analog

Version:
$Revision: 1.0 $Date: May 25, 2008 3:40:41 PM $
Author:
Giovanni Azua
 

Constructor Summary
AnalogClock()
           
 
Method Summary
 void draw()
          
protected static void setLogger(org.slf4j.Logger aLogger)
           
 void update(Date aDate)
          Notification from ISubject instance that a change has ocurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalogClock

public AnalogClock()
Method Detail

draw

public void draw()

Specified by:
draw in interface IWidget

update

public void update(Date aDate)
Notification from ISubject instance that a change has ocurred.

Specified by:
update in interface IObserver<Date>
Parameters:
aDate - Event data pushed to IObserver instances.

setLogger

protected static void setLogger(org.slf4j.Logger aLogger)


Copyright © 2007-2009. All Rights Reserved.