Class Head
java.lang.Object
|
+--Head
- public class Head
- extends Object
|
Constructor Summary |
Head(DrawingPane pane,
double width,
double height,
Slider temperature,
DrawingGrid dg)
|
|
Method Summary |
void |
setColor(Color c)
|
void |
update()
Changes the color of the head based on the value of the
temperature Slider. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Head
public Head(DrawingPane pane,
double width,
double height,
Slider temperature,
DrawingGrid dg)
setColor
public void setColor(Color c)
update
public void update()
- Changes the color of the head based on the value of the
temperature Slider.