|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.objex.panywhere.Individual
public class Individual
Class describes the properties of an Individual object which is part of a family within a Pedigree. Every Individual must at the minimum, must have knowledge of its direct relatives and also have the ability to search and find direct and not so direct relatives such as ancestors and uncles. The Individual class also includes properties that will be used by the PedigreeViewer to paint Individual Icons on the Pedigree surface.
| Field Summary |
|---|
| Fields inherited from interface com.objex.panywhere.RelationshipConstants |
|---|
BROTHER, DAUGHTER, FATHER, FEMALE_GENDER, MALE_GENDER, MOTHER, SISTER, SON, SPOUSE, TWINBROTHER, TWINSISTER, UNKNOWN_GENDER |
| Constructor Summary | |
|---|---|
Individual()
Creates new Individual. |
|
Individual(double x,
double y)
Creates an Individual whose initial location on the Pedigree is specified by xy coordinates. |
|
Individual(double x,
double y,
java.lang.String upn,
java.lang.String fid,
java.lang.String mid,
java.lang.String gender)
Creates an Individual with specified UPN, father ID, mother ID, gender and location. |
|
Individual(Individual ao_father,
Individual ao_mother)
Creates an individual whose father and mother are specified. |
|
Individual(java.lang.String upn,
java.lang.String fid,
java.lang.String mid,
java.lang.String gender)
Creates an Individual with specified UPN, father ID, mother ID and gender. |
|
| Method Summary | |
|---|---|
void |
addChild(Individual as_relative,
java.lang.String as_relationship)
Connects "as_relative" to this Individual as a child. |
void |
addFather(Individual as_relative,
java.lang.String as_relationship)
Connects "as_relative" to this Individual as a father. |
void |
addMother(Individual as_relative,
java.lang.String as_relationship)
Connects "as_relative" to this Individual as a mother. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener lstnr)
Allows this Bean to register for property change events |
void |
addSibling(Individual as_relative,
java.lang.String as_relationship)
Connects this Individual to "as_relative" as siblings. |
void |
addSpouse(Individual as_relative,
java.lang.String as_relationship)
Connects "as_relative" to this Individual as a spouse. |
java.lang.String |
ancestors(boolean includeAdopted)
Gets a semi-colon delimited list of Unique Person Numbers (UPN's) for all ancestors of this Individual |
Individual |
cloneInd()
Creates a new Individual whose primitive properties (non object properies) are copied from this Individual. |
Individual |
cloneInd(java.lang.String newupn)
Clone and return a new Individual with the UPN supplied. |
void |
deleteself()
Disconnects this Individual from all his/her direct relatives (Siblings, Parents and Kids and SPouses) by removing this Individual from their relationship tables. |
java.lang.String |
findMatchingAncestor(java.awt.Paint matchcol,
java.lang.String markername,
Allele allele)
Finds an ancestor from whom the specified Allele could possibly have been inherited. |
int |
getAdjustedGeneration(int oldestgen)
|
Individual |
getAncestor()
|
int |
getAncestorDOR()
Determines the degree of relation from this Individual to furthest known ancestor. |
Individual |
getAnykid()
Gets any one Individual who is this Individual's child |
Individual |
getAnykid(Individual as_spouse)
Gets any one child / kid shared between this Individual and specified spouse. |
java.lang.String |
getAnysibling()
|
java.awt.geom.Line2D |
getChildline()
|
RelationshipLine |
getChildlineRL()
Getter for property childlineRL. |
java.util.Vector |
getChildren()
|
java.util.Vector |
getChildren(Individual as_spouse,
PedigreeComparator aComparator)
|
Chromosome |
getChromosome()
Getter for property chromosome. |
Data |
getData(int ai_fieldid)
|
Data |
getData(java.lang.String fieldname)
Deprecated. Retrieves the field value for an item with the specified field name. |
java.util.Map<java.lang.Integer,Data> |
getDataitems()
Getter for property dataitems. |
java.lang.String |
getExternalkey()
Getter for property externalkey. |
java.lang.String |
getFamilyID()
|
Individual |
getFather()
|
java.lang.String |
getFatherid()
|
java.lang.String |
getFirstName()
|
java.lang.String |
getGender()
|
int |
getGeneration()
|
java.lang.String |
getIconsubtext()
The current Iconsubtext string. |
java.lang.String[] |
getIconSubtext(SubtextLegend aLegend,
DataDictionary aDict)
|
java.lang.String |
getIcontext()
|
Individual |
getKid(java.lang.String as_upn)
Retrieves an Individual whose UPN equals the supplied parameter and is a child of this Individual |
java.util.Hashtable |
getKids()
|
java.util.Vector |
getKids(Individual as_spouse)
Deprecated. |
java.lang.String |
getLastName()
|
Individual |
getLeftkid(Individual as_spouse)
Finds a child of this Individual's whose X-Coordinate is the leftmost in the decreasing X-direction on the Pedigree space |
Individual |
getLeftMostSibling()
|
Individual |
getLeftMostTwin()
|
java.lang.String |
getMarkedby()
|
Individual |
getMother()
|
java.lang.String |
getMotherid()
|
java.awt.geom.Line2D |
getParentline(Individual as_person)
Returns the current parent relationship line between this Individual and the specified spouse. |
java.util.Hashtable |
getParentlines()
|
static Individual |
getProband()
Returns a reference to the Individual who is the proband for the Family . |
java.util.Hashtable |
getRelationships()
|
Individual |
getRelative(java.lang.String as_upn)
Retrieves this Individual's relative whose UPN is specified. |
java.util.Vector |
getRelatives(java.lang.String as_relationship)
Deprecated. Returns a Vector of UPN's of this Individual's relatives as determined by the relationship string passed in parameters "a_relationship". |
java.util.Vector |
getRelatives(java.lang.String as_relationship,
PedigreeComparator aComparator)
Returns a Vector of UPN's of this Individual's relatives as determined by the relationship string passed in parameters "a_relationship". |
java.util.Vector |
getRelatives(java.lang.String as_relationship1,
java.lang.String as_relationship2)
Deprecated. Returns a Vector of UPN's of this Individual's relatives as determined by the relationship string passed in parameters "a_relationship1" and "as_relationship2". Only Sons and Daughters or Brothers and Sisters can be retrieved this way. |
java.util.Vector |
getRelatives(java.lang.String as_relationship1,
java.lang.String as_relationship2,
PedigreeComparator aComparator)
Returns a Vector of UPN's of this Individual's relatives as determined by the relationship string passed in parameters "a_relationship1" and "as_relationship2". |
Individual |
getRightkid(Individual as_spouse)
Returns a child of this Individual's whose X-Coordinate is the rightmost in the increasing X-direction on the Pedigree space |
Individual |
getRightMostSibling()
|
Individual |
getRightMostTwin()
|
java.lang.String |
getShadowupn()
Getter for property shadowupn. |
java.awt.geom.Line2D |
getSiblingline()
Fetch and return a line2d object rep's the sibling line for this Individual |
RelationshipLine |
getSiblinglineRL()
Getter for property siblinglineRL. |
java.util.Hashtable |
getSiblings()
|
Individual |
getSpouse()
|
java.util.Hashtable |
getSpouseindex()
|
java.awt.geom.Line2D |
getSpouseline(Individual as_person)
Returns a Line2D object representing the spouse relationship line between this Individual and specified spouse. |
java.util.Hashtable |
getSpouselines()
|
java.util.Hashtable |
getSpouses()
|
Subtext |
getSubtext()
|
Symbol |
getSymbol()
Retrieves the current symbol object. |
java.lang.String |
getTag()
|
java.lang.String |
getTree()
Returns the Tree ID of this Individual. |
java.util.Hashtable |
getTwinindex()
|
java.awt.geom.Line2D |
getTwinline()
|
RelationshipLine |
getTwinlineRL()
Getter for property twinlineRL. |
java.util.Vector |
getTwins()
Returns a Vector of UPN's for Individuals who may be twins or quadruplets of current individual. |
java.lang.String |
getUpn()
|
double |
getX()
|
double |
getXcoordinate()
|
double |
getY()
|
double |
getYcoordinate()
|
boolean |
hasBothparents()
|
boolean |
hasKids()
|
boolean |
hasOneparent()
|
boolean |
hasParents()
|
boolean |
hasSiblings()
|
boolean |
hasSpouses()
|
int |
indexOf(Individual ind,
int direction,
int count,
boolean found,
boolean falldown,
boolean didfalldown,
boolean includeAdopted)
Returns the degree of relation of Individual "ind" from this Individual or -1 if they are not relatives. |
java.lang.String |
inheritedHaplotype(Individual parent)
|
boolean |
isAdopted()
Determines if Individual is adopted or not. |
boolean |
isAdoptedIn()
Determines if Individual is adopted in or not |
boolean |
isAdoptedOut()
Determines if Individual is adopted out or not |
boolean |
isAncestorOf(Individual as_grantchild,
boolean includeAdopted)
Returns true if this Individual is ancestor of "as_grandchild" |
boolean |
isAuntOf(Individual ind,
boolean includeAdopted)
Returns true if this Individual is an Aunt of "ind". |
boolean |
isCasual(Individual as_spouse)
Returns the "Casual" status of this Individual's relationship with specified spouse. |
boolean |
isChanged()
Not used |
boolean |
isConsanguineous(Individual as_spouse)
Returns the Consanguineous status of this Individual's relationship with specified spouse. |
boolean |
isDeceased()
|
boolean |
isDivorced(Individual as_spouse)
Returns the Divorced status of this Individual's relationship with specified spouse. |
boolean |
isDizygotic()
Getter for property dizygotic. |
boolean |
isFemale()
|
boolean |
isGenderunknown()
Retrieves the unknown gender status of this Individual. |
boolean |
isHalfBrother(Individual ind)
|
boolean |
isHalfSister(Individual ind)
|
boolean |
isHighlighted()
|
boolean |
isInfertile()
Returns the infertifility indicator for an Individual |
boolean |
isInfertile(Individual as_spouse)
Returns the infertility Indicator for the Relationship between this Individual and his spouse. |
boolean |
isKidOf(Individual as_person)
|
boolean |
isMale()
|
boolean |
isMarried(Individual as_spouse)
Returns the "Married" or "Normal" status of this Individual's relationship with specified spouse. |
boolean |
isMonozygotic()
Getter for property monozygotic. |
boolean |
isNoissue()
|
boolean |
isNoissue(Individual as_spouse)
Returns the "No Issue" status of the this Individual's relationship with specified spouse. |
boolean |
isOwnparent()
Reserved for ver1.1 True of this Individual has is his own parent (plants will do this ) |
boolean |
isParentOf(Individual kid,
boolean includeAdopted)
Returns true If this Individual is a parent to "kid" |
boolean |
isProband()
|
boolean |
isRelativeOf(Individual ind,
boolean includeAdopted)
|
boolean |
isSAB()
|
boolean |
isSeparated(Individual as_spouse)
Returns the Separated status of this Individual's relationship with specified spouse. |
boolean |
isShadow()
|
boolean |
isSiblingOf(Individual as_person,
boolean includeAdopted)
Determines if current Individual is a sibling of the specified Individual |
boolean |
isSpouseOf(Individual as_person)
|
boolean |
isTraversed()
|
boolean |
isTwin()
|
boolean |
isTwinOf(Individual twin)
Returns true if the Individual "twin" is a twin one of this Individual |
boolean |
isTwintypeunknown()
Getter for property twintypeunknown. |
boolean |
isUncleOf(Individual ind,
boolean includeAdopted)
Returns true if this Individual is an Uncle of "ind". |
java.util.Vector |
myAncestors(boolean includeAdopted)
Returns a vector whose elements are Individual objects being ancestors of this person |
java.util.Vector |
myAncestors(int degree,
boolean includeAdopted)
Retrievs a list of ancestors fo this Individual whose degree of relation from this Individual is as specified |
java.util.Vector |
myDescendants(boolean includeAdopted)
Recursive lookup of all descendants of this Individual. |
java.util.Vector |
myDescendants(int degree,
boolean includeAdopted)
Returns a vector with all descendants of this Individual followed down to the specified degree of relation. |
java.lang.String |
myGeneration()
|
java.util.Vector |
myRelatives(int degree,
int direction,
int count,
boolean falldown,
boolean didfalldown,
boolean includeAdopted)
Finds and returns all relatives this Individual who are at the specified degree of relation from this Individual. |
java.util.Vector |
mySiblings(boolean includeAdopted)
|
java.util.Vector |
myUncles(boolean includeAdopted)
Returns a list Individuals who are indirect Ancestors (Aunts and Uncles) of this Individual. |
int |
numKids()
|
int |
numKids(Individual as_spouse)
|
int |
numSiblings()
|
int |
numSpouses()
|
java.lang.String |
passedHaplotype(Individual child)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener lstnr)
Allows this Bean to de-register for property change events |
static void |
resetOldestGeneration()
Resets the oldest generation to its default value. |
static void |
resetYoungestGeneration()
Resets the generation of the youngest Individual in this family/pedigree. |
void |
setAdopted(boolean rhs)
Sets or unsets the adopted status of this Individual. |
void |
setAdoptedIn(boolean rhs)
Sets or unsets the adoption status of this Individual |
void |
setAdoptedOut(boolean rhs)
Sets or unsets the adoption status of this Individual. |
void |
setCasual(Individual as_spouse,
boolean casual)
Sets or unsets the spouse "Casual Status" of the relationship between this Individual and specified spouse. |
void |
setChanged(boolean ab_changed)
Not Used |
void |
setChildline(java.awt.geom.Line2D as_line)
Sets child line for this Individual to the specified value |
void |
setChildlineRL(RelationshipLine childlineRL)
Setter for property childlineRL. |
void |
setChromosome(Chromosome rhs)
Setter for property chromosome. |
void |
setConsanguineous(Individual as_spouse,
boolean incest)
Sets or unsets the "Consanguineous" status of this Individual's relationship with specified spouse. |
void |
setData(Data data)
Adds the specified data item to the Individual database using the specified field name as the column heading or fieldname. |
void |
setData(java.lang.String fieldname,
Data data)
Deprecated. Adds the specified data item to the Individual database using the specified field name as the column heading or fieldname. If data exists in this field already, it will be overitten without warning. |
void |
setDataitems(java.util.Map<java.lang.Integer,Data> rhs)
Setter for property dataitems. |
void |
setDeceased(boolean rhs)
Set or unsets the deceased status for this individual to deceased or alive. |
void |
setDivorced(Individual as_spouse,
boolean d)
Sets or unsets the "Divorced" status of this Individual's relationship with specified spouse. |
void |
setDizygotic(boolean rhs)
Setter for property dizygotic. |
void |
setExternalkey(java.lang.String externalkey)
Setter for property externalkey. |
void |
setFamilyID(java.lang.String rhs)
Sets the family ID of this Individual to supplied text string. |
void |
setFather(Individual pa)
Sets Individual "pa" as the father of this Individual. |
void |
setFatherid(java.lang.String rhs)
Sets the FatherID of this Individual to supplied value. |
void |
setFirstName(java.lang.String fname)
Sets the 1st name of the Individual to value . |
void |
setGender(java.lang.String rhs)
Sets the Gender of this Individual to supplied String. |
void |
setGenderunknown(boolean rhs)
Sets or unsets the unknown gender property. |
void |
setGeneration(int rhs)
Sets this Individual's generation to value specified. |
void |
setHighlighted(boolean rhs)
Sets or unsets the hilighted status of the Individual. |
void |
setIconsubtext(java.lang.String subtext)
Sets the Iconsubtext property. |
void |
setIcontext(java.lang.String text)
Sets the Icontext property to specified value. |
void |
setInfertile(boolean fertile)
Sets the infertility indicator for this Individual |
void |
setInfertile(Individual as_spouse,
boolean fertile)
Sets the infertility Indicator for the Relationship between this Individual and specified spouse. |
void |
setKids(java.util.Hashtable rhs)
Assigns the Individual's kids relationships to the supplied hashmap. |
void |
setLastName(java.lang.String rhs)
Sets the last name of the Individual to value . |
void |
setMarkedby(java.lang.String marker)
Sets the marker text for this Individual. |
void |
setMarried(Individual as_spouse,
boolean normal)
Sets or unsets the "Married" status of this Individual's relationship with specified spouse. |
void |
setMonozygotic(boolean rhs)
Setter for property monozygotic. |
void |
setMother(Individual ma)
Sets Individual "ma" as the mother of this Individual. |
void |
setMotherid(java.lang.String rhs)
Sets the MotherID of this Individual to supplied UPN |
void |
setNoissue(boolean rhs)
Sets or usets the "No Issue" status of an Individual. |
void |
setNoissue(Individual as_spouse,
boolean ni)
Sets or unsets the relationship between this Individual and specified spouse as a "No Issue" type relatiosnhip A relationship is considered as "No Issue" if the two Individuals may not have kids together. |
void |
setParentlines(java.util.Hashtable rhs)
Sets this Individual's parent relationship lines container to specified hashmap. |
void |
setPoint(double xc,
double yc)
Sets the current location of an Individual object to supplied xy coordinates. |
boolean |
setProband(boolean rhs)
Sets or usets the proband status of an Individual. |
void |
setQuadrant(int quadrant,
int qColorRGB)
Sets the color for a specified quantrant of this Individual's Symbol object to the specified value. |
void |
setRelationships(java.util.Hashtable rhs)
Assigns the Individual's relationships container to the supplied hashmap. |
void |
setSAB(boolean rhs)
Sets or usets the SAB status of an Individual. |
void |
setSeparated(Individual as_spouse,
boolean s)
Sets or unsets the "Separated" status of this Individual's relationship with specified spouse. |
void |
setShadow(boolean rhs)
Sets or unsets the boolean flag indicating whether or not this Individual is a shadow or not. |
void |
setShadowupn(java.lang.String rhs)
Setter for property shadowupn. |
void |
setSiblingline(java.awt.geom.Line2D as_line)
Sets the sibling line for this Individual to supplied line2D object |
void |
setSiblinglineRL(RelationshipLine siblinglineRL)
Setter for property siblinglineRL. |
void |
setSiblings(java.util.Hashtable rhs)
Assigns the Individual's siblings relationships index to the supplied hashmap contents. |
void |
setSpouse(Individual sp)
Sets the main spouse reference for this Individual. |
void |
setSpouseindex(java.util.Hashtable rhs)
Assigns the spouse relationship table to specified hashmap. |
void |
setSpouselines(java.util.Hashtable rhs)
Sets this Individual's spouse relationship lines property. |
void |
setSpouses(java.util.Hashtable rhs)
Assigns the Individual's spouses relationships container to the supplied hashmap. |
void |
setSubtext(Subtext aSubtext)
Sets the new Subtext object for this Individual |
void |
setSymbol(Symbol sym)
Assigns this Individual's symbol object to the supplied object. |
void |
setTag(java.lang.String rhs)
Sets the tag property value to supplied string |
void |
setTraversed(boolean rhs)
Set a marker flag to true of false. |
void |
setTree(java.lang.String rhs)
Sets the Tree ID of this Individual to supplied text string. |
void |
setTwinindex(java.util.Hashtable rhs)
Assigns the twin relationship table to specified hashmap |
void |
setTwinline(java.awt.geom.Line2D as_line)
Sets twin line property for this Individual |
void |
setTwinlineRL(RelationshipLine twinlineRL)
Setter for property twinlineRL. |
void |
setTwins(Individual as_relative,
java.lang.String as_relationship)
Add a twin (triplet or quadruplet) brother or sister to this Individual. |
void |
setTwintypeunknown(boolean rhs)
Setter for property twintypeunknown. |
void |
setUpn(int rhs)
Sets the Unique Number for this Individual to supplied value |
void |
setUpn(java.lang.String rhs)
Sets the Unique Number for this Individual to supplied value |
void |
setX(double xc)
Sets the X-Coordinate for this Individual's Icon |
void |
setXcoordinate(double x)
Sets the X coordinate position at which this Individual's Icon will be drawn. |
void |
setY(double yc)
Sets the Y-Coordinate for this Individual's Icon |
void |
setYcoordinate(double y)
Sets the Y coordinate position at which this Individual's Icon will be drawn. |
void |
updateSubtext(SubtextLegend aLegend,
DataDictionary aDict)
This method must be called whenever the subtext for the Individual needs to be update before the next painting of the Pedigre is done. |
void |
updateSymbol(Legend aLegend)
This method must be called whenever the symbols for the Individual needs to be update before the next painting of the Pedigre is done. |
void |
updateSymbol(LegendItem aLegendItem,
boolean ab_unassign)
This method must be called whenever the symbols for the Individual needs to be update before the next painting of the Pedigre is done. |
void |
updateSymbol(LegendItem aLegendItem,
boolean ab_unassign,
boolean ab_symbol_linkedtodata)
Deprecated. |
void |
updateSymbol(long al_symbol)
Updates Individual's symbol object by decoding the Long Integer passed as parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Individual()
throws java.lang.Exception
java.lang.Exception - If there was an error in creating the Individual.
public Individual(Individual ao_father,
Individual ao_mother)
throws java.lang.Exception
ao_father - The Individual's fatherao_mother - The Individual's mother
java.lang.Exception - If there was an error in creating the Individual.
public Individual(java.lang.String upn,
java.lang.String fid,
java.lang.String mid,
java.lang.String gender)
throws java.lang.Exception
upn - A Unique Number for the new Individualfid - The UPN of Individual's fathermid - The UPN of Individual's mothergender - The gender status of new Individual
java.lang.Exception - If there was an error in creating the Individual.
public Individual(double x,
double y)
throws java.lang.Exception
x - The X position for new Individualy - The Y position for new Individual
java.lang.Exception - If there was an error in creating the Individual.
public Individual(double x,
double y,
java.lang.String upn,
java.lang.String fid,
java.lang.String mid,
java.lang.String gender)
throws java.lang.Exception
x - The X position for new Individualy - The Y position for new Individualupn - Unique Number for the new Individualfid - The UPN of Individual's fathermid - The UPN of the Individual's mothergender - The gender of the new Individual
java.lang.Exception - If there was an error in creating the Individual.| Method Detail |
|---|
public Individual cloneInd()
throws java.lang.Exception
java.lang.Exception - if there is a problem with the cloning / copying operation
public Individual cloneInd(java.lang.String newupn)
throws java.lang.Exception
newupn - The new UPN for the cloned Individual
java.lang.Exception - if there is a problem with the cloning / copying operationpublic Data getData(int ai_fieldid)
ai_fieldid - The fieldid that corresponds to a database field for which data has been loaded into this Individual object.
public java.lang.String[] getIconSubtext(SubtextLegend aLegend,
DataDictionary aDict)
aLegend - The Progeny Anywhere control's SubtextLegend containing the SubtextLegendItems that may be assigned to this Individual's Subtext based on a pre-set
list of conditions that must be satisfied by the this Individual.aDict - The data dictionary from which the fields making up the Data for the individuals are derived
public void updateSubtext(SubtextLegend aLegend,
DataDictionary aDict)
aLegend - The Progeny Anywhere control's SubtextLegend containing the SubtextLegendItems that may be assigned to this Individual's Subtext based on a pre-set
list of conditions that must be satisfied by the this Individual.aDict - The data dictionary from which the fields making up the Data for the individuals are derivedpublic void updateSymbol(Legend aLegend)
aLegend - The Progeny Anywhere control's Legend containing the LegendItems that may be assigned to this Individual's Symbol based on a pre-set
list of conditions that must be satisfied by the this Individual.
public void updateSymbol(LegendItem aLegendItem,
boolean ab_unassign)
aLegendItem - The item to be assigned or unassigned from this Individual's Symbolab_unassign - If true, the legend item was removed otherwise it would have been added and/or changed
public void updateSymbol(LegendItem aLegendItem,
boolean ab_unassign,
boolean ab_symbol_linkedtodata)
aLegendItem - The item to be assigned or unassigned from this Individual's Symbolab_unassign - If true, the legend item was removed otherwise it would have been added and/or changedab_symbol_linkedtodata - If TRUE then the symbol will only be updated if the set of conditions laid out on the
LegendItem are fully satisfied by the corresponding data items for this Individual.public void addPropertyChangeListener(java.beans.PropertyChangeListener lstnr)
public void removePropertyChangeListener(java.beans.PropertyChangeListener lstnr)
public void setAdoptedIn(boolean rhs)
rhs - Boolean indicating whether the Individual is adopted into another family. The system differntiates
between an Individual who is adopted into the Family , which means that you may not trace his/her genetics
going up the family tree, and an Individual who is adopted out to another Family, which means that his genetics
can be traced up the family tree.public void setAdoptedOut(boolean rhs)
rhs - Boolean indicating whether the Individual is adopted out to another family. The system differntiates
between an Individual who is adopted into the Family , which means that you may not trace his/her genetics
going up the family tree, and an Individual who is adopted out to another Family, which means that his genetics
can be traced up the family tree.public boolean isAdoptedIn()
public boolean isAdoptedOut()
public void setGenderunknown(boolean rhs)
rhs - The new boolean indicating whether the Individual's unknown gender statuspublic boolean isGenderunknown()
public void setSymbol(Symbol sym)
sym - The new Symbol object to assignpublic Symbol getSymbol()
public void updateSymbol(long al_symbol)
| BITS | ITEM | VALUE |
| ---- | --------------- | ----------------- |
| 1-3 | Quadrant 1 color | See “colors” below |
| 4-6 | Quadrant 2 color | See “colors” below |
| 7-9 | Quadrant 3 color | See “colors” below |
| 10-12 | Quadrant 4 color | See “colors” below |
| 13-15 | Center circle color | See “colors” below |
| 16-18 | Center square color | See “colors” below |
| 19 | Show quadrant 1 | 1=show 0=hide |
| 20 | Show quadrant 2 | 1=show 0=hide |
| 21 | Show quadrant 3 | 1=show 0=hide |
| 22 | Show quadrant 4 | 1=show 0=hide |
| 23 | Show circle | 1=show 0=hide |
| 24 | Show square | 1=show 0=hide |
| 25 | Show horizontal line | 1=show 0=hide |
| 26 | Show vertical line | 1=show 0=hide |
| 27 | Show quadrant1 dot | 1=show 0=hide |
| 28 | Show quadrant2 dot | 1=show 0=hide |
| 29 | Show quadrant3 dot | 1=show 0=hide |
| 30 | Show quadrant4 dot | 1=show 0=hide |
| Value | Color |
| ----- | ----- |
| 0 | black |
| 1 | blue |
| 2 | yellow |
| 3 | green |
| 4 | red |
| 5 | gray |
| 6 | cyan |
| 7 | pink |
al_symbol - A 32 bit integer which can be decoded as above.
public void setQuadrant(int quadrant,
int qColorRGB)
quadrant - The quadrant whose color is to be updated (1 - 4)qColorRGB - The RGB value for the new colorpublic void setSpouseindex(java.util.Hashtable rhs)
rhs - The new spouse table. All spouses of this Individual are to be found in this tablepublic java.util.Hashtable getSpouseindex()
public void setTwinindex(java.util.Hashtable rhs)
rhs - The new hash table containing this Individual's twin (or quadruplets) siblingspublic java.util.Hashtable getTwinindex()
public boolean isTwin()
public void setInfertile(Individual as_spouse,
boolean fertile)
as_spouse - This Individual's spousefertile - The fertility indicator (true or false)public boolean isInfertile(Individual as_spouse)
as_spouse - This Individual's spouse
public void setInfertile(boolean fertile)
fertile - The new fertility indicatorpublic boolean isInfertile()
public void setNoissue(Individual as_spouse,
boolean ni)
as_spouse - This Individual's spouseni - The fertility Indicator (true or false)public boolean isNoissue(Individual as_spouse)
as_spouse - The individual's spouse
public void setCasual(Individual as_spouse,
boolean casual)
as_spouse - This Individual's spousecasual - The new value for the "casual" propertypublic boolean isCasual(Individual as_spouse)
as_spouse - This Individual's spouse
public void setDivorced(Individual as_spouse,
boolean d)
as_spouse - This Individual's spoused - The new value for "divorced" status of the relationship between these two Individuals
public void setSeparated(Individual as_spouse,
boolean s)
as_spouse - This Individual's spouses - The new "Separated" status
public void setMarried(Individual as_spouse,
boolean normal)
as_spouse - This Individual's spousenormal - The new "Married" status
public void setConsanguineous(Individual as_spouse,
boolean incest)
as_spouse - This Individual's spouseincest - The new "Married" statuspublic boolean isConsanguineous(Individual as_spouse)
as_spouse - This Individual's spouse
public boolean isDivorced(Individual as_spouse)
as_spouse - This Individual's spouse
public boolean isSeparated(Individual as_spouse)
as_spouse - This Individual's spouse
public boolean isMarried(Individual as_spouse)
as_spouse - This Individual's spouse
public void setMarkedby(java.lang.String marker)
marker - The new marker text. Can be any one of ("+", "-", "*") or any other marker text that may be
defined in the future.public java.lang.String getMarkedby()
public void setIcontext(java.lang.String text)
text - The new Icon textpublic java.lang.String getIcontext()
public void setIconsubtext(java.lang.String subtext)
subtext - The text string to set set Icon subtext property topublic java.lang.String getIconsubtext()
public void setTraversed(boolean rhs)
rhs - The flag to set (True sets the marker and false unsets the marker)public boolean isTraversed()
public void setAdopted(boolean rhs)
rhs - Flag indicating whether or not the Individual is adopted.public boolean isAdopted()
public static Individual getProband()
public boolean setProband(boolean rhs)
rhs - The new proband Indicator (True or False)
public boolean isProband()
public void setNoissue(boolean rhs)
rhs - The new "No Issue" status.public boolean isNoissue()
public void setSAB(boolean rhs)
throws java.lang.Exception
rhs - The new SAB status
java.lang.Exception - If the opertaion is illegal e.g. if Individual has kids and/or spousespublic boolean isSAB()
public void setFamilyID(java.lang.String rhs)
rhs - The new Family ID. Non numberic strings will be rejected quietly without an error alertpublic java.lang.String getFamilyID()
public void setTree(java.lang.String rhs)
rhs - The new Tree IDpublic java.lang.String getTree()
public void setFather(Individual pa)
pa - The new fatheraddFather(Individual, String)public Individual getFather()
public void setMother(Individual ma)
ma - The new mother.addMother(Individual, String)public Individual getMother()
public void setSpouse(Individual sp)
sp - The new main spouse for this Individual. May be null to remove main spouse.public Individual getSpouse()
public void setX(double xc)
xc - The value to setpublic double getX()
public void setY(double yc)
yc - The value to setpublic double getY()
public void setChildline(java.awt.geom.Line2D as_line)
as_line - The line object to assign to this Objectpublic void setTwinline(java.awt.geom.Line2D as_line)
as_line - The new twin linepublic java.awt.geom.Line2D getTwinline()
public java.awt.geom.Line2D getChildline()
public Individual getRightMostSibling()
public Individual getLeftMostSibling()
public Individual getRightMostTwin()
public Individual getLeftMostTwin()
public void setSiblingline(java.awt.geom.Line2D as_line)
as_line - The new sibling line for this Individualpublic java.awt.geom.Line2D getSiblingline()
public void setRelationships(java.util.Hashtable rhs)
rhs - The new relationship containerpublic void setKids(java.util.Hashtable rhs)
rhs - The new kids relationship containerpublic void setSpouses(java.util.Hashtable rhs)
rhs - The new spouse relationship containerpublic void setSiblings(java.util.Hashtable rhs)
rhs - The new sibling relationship containerpublic void setSpouselines(java.util.Hashtable rhs)
rhs - The hashmap whose contents are the relationship lines for connecting this individual to his/her spousespublic java.util.Hashtable getSpouselines()
public java.util.Hashtable getParentlines()
public void setParentlines(java.util.Hashtable rhs)
rhs - The hashmap whose contents are the relationship linespublic java.util.Hashtable getRelationships()
public java.util.Hashtable getKids()
public java.util.Hashtable getSiblings()
public java.util.Hashtable getSpouses()
public java.awt.geom.Line2D getSpouseline(Individual as_person)
as_person - The spouse with whom spouse line is shared
public java.awt.geom.Line2D getParentline(Individual as_person)
as_person - This Individual's spouse with whom a parent line may be shared or null
public Individual getAnykid()
public Individual getAnykid(Individual as_spouse)
as_spouse - This Individual's spouse
public java.lang.String getAnysibling()
public int numSiblings()
public boolean hasSiblings()
public boolean isSiblingOf(Individual as_person,
boolean includeAdopted)
as_person - The Individual whose relationships is to be checkedincludeAdopted - A flag indicating whether or not to cut accross adopted lines in
building list of siblings to be checked.
public boolean isSpouseOf(Individual as_person)
as_person - The Individual to check
public boolean isKidOf(Individual as_person)
as_person - The Individual to check
public boolean hasSpouses()
public int numSpouses()
public boolean hasKids()
public int numKids()
public boolean hasParents()
public boolean hasBothparents()
public boolean hasOneparent()
public boolean isOwnparent()
public boolean isMale()
public boolean isFemale()
public java.util.Vector getTwins()
public java.util.Vector getRelatives(java.lang.String as_relationship1,
java.lang.String as_relationship2)
as_relationship1 - The first relationship to look for e.g RelationshipConstants.BROTHER, RelationshipConstants.SISTER etcas_relationship2 - The second relationshiop to look for e.g. RelationshipConstants.SON, RelationshipConstants.DAUGHTER
RelationshipConstants,
getRelatives(String, String, PedigreeComparator)
public java.util.Vector getRelatives(java.lang.String as_relationship1,
java.lang.String as_relationship2,
PedigreeComparator aComparator)
as_relationship1 - The first relationship defining individuals to be returned. This is typically RelationshipConstants.SON, RelationshipConstants.DAUGHTER, RelationshipConstants.SISTER, RelationshipConstants.BROTHERas_relationship2 - The second relationship defining individuals to be returned. This is typically RelationshipConstants.SON, RelationshipConstants.DAUGHTER, RelationshipConstants.SISTER, RelationshipConstants.BROTHERaComparator - The pedigree comparator to define the order by which the returned individuals will be sorted. If this parameter is NULL then no specific order will be enforced.
RelationshipConstants
public java.util.Vector getRelatives(java.lang.String as_relationship,
PedigreeComparator aComparator)
as_relationship - The relationship to look for e.g. RelationshipConstants.SON, RelationshipConstants.DAUGHTERaComparator - The pedigree comparator to define the order by which the returned individuals will be sorted. If this parameter is NULL then no specific order will be enforced.
public java.util.Vector getRelatives(java.lang.String as_relationship)
as_relationship - The relationship to look for e.g. RelationshipConstants.SON, RelationshipConstants.DAUGHTER
getRelatives(String, PedigreeComparator)public Individual getKid(java.lang.String as_upn)
as_upn - The UPN of the Individual to be retrived.
public Individual getRelative(java.lang.String as_upn)
as_upn - The UPN of the Individual / relative to be retrieved.
public java.util.Vector getChildren()
public int numKids(Individual as_spouse)
as_spouse - The spouse by whom this Individual has children
public java.util.Vector getKids(Individual as_spouse)
as_spouse - The spouse by whom this Individual has children. If NULL is specified then only those children whose
2nd parent is not specified are returned.
getChildren(Individual, PedigreeComparator)
public java.util.Vector getChildren(Individual as_spouse,
PedigreeComparator aComparator)
as_spouse - The spouse by whom this Individual has children. If NULL is specified then only those children whose
2nd parent is not specified are returned.aComparator - The pedigree comparator to define the order by which the returned individuals will be sorted. If this parameter is NULL then no specific order will be enforced.
public Individual getLeftkid(Individual as_spouse)
as_spouse - Spouse who is mother/father of the kid in question
public Individual getRightkid(Individual as_spouse)
as_spouse - Spouse who is mother/father of the child in question
public void deleteself()
public void addSibling(Individual as_relative,
java.lang.String as_relationship)
as_relative - The Individual to be added as a sibling of this Individualas_relationship - "Brother" or "Sister" relationship types
public void addChild(Individual as_relative,
java.lang.String as_relationship)
as_relative - The Individual who is to be connected as childas_relationship - String equal to RelationshipConstants.SON or RelationshipConstants.DAUGHTER
public void addFather(Individual as_relative,
java.lang.String as_relationship)
as_relative - The new Individual to be added as fatheras_relationship - RelationshipConstants.FATHER
public void addMother(Individual as_relative,
java.lang.String as_relationship)
as_relative - The Individual to be added as a motheras_relationship - RelationshipConstants.MOTHER
public void addSpouse(Individual as_relative,
java.lang.String as_relationship)
as_relative - The Individual who is to be connected as spouseas_relationship - A string equal to RelationshipConstants.SPOUSE
public void setTwins(Individual as_relative,
java.lang.String as_relationship)
as_relative - The Individdual to be set as this Individual's twin (triplet or quadruplet etc)as_relationship - The string relationship (BROTHER, SISTER etc)public boolean isTwinOf(Individual twin)
twin - Individual whose relationship is to be checked
public boolean isParentOf(Individual kid,
boolean includeAdopted)
kid - Individual whose relationship is to be checkedincludeAdopted - Flag indicating whether of not adopted parents/ancestors across adopted lines must be
returned or considered as parents. If false, parents of this Indidual
will not be returned if he/she was adopted into the family. Adopted out Individuals will
be returned regardless of the value of this flag.
public java.lang.String ancestors(boolean includeAdopted)
includeAdopted - Flag indicating whether of not adopted ancestors across adopted lines must be
returned or included as part of the list of ancestors. If false, ancestors of this Indiduals
will not be returned if he/she was adopted into the family. Adopted out Individuals will
be returned regardless of the value of this flag.
public java.util.Vector mySiblings(boolean includeAdopted)
includeAdopted - Flag indicating whether of not adopted in sibling should or should not
be included in the list returned. Adopted out Individuals will
be returned regardless of the value of this flag.
public java.util.Vector myDescendants(int degree,
boolean includeAdopted)
degree - An integer specifying the degree of relation to search up to. If degree is 1, kids
are returned, if 2 then grandkids are returned etcincludeAdopted - True if descendants across adopted lines are to be included in list of
Descendants. This may be required during traversal but will not be required
if list if being used to get list of descendants for display purposes
public java.util.Vector myDescendants(boolean includeAdopted)
includeAdopted - True if descendants across adopted lines are to be included in list of
Descendants. This may be required during traversal but will not be required
if list if being used to get list of descendants for display purposes
public java.util.Vector myAncestors(int degree,
boolean includeAdopted)
degree - An integer specifying the degree of relation to search up to. If degree is one, father and mother
are returned, if 2 then grandpa and grandma from the father and mother lines are returned.includeAdopted - True if ancestors across adopted lines are to be included in list of
ancestors. This may be required during traversal but will not be required
if list if being used to get list of descendants for display purposes
public java.util.Vector myAncestors(boolean includeAdopted)
includeAdopted - True if ancestors across adopted lines are to be included in list of
ancestors. This may be required during traversal but will not be required
if list if being used to get list of descendants for display purposes
public java.util.Vector myRelatives(int degree,
int direction,
int count,
boolean falldown,
boolean didfalldown,
boolean includeAdopted)
degree - The degree of relation to search to (-1) searches all relativesdirection - The direction of search determined by the following integer values
0 - initial search (searches for all direct relatives) of current Individual
-1 - sideways while exploring siblings. No need to search for siblings or ancestors when a sibling is explored
2 - Updwards in search of ancestors -- No need to seek descendants
3 - Downwards in search of kids -- no need to go back looking for ancestorscount - The recursion counter (used internally to initialize traversal flags). Must
always be 0. If a value other than zero is used on calling method, the traversal
may or may not happen.falldown - Boolean indicating whether or not an Individual invoked as an ancestor / parent must
look down to find kids that may not have been traversed. If a parent has other kids that
are not the invoking child's siblings then half brothers and sisters of that kid would not
have been traversed, necessitating a "fall down" traversal by parent.didfalldown - True if the search for kids resulted from a falldown as described aboveincludeAdopted - True if relatives across adopted lines are to be included in list of
ancestors / relatives. This may be required during traversal but will not be required
if list is being used to get list of relatives/descendants for display purposes
public int indexOf(Individual ind,
int direction,
int count,
boolean found,
boolean falldown,
boolean didfalldown,
boolean includeAdopted)
ind - The individual whose degree of relation is being checkeddirection - The direction of search. Used internallycount - The recursion counter (used internally to initialize traversal flags). Must
always be 0. If a value other than zero is used on calling method, the traversal
may or may not happen.found - The boolean flag used to stop the search when the relative "ind" has been found.falldown - Boolean indicating whether or not an Individual invoked as an ancestor / parent must
look down to find kids that may not have been traversed. If a parent has other kids that
are not the invoking child's siblings then half brothers and sisters of that kid would not
have been traversed, necessitating a "fall down" traversal by parent.didfalldown - True if the search for kids resulted from a falldown as described aboveincludeAdopted - True if relatives across adopted lines are to be included in list of
ancestors / relatives. This may be required during traversal but will not be required
if list if being used to get list of relatives/descendants for display purposes
public boolean isRelativeOf(Individual ind,
boolean includeAdopted)
ind - The individual whose relationship to this Individual is being checked.includeAdopted - True if relatives across adopted lines are to be included in list of
ancestors / relatives. This may be required during traversal but will not be required
if list if being used to get list of relatives/descendants for display purposes
public boolean isHalfBrother(Individual ind)
ind - The Individual to whom this Individual may be a half brother.
public boolean isHalfSister(Individual ind)
ind - The Individual to whom this Individual may be a half sister.
public boolean isAuntOf(Individual ind,
boolean includeAdopted)
ind - The Individual to whom this Indibidual may be an aunt.includeAdopted - True if relatives across adopted lines are to be included in list of
ancestors / relatives. This may be required during traversal but will not be required
if list is being used to get list of relatives/descendants for display purposes
public boolean isUncleOf(Individual ind,
boolean includeAdopted)
ind - The Individual to whom this Indiviual may be an uncle.includeAdopted - True if relatives across adopted lines are to be included in list of
ancestors / relatives. This may be required during traversal but will not be required
if list is being used to get list of relatives/descendants for display purposes
public java.util.Vector myUncles(boolean includeAdopted)
includeAdopted - A flag indicating whether or not to cut accross adopted lines in
building list of ancestors
public boolean isAncestorOf(Individual as_grantchild,
boolean includeAdopted)
as_grantchild - The Individual whose ancestry is to be detrminedincludeAdopted - A flag indicating whether or not to cut accross adopted lines in
building list of ancestors
public Individual getAncestor()
public int getAncestorDOR()
public java.lang.String getUpn()
public void setUpn(java.lang.String rhs)
rhs - The new UPN
public void setUpn(int rhs)
throws java.lang.NumberFormatException
rhs - The new UPN
java.lang.NumberFormatException - If the parameter supplied cannot be converted to a stringpublic java.lang.String getTag()
public void setTag(java.lang.String rhs)
rhs - The new tag
public void setGender(java.lang.String rhs)
throws java.lang.Exception
rhs - The new gender
java.lang.Exception - If the parameters passed are invalidRelationshipConstantspublic java.lang.String getGender()
RelationshipConstantspublic void setFatherid(java.lang.String rhs)
rhs - The new Father ID. The new fatherid must be convertible to a number else
it will be ignored.public java.lang.String getFatherid()
public void setMotherid(java.lang.String rhs)
rhs - UPN of mother.The new motherid must be convertible to a number else
it will be ignored.public java.lang.String getMotherid()
public double getXcoordinate()
public double getYcoordinate()
public void setPoint(double xc,
double yc)
xc - The X Coordinateyc - The Y Coordinatepublic void setDeceased(boolean rhs)
rhs - Flag indicating whether or not Individual is deceased.public boolean isDeceased()
public void setChanged(boolean ab_changed)
public boolean isChanged()
public void setHighlighted(boolean rhs)
rhs - True to hilight, false to unhighlightpublic boolean isHighlighted()
public void setFirstName(java.lang.String fname)
fname - The value to set name topublic java.lang.String getFirstName()
public void setLastName(java.lang.String rhs)
rhs - The value to set name topublic java.lang.String getLastName()
public void setXcoordinate(double x)
x - The value to setpublic void setYcoordinate(double y)
y - The value to setpublic void setGeneration(int rhs)
rhs - The new generation of the Individualpublic int getGeneration()
public int getAdjustedGeneration(int oldestgen)
oldestgen - The generation of the oldest Individual on the Pedigree
public java.lang.String myGeneration()
public void setShadow(boolean rhs)
rhs - The new value of the the shadow propertypublic boolean isShadow()
public java.lang.String inheritedHaplotype(Individual parent)
parent - The parent from whom a Haplotype is expected to have been inherited.
public java.lang.String passedHaplotype(Individual child)
child - The child to whom a Haplotype is expected to have been passed
public java.lang.String findMatchingAncestor(java.awt.Paint matchcol,
java.lang.String markername,
Allele allele)
matchcol - The color that is used to help in the matching of this Individual's Allele and the ancestor's allele. Typcially
AlleleID's are used to match but in cases where there are double matches, the color will be used to distinguish
teh actual Allele that was inherited from that ancestor.markername - The marker on which the Allele being matched existsallele - The allele for which a match is being inspected
public boolean isTwintypeunknown()
public void setTwintypeunknown(boolean rhs)
rhs - New value of property twintypeunknown.public boolean isDizygotic()
public void setDizygotic(boolean rhs)
rhs - New value of property dizygotic.public boolean isMonozygotic()
public void setMonozygotic(boolean rhs)
rhs - New value of property monozygotic.public java.lang.String getShadowupn()
public void setShadowupn(java.lang.String rhs)
rhs - New value of property shadowupn.public java.lang.String getExternalkey()
public void setExternalkey(java.lang.String externalkey)
externalkey - New value of property externalkey.public RelationshipLine getChildlineRL()
public void setChildlineRL(RelationshipLine childlineRL)
childlineRL - New value of property childlineRL.public RelationshipLine getSiblinglineRL()
public void setSiblinglineRL(RelationshipLine siblinglineRL)
siblinglineRL - New value of property siblinglineRL.public RelationshipLine getTwinlineRL()
public void setTwinlineRL(RelationshipLine twinlineRL)
twinlineRL - New value of property twinlineRL.public java.util.Map<java.lang.Integer,Data> getDataitems()
public void setDataitems(java.util.Map<java.lang.Integer,Data> rhs)
rhs - New value of property dataitems.public Data getData(java.lang.String fieldname)
fieldname - The name of the field or column in the Individual database that identifies
the required data.
public void setData(java.lang.String fieldname,
Data data)
fieldname - The name of the field or column in the Individual database that identifies
the data to be writtendata - The data to be written to the Individual databasepublic void setData(Data data)
data - The data to be written to the Individual databasepublic Chromosome getChromosome()
public void setChromosome(Chromosome rhs)
rhs - New value of property chromosome.public static void resetOldestGeneration()
public static void resetYoungestGeneration()
public Subtext getSubtext()
public void setSubtext(Subtext aSubtext)
aSubtext - The new Subtext object to be assigned
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||