|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.concord.biologica.ui.FertilizationModel
FertilizationModel contains the data describing the fertilization process state for the fertilization of 2 gametes to form a single offspring organism. It does not contain the code for drawing the animation as that is in the view objects that show fertilization.
This model and its associated chromosome models assume a display space of 0 to 1000 by 0 to 1000 and all locations are within that range. This means a user of these model classes must scale locations appropriately from this coordinate system to their own in order to draw the chromosomes.
An object of this class will generate the following property change events:
UIProp.FERTILIZATION_GAMETES
,
UIProp.FERTILIZATION_OFFSPRING_ORGANISM
,
UIProp.FERTILIZATION_STARTED
,
UIProp.FERTILIZATION_STEP
,
PropertyChangeListener
Field Summary | |
protected java.beans.PropertyChangeSupport |
changes
Utility object which manages property change events and listeners. |
Constructor Summary | |
FertilizationModel()
Creates an empty instance of FertilizationModel |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener aListener)
Add a property change listener for properties. |
int |
decrementStep()
Decrement the current step of the fertilization, returning the new current step value. |
void |
delete()
Deletes this model and associated models |
java.util.Vector |
getCellBoundaries()
Get CellArc and CellLine enumeration to use when drawing boundaries and spindles of cell(s). |
java.util.Vector |
getChromosomeModelEnumerations()
Get vector of the appropriate enumerations of chromosome models in this fertilization model. |
Organism |
getOffspringOrganism()
|
int |
getStep()
Get the current step of the fertilization |
int |
incrementStep()
Increment the current step of the fertilization |
boolean |
isValidToDoFertilization()
|
void |
onFatherGameteChanged()
React to the father selected gamete changing |
void |
onMotherGameteChanged()
React to the mother selected gamete changing |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handle property change events |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener aListener)
Remove a property change listener for properties. |
void |
setEnclosingViewRectangle(java.awt.Rectangle aRectangle)
Set the rectangle within which the fertilization model must confine itself and its chromosomes. |
void |
setMeiosisModels(MeiosisModel aMotherMeiosisModel,
MeiosisModel aFatherMeiosisModel)
Set the meiosis models of this fertilization model, deleting any existing state for other meiosis models. |
int |
setStep(int aStep)
Set the current step of the fertilization |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient java.beans.PropertyChangeSupport changes
Constructor Detail |
public FertilizationModel()
Method Detail |
public void delete()
public void setMeiosisModels(MeiosisModel aMotherMeiosisModel, MeiosisModel aFatherMeiosisModel)
aMotherMeiosisModel
- MeiosisModel - the mother meiosis modelaFatherMeiosisModel
- MeiosisModel - the father meiosis modelpublic void onMotherGameteChanged()
public void onFatherGameteChanged()
public int decrementStep()
public int incrementStep()
public int getStep()
public int setStep(int aStep)
aStep
- int - new proposed current steppublic java.util.Vector getChromosomeModelEnumerations()
In all cases, a Vector holding 2 Enumerations will be returned. The first Enumeration will be over the chromosome models from the mother and the second Enumeration will be over the chromosome models from the father.
public java.util.Vector getCellBoundaries()
public void setEnclosingViewRectangle(java.awt.Rectangle aRectangle)
aRectangle
- Rectangle - the enclosing rectanglepublic void addPropertyChangeListener(java.beans.PropertyChangeListener aListener)
aListener
- PropertyChangeListener - a new listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener aListener)
aListener
- PropertyChangeListener - a listener to removepublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
event
- PropertyChangeEvent - the property change eventpublic Organism getOffspringOrganism()
public boolean isValidToDoFertilization()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |