A C H L M O P S T U V

A

AnalogClockPanel - Class in clock
The AnalogClockPanel class for drawing the clock face and hands using the time data obtained from the model.
AnalogClockPanel(Model) - Constructor for class clock.AnalogClockPanel
creates a panel to draw clock face and hands

C

ClassPreamble - Annotation Type in clock
 
clock - package clock
 
Clock - Class in clock
The root class of the Clock application.
Clock() - Constructor for class clock.Clock
 
Controller - Class in clock
The Controller class of the Clock application contains event handler (which implements ActionListener as an anonymous inner class) for dealing with Time.
Controller(Model, View) - Constructor for class clock.Controller
creates controller linked to view and model

H

hour - Variable in class clock.Model
 

L

listener - Variable in class clock.Controller
event handler which calls to repaint the clock panel

M

main(String[]) - Static method in class clock.Clock
the main method: creates model
minute - Variable in class clock.Model
 
model - Variable in class clock.AnalogClockPanel
 
model - Variable in class clock.Controller
model maintains value of hours, minutes and seconds and call the update
Model - Class in clock
The Model class which maintains the value of of hour, minute, second by getting the current instance of java.util.Calendar It serves as Observable clas to Observer View
Model() - Constructor for class clock.Model
creates the model by updating the value of hour, minute, second and notifying the observer (view) of the occured change

O

oldSecond - Variable in class clock.Model
 

P

paintComponent(Graphics) - Method in class clock.AnalogClockPanel
repaints the panel as the responce to update call
panel - Variable in class clock.View
 

S

second - Variable in class clock.Model
 

T

timer - Variable in class clock.Controller
timer to maintain the clock count
ToDo - Annotation Type in clock
Annotation type to indicate a task still needs to be completed

U

update() - Method in class clock.Model
updates the state of the model by reasigning the values of hour, minute, second and notifying the observer (view) if the change has occured
update(Observable, Object) - Method in class clock.View
implements Observer interface by repainting the panel in accordance with the latest data from the model

V

view - Variable in class clock.Controller
view defines the panel on which every thing is drawn
View - Class in clock
The View class represents the data of the Model class
View(Model) - Constructor for class clock.View
constructor for the View object: creates an instance of AnalogClockPanel which uses the provided model

A C H L M O P S T U V