Crossfire JXClient, Trunk
Clock Class Reference
+ Inheritance diagram for Clock:
+ Collaboration diagram for Clock:

Public Member Functions

String getAppletInfo ()
 
String[][] getParameterInfo ()
 
void init ()
 
void paint (Graphics g)
 
void run ()
 
void start ()
 
void stop ()
 
void update (Graphics g)
 

Private Attributes

Font clockFaceFont
 
Date currentDate
 
SimpleDateFormat formatter
 
Color handColor
 
String lastdate
 
int lastxs
 
Color numberColor
 
volatile Thread timer
 
int xcenter = 80
 

Detailed Description

Time!

Author
Rachel Gollub
Daniel Peek replaced circle drawing calculation, few more changes

Definition at line 58 of file Clock.java.

Member Function Documentation

◆ getAppletInfo()

String Clock.getAppletInfo ( )

Definition at line 232 of file Clock.java.

◆ getParameterInfo()

String [][] Clock.getParameterInfo ( )

Definition at line 239 of file Clock.java.

◆ init()

void Clock.init ( )

Definition at line 72 of file Clock.java.

◆ paint()

void Clock.paint ( Graphics  g)

Definition at line 185 of file Clock.java.

◆ run()

void Clock.run ( )

Definition at line 220 of file Clock.java.

◆ start()

void Clock.start ( )

Definition at line 208 of file Clock.java.

◆ stop()

void Clock.stop ( )

Definition at line 214 of file Clock.java.

◆ update()

void Clock.update ( Graphics  g)

Paint is the main part of the program

Definition at line 107 of file Clock.java.

Member Data Documentation

◆ clockFaceFont

Font Clock.clockFaceFont
private

Definition at line 65 of file Clock.java.

◆ currentDate

Date Clock.currentDate
private

Definition at line 66 of file Clock.java.

◆ formatter

SimpleDateFormat Clock.formatter
private

Definition at line 63 of file Clock.java.

◆ handColor

Color Clock.handColor
private

Definition at line 67 of file Clock.java.

◆ lastdate

String Clock.lastdate
private

Definition at line 64 of file Clock.java.

◆ lastxs

int Clock.lastxs
private

Definition at line 61 of file Clock.java.

◆ numberColor

Color Clock.numberColor
private

Definition at line 68 of file Clock.java.

◆ timer

volatile Thread Clock.timer
private

Definition at line 60 of file Clock.java.

◆ xcenter

int Clock.xcenter = 80
private

Definition at line 69 of file Clock.java.


The documentation for this class was generated from the following file: