org.vizzini.ui.game.simulation
Class EllipsoidTokenUI

java.lang.Object
  extended by org.vizzini.ui.graphics.shape.AbstractShape
      extended by org.vizzini.ui.graphics.shape.ExtrudedShape
          extended by org.vizzini.ui.graphics.shape.Ellipsoid
              extended by org.vizzini.ui.game.simulation.EllipsoidTokenUI
All Implemented Interfaces:
Comparable, IStateful, ITokenUI, IPhysicalObjectUI, IShape

public class EllipsoidTokenUI
extends Ellipsoid
implements IPhysicalObjectUI

Provides an ellipsoid token user interface.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
 
Fields inherited from class org.vizzini.ui.graphics.shape.ExtrudedShape
_beginCap, _endCap, _isHighlighted, _polygons, _spineLength
 
Fields inherited from class org.vizzini.ui.graphics.shape.AbstractShape
_isWireframe, _points, _screenCenter, _screenPoints, _shapeGroup, _zNormal
 
Constructor Summary
EllipsoidTokenUI(IPhysicalObject token, double sizeExaggeration)
          Construct this object.
 
Method Summary
 void configure(Properties properties, int index)
          Configure this token.
 String getName()
           
 IToken getToken()
          Return this token's agent.
 void setToken(IToken token)
          Set the associated token.
 
Methods inherited from class org.vizzini.ui.graphics.shape.Ellipsoid
computeCrossSection, computeScale, computeSpine
 
Methods inherited from class org.vizzini.ui.graphics.shape.ExtrudedShape
computePolygonShapes, computeScreenPoints, contains, drawOn, initPoints, processPolygonShape, releasePolygonShapes, setBeginCap, setEndCap, setHighlightColor, setHighlighted
 
Methods inherited from class org.vizzini.ui.graphics.shape.AbstractShape
add, clear, compareTo, computeCenteredScreenPoints, computeNormalZComponent, computeScreenCenter, createState, createStatefulSupport, drawOn, drawOnSolid, drawOnWireframe, getAbsoluteState, getBounds, getChildren, getColor, getColorForIntensity, getDepth, getDimensions, getHeight, getMinDimension, getScreenCenter, getShapeGroup, getState, getStatefulParent, getTextureFilepath, getWidth, isInFrontOf, isLightSource, isTextureFilepathSet, isVisible, isWireframe, remove, setColor, setLightSource, setName, setStatefulParent, setTextureFilepath, setVisible, setWireframe, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.vizzini.ui.graphics.IShape
add, clear, computeNormalZComponent, computeScreenPoints, contains, drawOn, getBounds, getChildren, getColor, getDepth, getDimensions, getHeight, getMinDimension, getScreenCenter, getTextureFilepath, getWidth, isLightSource, isTextureFilepathSet, isVisible, isWireframe, remove, setColor, setLightSource, setName, setTextureFilepath, setVisible, setWireframe, toString
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.vizzini.math.IStateful
getAbsoluteState, getState, getStatefulParent, setStatefulParent
 
Methods inherited from interface org.vizzini.math.IStateful
getAbsoluteState, getState, getStatefulParent, setStatefulParent
 

Constructor Detail

EllipsoidTokenUI

public EllipsoidTokenUI(IPhysicalObject token,
                        double sizeExaggeration)
Construct this object.

Since:
v0.3
Method Detail

configure

public void configure(Properties properties,
                      int index)
               throws InstantiationException,
                      IllegalAccessException
Configure this token.

Specified by:
configure in interface ITokenUI
Parameters:
properties - Source of configuration information.
index - Index of this token's properties.
Throws:
InstantiationException
IllegalAccessException
Since:
v0.3

getName

public String getName()
Specified by:
getName in interface IShape
Overrides:
getName in class AbstractShape
Returns:
Return name.
Since:
v0.3

getToken

public IToken getToken()
Return this token's agent.

Specified by:
getToken in interface ITokenUI
Since:
v0.3

setToken

public void setToken(IToken token)
Set the associated token.

Specified by:
setToken in interface ITokenUI
Parameters:
token - The associated token.
Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02