edu.washington.biostr.sig.brainj3d.controls
Class ClockIcon

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.icons.ComponentTracker
      extended by edu.washington.biostr.sig.brainj3d.icons.ShapeIcon
          extended by 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).
 
Method Summary
 double getMaxValue()
           
 double getMinValue()
           
 double getValue()
           
 void setMaxValue(double maxValue)
           
 void setMinValue(double minValue)
           
 void setValue(double value)
          Set the current value and update the clock.
 
Methods inherited from class edu.washington.biostr.sig.brainj3d.icons.ShapeIcon
addShape, addShape, getIconHeight, getIconWidth, paintIcon, removeShape, removeShape
 
Methods inherited from class edu.washington.biostr.sig.brainj3d.icons.ComponentTracker
addComponent, notifyComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 pixels
height - Height in pixels
minValue - The smallest value to display (up)
maxValue - The largest value to display (up again, via all the values in between)
Method Detail

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.