edu.byu.phun.body
Class Torso

java.lang.Object
  extended by edu.byu.phun.PropertyContainer
      extended by edu.byu.phun.Obj3D
          extended by edu.byu.phun.GroupObj
              extended by edu.byu.phun.body.BodyPart
                  extended by edu.byu.phun.body.Torso

public class Torso
extends BodyPart

This creates the chest and waist area of a male body.


Constructor Summary
Torso()
          Create a new torso
 
Method Summary
 Color getShirtColor()
          Returns the current shirt color.
 void setShirtColor(Color color)
          Changes the shirt color.
 
Methods inherited from class edu.byu.phun.GroupObj
addPart, getPart, getPart, nParts, partNames, removePart, removePart, setColor, setPart
 
Methods inherited from class edu.byu.phun.Obj3D
getBounds, getColor, getLocation, getName, getRotX, getRotY, getRotZ, getScaleX, getScaleY, getScaleZ, getShininess, setColor, setLocation, setLocation, setName, setRotX, setRotY, setRotZ, setScale, setScale, setScaleX, setScaleY, setScaleZ, setShininess, toString
 
Methods inherited from class edu.byu.phun.PropertyContainer
getPropertyC, getPropertyD, getPropertyP, getPropertyS, propertyIsColor, propertyIsDouble, propertyIsPoint, propertyIsSettable, propertyIsString, propertyNames, setProperty, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Torso

public Torso()
Create a new torso

Method Detail

setShirtColor

public void setShirtColor(Color color)
Changes the shirt color. Generally called from MaleBody rather than directly.

Parameters:
color - new shirt color.

getShirtColor

public Color getShirtColor()
Returns the current shirt color.

Returns:
the shirt color.