|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.objex.progeny.anywhere.data.Allele
public class Allele
Defines properties and methods for Alleles on a chromosome. An allele can be inherited
from the mother or from the father. If a full set of Alleles on a marker is inherited from one parent
then it is a Haplotype.
Allele is a java bean so that it can be be used to store and/or transfer data through serialization.
ChromosomeMarker,
Chromosome,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
MATERNAL
Represents Allele inherited from the Mother |
static java.lang.String |
PATERNAL
Represents Allele inherited from the Father |
| Constructor Summary | |
|---|---|
Allele()
Creates a new Instance of an Allele class |
|
| Method Summary | |
|---|---|
Allele |
cloneAllele()
Creates and returns a new Allele with the same properties as this Allele. |
long |
getColor()
Getter for property color. |
int |
getHatch()
|
double |
getHeight()
Getter for property height. |
double |
getIconX()
Getter for property iconX. |
double |
getIconY()
Getter for property iconY. |
java.lang.String |
getID()
Getter for property ID. |
java.lang.String |
getInferredValue()
Convenience method for return the appropriate string of allele is inferred |
int |
getMaxChars()
Get the maximum number of Characters for the Allele value. |
java.lang.String |
getPaddedValue()
Getter for property ID. |
java.lang.String |
getPaternity()
Getter for property paternity. |
double |
getTextHeight()
Getter for property textHeight. |
double |
getTextWidth()
Getter for property textWidth. |
double |
getTextX()
Getter for property textX. |
double |
getTextY()
Getter for property textY. |
java.lang.String |
getType()
Getter for property type. |
java.lang.String |
getValue()
|
double |
getWidth()
Getter for property width. |
double |
getX()
Getter for property x. |
double |
getY()
Getter for property y. |
boolean |
isBottomBar()
Getter for property bottomBar. |
boolean |
isColorManuallyAssigned()
Getter for property colorManuallyAssigned. |
boolean |
isIndet()
|
boolean |
isInfer()
|
boolean |
isRgb()
|
boolean |
isTopBar()
Getter for property topBar. |
void |
setBottomBar(boolean bottomBar)
Setter for property bottomBar. |
void |
setColor(long color)
Setter for property color. |
void |
setColor(long color,
boolean ab_bgr)
Setter for property color. |
void |
setColor(java.awt.Paint color)
Set the new color for this Allel e |
void |
setColorManuallyAssigned(boolean rhs)
Setter for property colorManuallyAssigned. |
void |
setHatch(int hatch)
Set the value of the hatch property. |
void |
setHeight(double rhs)
Setter for property height. |
void |
setIconX(double iconX)
Setter for property iconX. |
void |
setIconY(double iconY)
Setter for property iconY. |
void |
setID(java.lang.String ID)
Setter for property ID. |
void |
setIndet(boolean indet)
|
void |
setInfer(boolean infer)
Set to true if value if inferred. |
void |
setPaternity(java.lang.String paternity)
Setter for property paternity. |
void |
setRgb(boolean rgb)
Set the RGB flag |
void |
setTextHeight(double textHeight)
Setter for property textHeight. |
void |
setTextWidth(double textWidth)
Setter for property textWidth. |
void |
setTextX(double textX)
Setter for property textX. |
void |
setTextY(double textY)
Setter for property textY. |
void |
setTopBar(boolean topBar)
Setter for property topBar. |
void |
setType(java.lang.String type)
Setter for property type. |
void |
setValue(java.lang.String value)
Set the Allele value |
void |
setWidth(double aWidth)
Setter for property width. |
void |
setX(double x)
Setter for property x. |
void |
setY(double y)
Setter for property y. |
static long |
toLong(java.awt.Paint paint,
boolean ab_bgr)
Convert the paint to a long |
java.awt.Paint |
toPaint()
Convert current color value to an AWT color or paint object |
protected long |
toRGB()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MATERNAL
public static final java.lang.String PATERNAL
| Constructor Detail |
|---|
public Allele()
| Method Detail |
|---|
public java.lang.String getID()
public void setID(java.lang.String ID)
ID - New value of property ID.public java.lang.String getType()
public void setType(java.lang.String type)
type - New value of property type.public java.lang.String getPaternity()
public void setPaternity(java.lang.String paternity)
paternity - New value of property paternity.public long getColor()
public void setColor(long color)
color - A 32 bit long represeting color as follow 24-31 alpha, 16-23 red, 8-15 green, 0-7 blue
public void setColor(long color,
boolean ab_bgr)
color - A 32 bit long represeting color. The red, blue and green bytes will be determined by the value of param ab_bgr as follows: | Color | Bits | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Blue | 16-23 | |||||||||
| Green | 8-15 | |||||||||
| Red | 0-7 | |||||||||
| Color | Bits | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Red | 16-23 | |||||||||
| Green | 8-15 | |||||||||
| Blue | 0-7 | |||||||||
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||