|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Emote
| Constructor Summary | |
Emote(int width,
int height)
Creates and Emote of the specified width and height. |
|
| Method Summary | |
void |
adjustHappiness(double deltaH)
Changes the current level of the 'happiness' slider by the specified amount, deltaH. |
void |
adjustTemperature(double deltaT)
Changes the current level of the 'anger' slider by the specified amount, deltaA. |
DrawingPane |
getDrawingPane()
Returns the DrawingPane that the Emote is on. |
double |
getHappiness()
Returns the current value of the happiness slider. |
double |
getTemperature()
Returns the current value of the temperature slider. |
void |
setHappiness(double newValue)
Changes the happiness to the new value passed in. |
void |
setTemperature(double newValue)
Changes the temperature to the new value passed in. |
void |
updateFeatures()
Calls upon each of the features of the face to change themselves based on the values of the 'happiness,' 'stress,' and 'anger' sliders. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Emote(int width,
int height)
| Method Detail |
public double getHappiness()
public double getTemperature()
public void setHappiness(double newValue)
public void setTemperature(double newValue)
public void adjustHappiness(double deltaH)
public void adjustTemperature(double deltaT)
public void updateFeatures()
public DrawingPane getDrawingPane()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||