edu.washington.biostr.sig.brainj3d.controls
Class ClockIcon
java.lang.Object
edu.washington.biostr.sig.brainj3d.icons.ComponentTracker
edu.washington.biostr.sig.brainj3d.icons.ShapeIcon
edu.washington.biostr.sig.brainj3d.controls.ClockIcon
- All Implemented Interfaces:
- Serializable, Icon
public class ClockIcon
- extends ShapeIcon
Create a simple clock-like icon with 1 hand that shows either how long to
a process has or spins until it is done.
- Version:
- 1.0
- Author:
- Eider Moore
- See Also:
- Serialized Form
|
Constructor Summary |
ClockIcon(int width,
int height,
double minValue,
double maxValue)
Create a clock icon that is the specified size (the min of width/2 and height /2
is the radius). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClockIcon
public ClockIcon(int width,
int height,
double minValue,
double maxValue)
- Create a clock icon that is the specified size (the min of width/2 and height /2
is the radius). The clock can take any value from minValue to maxValue.
- Parameters:
width - Width in pixelsheight - Height in pixelsminValue - The smallest value to display (up)maxValue - The largest value to display (up again, via all the values in between)
getMaxValue
public double getMaxValue()
- Returns:
- Returns the max value.
getMinValue
public double getMinValue()
- Returns:
- Returns the min value.
setMaxValue
public void setMaxValue(double maxValue)
- Parameters:
maxValue - Set the max value.
setMinValue
public void setMinValue(double minValue)
- Parameters:
minValue - Set the min value.
getValue
public double getValue()
- Returns:
- Returns the current value.
setValue
public void setValue(double value)
- Set the current value and update the clock.
- Parameters:
value - A value between min and max values.
Copyright © 2006 University of Washington. All Rights Reserved.