public class SpinningClock
extends java.lang.Object
| Constructor and Description |
|---|
SpinningClock() |
| Modifier and Type | Method and Description |
|---|---|
int |
getClockHeight()
Returns the clock's height
|
int |
getClockWidth()
Sets the clock's height
|
double |
getHourHandSpeed()
Returns the clock´s hour hand speed
|
double |
getMinuteHandSpeed()
Returns the clock´s minute hand speed
|
java.awt.geom.Point2D |
getTopLeftCorner()
Returns the top left corner position for this spinning clock.
|
long |
render(java.awt.Graphics2D g) |
void |
setClockSize(int width, int height)
Sets the new width and height for the indicator.
|
void |
setHourHandSpeed(double seconds)
Sets the clock´s hour hand speed
|
void |
setMinuteHandSpeed(double seconds)
Sets the clock´s minute hand speed
|
void |
setTopLeftCorner(java.awt.geom.Point2D topLeftCorner)
Sets the top left corner position for this spinning clock.
|
void |
update(long elapsedTime)
Refreshes the clock hands
|
public void update(long elapsedTime)
elapsedTime -public long render(java.awt.Graphics2D g)
public void setClockSize(int width,
int height)
width - the new width in pixelheight - the new height in pixelpublic void setMinuteHandSpeed(double seconds)
seconds -public double getMinuteHandSpeed()
public void setHourHandSpeed(double seconds)
seconds -public double getHourHandSpeed()
public java.awt.geom.Point2D getTopLeftCorner()
public void setTopLeftCorner(java.awt.geom.Point2D topLeftCorner)
topLeftCorner -public int getClockHeight()
public int getClockWidth()