public class ArthromorphPersonImpl extends SimplePersonImpl implements ArthromorphPerson
| Constructor and Description |
|---|
ArthromorphPersonImpl(Morph morph) |
| Modifier and Type | Method and Description |
|---|---|
void |
develop(java.awt.Graphics2D g2,
java.awt.Dimension d,
boolean zeroMargin) |
void |
drawAnimal(java.awt.Graphics2D g2,
int x,
int y)
An example of how to call Draw for an animal
|
void |
drawInBox(java.awt.Graphics2D g2,
java.awt.Dimension panelSize,
boolean midBox) |
void |
expandPoles(int north,
int south,
int east,
int west) |
Atom |
getAnimalTrunk() |
int |
getAtomCount() |
double[] |
getCumParams() |
int |
getEastPole() |
int |
getGradient() |
int |
getNorthPole() |
int |
getSouthPole() |
int |
getWestPole() |
void |
minimalAnimal() |
Person |
reproduce(Morph newMorph) |
void |
setAnimalTrunk(Atom animalTrunk) |
void |
setAtomCount(int atomCount) |
void |
setBasicType(int i) |
void |
setCumParams(double[] cumParams) |
void |
setEastPole(int eastPole) |
void |
setGradient(int gradient) |
void |
setNorthPole(int northPole) |
void |
setSouthPole(int southPole) |
void |
setWestPole(int westPole) |
getMorph, getMutagen, setMorph, setMutagenequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMorph, getMutagen, setMorph, setMutagenpublic ArthromorphPersonImpl(Morph morph)
public void develop(java.awt.Graphics2D g2,
java.awt.Dimension d,
boolean zeroMargin)
public void expandPoles(int north,
int south,
int east,
int west)
expandPoles in interface ArthromorphPersonpublic Atom getAnimalTrunk()
getAnimalTrunk in interface ArthromorphPersonpublic int getAtomCount()
getAtomCount in interface ArthromorphPersonpublic double[] getCumParams()
getCumParams in interface ArthromorphPersonpublic int getEastPole()
getEastPole in interface ArthromorphPersonpublic int getGradient()
getGradient in interface ArthromorphPersonpublic int getNorthPole()
getNorthPole in interface ArthromorphPersonpublic int getSouthPole()
getSouthPole in interface ArthromorphPersonpublic int getWestPole()
getWestPole in interface ArthromorphPersonpublic void minimalAnimal()
minimalAnimal in interface ArthromorphPersonpublic void setAnimalTrunk(Atom animalTrunk)
setAnimalTrunk in interface ArthromorphPersonpublic void setAtomCount(int atomCount)
setAtomCount in interface ArthromorphPersonpublic void setBasicType(int i)
setBasicType in interface Personpublic void setCumParams(double[] cumParams)
setCumParams in interface ArthromorphPersonpublic void setEastPole(int eastPole)
setEastPole in interface ArthromorphPersonpublic void setGradient(int gradient)
setGradient in interface ArthromorphPersonpublic void setNorthPole(int northPole)
setNorthPole in interface ArthromorphPersonpublic void setSouthPole(int southPole)
setSouthPole in interface ArthromorphPersonpublic void setWestPole(int westPole)
setWestPole in interface ArthromorphPersonpublic void drawAnimal(java.awt.Graphics2D g2,
int x,
int y)
throws ArthromorphGradientExceeds1000Exception
g2 - a Graphics2D drawing context. May be null (for dry runs, calculating poles)ArthromorphGradientExceeds1000Exceptionpublic void drawInBox(java.awt.Graphics2D g2,
java.awt.Dimension panelSize,
boolean midBox)
throws ArthromorphGradientExceeds1000Exception
drawInBox in interface ArthromorphPersonArthromorphGradientExceeds1000Exception