Class Emote

java.lang.Object
  |
  +--Emote

public class Emote
extends Object


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

Emote

public Emote(int width,
             int height)
Creates and Emote of the specified width and height. The Emote is put on a drawing pane.

Method Detail

getHappiness

public double getHappiness()
Returns the current value of the happiness slider.


getTemperature

public double getTemperature()
Returns the current value of the temperature slider.


setHappiness

public void setHappiness(double newValue)
Changes the happiness to the new value passed in.


setTemperature

public void setTemperature(double newValue)
Changes the temperature to the new value passed in.


adjustHappiness

public void adjustHappiness(double deltaH)
Changes the current level of the 'happiness' slider by the specified amount, deltaH.


adjustTemperature

public void adjustTemperature(double deltaT)
Changes the current level of the 'anger' slider by the specified amount, deltaA.


updateFeatures

public 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.


getDrawingPane

public DrawingPane getDrawingPane()
Returns the DrawingPane that the Emote is on.