|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.concord.biologica.ui.PedigreeLevel
An object that manages the contents and layout of a generation in the pedigree view.
Constructor Summary | |
PedigreeLevel()
Creates a new pedigree level. |
Method Summary | |
void |
addFamily(PedigreeFamily aPedigreeFamily)
Add a family to this level. |
void |
addOrganism(PedigreeOrganism aPedigreeOrganism)
Add an organism to this level. |
boolean |
contains(PedigreeFamily aPedigreeFamily)
Does this level contain this pedigreeFamily |
boolean |
contains(PedigreeOrganism aPedigreeOrganism)
Does this level contain this pedigreeOrganism? Looks within families and at stand-alone organisms. |
boolean |
containsOrganism(Organism anOrganism)
Does this level contain this organism? Looks within families and at stand-alone organisms. |
PedigreeFamily |
findPedigreeFamily(Family aFamily)
Find the PedigreeFamily at this level given the Family |
PedigreeOrganism |
findPedigreeOrganism(Organism anOrganism)
Find the Pedigree Organism at this level given the Organism |
int |
getHeight()
Get our height. |
java.awt.Point |
getLocation()
Get our location. |
int |
getNumberOfFamilies()
Get the number of families at this level. |
int |
getNumberOfOrganisms()
Get the total number of organisms at this level. |
java.util.Enumeration |
getPedigreeObjects()
Get an enumeration of all the PedigreeObjects in this level |
int |
getWidth()
Get our width. |
boolean |
isEmpty()
Is this level empty? True of there are no PedigreeObjects |
void |
paintConnections(java.awt.Graphics g,
PedigreeOrganismView aPedigreeOrganismView,
Trait trait,
int fontHeight,
SelectionSet selectionSet,
SelectionSet highlightSet)
Paint the level's connections given PedigreeOrganismView. |
void |
paintOrganisms(java.awt.Graphics g,
PedigreeOrganismView aPedigreeOrganismView,
Trait trait,
int fontHeight,
SelectionSet selectionSet,
SelectionSet highlightSet)
Paint the level's PedigreeOrganisms given PedigreeOrganismView. |
void |
placeConnections()
Place the connections at this level. |
java.awt.Dimension |
placeFamilies(java.awt.Dimension bounds)
Place all the families at this level. |
void |
removeAll()
Remove everything from this level |
boolean |
removeFamily(PedigreeFamily aPedigreeFamily)
Remove a family from this level. |
boolean |
removeObject(PedigreeObject aPedigreeObject)
Remove an object from this level. |
boolean |
removeOrganism(PedigreeOrganism aPedigreeOrganism)
Remove an organism from this level. |
void |
translate(int x,
int y)
Translate the level by the given amount. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PedigreeLevel()
Method Detail |
public java.awt.Point getLocation()
public int getWidth()
public int getHeight()
public java.util.Enumeration getPedigreeObjects()
public boolean isEmpty()
public void addOrganism(PedigreeOrganism aPedigreeOrganism)
aPedigreeOrganism
- PedigreeOrganism - an organism to add, may not be nulljava.lang.IllegalArgumentException
- - input organism nullpublic void addFamily(PedigreeFamily aPedigreeFamily)
aPedigreeFamily
- PedigreeFamily - a family to add, may not be nulljava.lang.IllegalArgumentException
- - input family nullpublic boolean removeFamily(PedigreeFamily aPedigreeFamily)
aPedigreeOrganism
- PedigreeOrganism - a family to remove, may not be nulljava.lang.IllegalArgumentException
- - input organism nullpublic boolean removeOrganism(PedigreeOrganism aPedigreeOrganism)
aPedigreeOrganism
- PedigreeOrganism - an organism to remove , may not be nulljava.lang.IllegalArgumentException
- - input organism nullpublic boolean removeObject(PedigreeObject aPedigreeObject)
aPedigreeObject
- PedigreeObject - either an pedigree organism or a pedigree familypublic void removeAll()
public int getNumberOfOrganisms()
public int getNumberOfFamilies()
public boolean contains(PedigreeFamily aPedigreeFamily)
aPedigreeFamily
- PedigreeFamily - the pedigree family to findpublic boolean contains(PedigreeOrganism aPedigreeOrganism)
aPedigreeOrganism
- PedigreeOrganism - the pedigree organism to findpublic boolean containsOrganism(Organism anOrganism)
anOrganism
- Organism - an organismpublic PedigreeFamily findPedigreeFamily(Family aFamily)
aFamily
- Family - the Familypublic PedigreeOrganism findPedigreeOrganism(Organism anOrganism)
anOrganism
- Organism - the Organismpublic void translate(int x, int y)
x
- int - x position to sety
- int - y position to setpublic java.awt.Dimension placeFamilies(java.awt.Dimension bounds)
bounds
- Dimension - dimension (especially width) the level is to be placed within.public void placeConnections()
public void paintConnections(java.awt.Graphics g, PedigreeOrganismView aPedigreeOrganismView, Trait trait, int fontHeight, SelectionSet selectionSet, SelectionSet highlightSet)
The caller of this method must set the foreground and background colors of the Graphics object before calling this method.
g
- Graphics - graphics object to use in paintingpedigreeOrganismView
- PedigreeOrganismView - the pedigree organism viewtrait
- Trait - the trait to show, may be nullfontHeight
- int - the font heightselectionSet
- - the selection setpublic void paintOrganisms(java.awt.Graphics g, PedigreeOrganismView aPedigreeOrganismView, Trait trait, int fontHeight, SelectionSet selectionSet, SelectionSet highlightSet)
The caller of this method must set the foreground and background colors of the Graphics object before calling this method.
g
- Graphics - graphics object to use in paintingpedigreeOrganismView
- PedigreeOrganismView - the pedigree organism viewtrait
- Trait - the trait to show, may be nullfontHeight
- int - the font heightselectionSet
- - the selection sethighlightSet
- - the highlight set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |