|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.concord.biologica.ui.FertilizationChromosomeModel
FertilizationChromosomeModel contains the data describing the fertilization state for a given chromosome. It does not contain the code for drawing the animation as that is in the view objects that show meiosis.
This class and the associated fertilization model class 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.
Field Summary | |
static int |
FEMALE_GAMETE_CHROMOSOME
Types of fertilization chromosome models |
static int |
MALE_GAMETE_CHROMOSOME
|
Constructor Summary | |
FertilizationChromosomeModel(int aFertilizationChromosomeModelType,
FertilizationModel aFertilizationModel,
MeiosisChromosomeModel aMeiosisChromosomeModel,
java.awt.Rectangle anEnclosingViewRectangle)
Creates a new instance of FertilizationChromosomeModel with the given type, fertilization model and meiosis chromosome model. |
Method Summary | |
void |
clearTemporaryOffsets()
Clear temporary offsets. |
void |
delete()
Delete this chromosome model. |
ChromosomeSpecification |
getChromosomeSpecification()
Get a ChromosomeSpecification for this model. |
OrganismAllele[] |
getPStrandAlleles()
Get the array of organism alleles for P strand. |
java.awt.Color[] |
getPStrandColors()
Get the array of Colors for P strand. |
OrganismAllele[] |
getQStrandAlleles()
Get the array of organism alleles for Q strand. |
java.awt.Color[] |
getQStrandColors()
Get the array of Colors for Q strand. |
float |
getXCentromereAtStep(int aStep)
Get the X centromere location as an int at the given fertilization step (NOT the array index!!). |
int[] |
getXPStrandPoints(int aFertilizationStep)
Get the array of int's for x coordinates of P strand at the given fertilization step. |
int[] |
getXQStrandPoints(int aFertilizationStep)
Get the array of int's for x coordinates of Q strand at the given fertilization step. |
int |
getXTemporaryOffset()
Get the X temporary offset of this chromosome. |
float |
getYCentromereAtStep(int aStep)
Get the Y centromere location as an int at the given fertilization step (NOT the array index!!). |
int[] |
getYPStrandPoints(int aFertilizationStep)
Get the array of int's for y coordinates of P strand at the given meiosis step. |
int[] |
getYQStrandPoints(int aFertilizationStep)
Get the array of int's for y coordinates of Q strand at the given fertilization step. |
int |
getYTemporaryOffset()
Get the Y temporary offset of this chromosome. |
void |
setAlleleVectors()
Set allele vectors to show which alleles are at which array positions on the chromosomes. |
void |
setEnclosingViewRectangle(java.awt.Rectangle newEnclosingViewRectangle)
Set the enclosing rectangle for the view containing a display of this chromosome model. |
void |
setTemporaryOffsets(int anXTemporaryOffset,
int aYTemporaryOffset)
Set the temporary offsets of this chromosome. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FEMALE_GAMETE_CHROMOSOME
public static final int MALE_GAMETE_CHROMOSOME
Constructor Detail |
public FertilizationChromosomeModel(int aFertilizationChromosomeModelType, FertilizationModel aFertilizationModel, MeiosisChromosomeModel aMeiosisChromosomeModel, java.awt.Rectangle anEnclosingViewRectangle)
aFertilizationChromosomeModelType
- int - the type of this chromosome model (male or female)aFertilizationModel
- FertilizationModel - the parent fertilization model, may not be nullaMeiosisChromosomeModel
- MeiosisChromosomeModel - the meiosis chromosome model from a gameteanEnclosingViewRectangle
- Rectangle - an enclosing rectangle for the chromosome's viewjava.lang.IllegalArgumentException
- - illegal argumentMethod Detail |
public void delete()
public void setEnclosingViewRectangle(java.awt.Rectangle newEnclosingViewRectangle)
newEnlosingViewRectangle
- Rectangle - an enclosing rectangle for this model's viewpublic int getXTemporaryOffset()
public int getYTemporaryOffset()
public void setTemporaryOffsets(int anXTemporaryOffset, int aYTemporaryOffset)
anXTemporaryOffset
- int - an X temporary offsetaYTemporaryOffset
- int - a Y temporary offsetpublic void clearTemporaryOffsets()
public float getXCentromereAtStep(int aStep)
aStep
- int - step of fertilization (not array index!!)java.lang.IllegalArgumentException
- - illegal step inputpublic float getYCentromereAtStep(int aStep)
aStep
- int - step of fertilization (not array index!!)java.lang.IllegalArgumentException
- - illegal step inputpublic int[] getXPStrandPoints(int aFertilizationStep)
aFertilizationStep
- int - the fertilization step value (NOT the array index)public int[] getYPStrandPoints(int aFertilizationStep)
aFertilizationStep
- int - the fertilization step value (NOT the array index)public int[] getXQStrandPoints(int aFertilizationStep)
aFertilizationStep
- int - the fertilization step value (NOT the array index)public int[] getYQStrandPoints(int aFertilizationStep)
aFertilizationStep
- int - the fertilization step value (NOT the array index)public void setAlleleVectors()
public OrganismAllele[] getPStrandAlleles()
public OrganismAllele[] getQStrandAlleles()
public java.awt.Color[] getPStrandColors()
public java.awt.Color[] getQStrandColors()
public ChromosomeSpecification getChromosomeSpecification()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |