com.rubecula.darwin.visualization
Class Avatar_Variable

java.lang.Object
  extended by net.sf.tostring0.AToString
      extended by com.rubecula.darwin.visualization.Avatar_
          extended by com.rubecula.darwin.visualization.Avatar_Variable
All Implemented Interfaces:
Avatar, net.sf.tostring0.IToString

public class Avatar_Variable
extends Avatar_

Lifespan: transient. TODO This implementer of Avatar is somewhat application-specific for the Peppered Moth. We should really update the color and size of the individual objects as we go, rather than override the getColor() and getSize() methods.

Author:
Robin Hillyard

Field Summary
 
Fields inherited from class com.rubecula.darwin.visualization.Avatar_
numberFormatter
 
Fields inherited from interface net.sf.tostring0.IToString
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE
 
Method Summary
 java.awt.Color getColor()
           
 double getSize()
          By default, we simply return 1.
 
Methods inherited from class com.rubecula.darwin.visualization.Avatar_
equals, getIndividual, getLocation, hashCode, moveTo, setColor, showColor, showLocation, showSize
 
Methods inherited from class net.sf.tostring0.AToString
toString, toString, toStringBrief, toStringId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getColor

public java.awt.Color getColor()
Specified by:
getColor in interface Avatar
Overrides:
getColor in class Avatar_
Returns:
the color TEST
See Also:
Avatar_.getColor()

getSize

public double getSize()
Description copied from class: Avatar_
By default, we simply return 1.

Specified by:
getSize in interface Avatar
Overrides:
getSize in class Avatar_
Returns:
(age + 1) / 2
See Also:
Avatar.getSize()


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.