|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectclock.Hand
public class Hand
Display of a clock hand
| Constructor Summary | |
|---|---|
Hand(int centerX,
int centerY,
int length,
java.awt.Color color)
Constructor |
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics graphics)
Draw this hand |
void |
setAngle(long angle)
Set the angle for this hand |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Hand(int centerX,
int centerY,
int length,
java.awt.Color color)
centerX - the X coordinate of the center of the clock of which
this is a part relative to upper left corner of clockcenterY - the Y coordinate of the center of the clock of which
this is a part relative to upper left corner of clocklength - the length of this handcolor - the color of this hand| Method Detail |
|---|
public void setAngle(long angle)
angle - the angle (in degrees relative to vertical) for this handpublic void draw(java.awt.Graphics graphics)
graphics - the graphics object on which to draw
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||