|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.objex.panywhere.Pedigree
public class Pedigree
The Pedigree class defines all the API methods and algorithms for pedigree drawing, making it a fully self contained genogram drawing bean. All you need to do is to add the pedigree to a container and you will be ready to start drawing and manipulating Pedigrees. The Pedigree javabean exposes a multiplicity of API methods that make it easy for programmers to customize the way pedigree drawing is done at a programmatic level. A lot of the customization can also be done at the user level using some of the controls and dialogs that have been provided with the javabean. To live up to its promise as a 100% pure JavaBean that conforms to the JavaBeans specification, the pedigree javabean can be added or installed into any integrated developent environment (IDE) that is JavaBeans aware. In these environments, once installed / added to the IDE's component palette, the API methods become available for use and can even be added onto the code completion databases of most IDE's to help the programmer with using the available methods. Environments that are ActiveX compatible can use the Pedigree bean by integrating it with the JavaBeans-ActiveX Bridge from Sun MicroSystems. The Pedigree javabean is also extensible and hence can be extended and some of its methods overidden. If overiding is done, it is important not to override the paintComponent() method because that will basically mean they will be re-writing the drawing capabilities from scratch instead of leveraging Progreny's proven Pedigree drawing algorithms. It is important to note that the javabean must of necessity be added to a scrollable container like JScrollPane or its equivalents in other environments, to allow the canvas to grow beyond the initial preferred size while providing a window to view parts of a large Pedigree in a scrollable window. A typical use of the Pedigree class is shown below :- Instantiate the Pedigree Bean thus :- Pedigree ped = new Pedigree(); Create a scroller with the newly created Pedigree bean as the view thus :- JScrollPane jsp = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); jsp.getViewport.setView(ped); The Pedigree bean makes use of a Individual painter called IndividualRenderer, a SymbolRenderer class for painting Individual Symbol views. You may extend each of the Rendering classes to customize the way the Individual Icons and Symbols are rendered on the Pediree canvas. We do not recommend for you to do that as it basically means that you lose the ability to leverage the algorithms that we have implemented in the rendering of Pedigrees but it is perfectly possible. For instance to create one's own custom IndividualRenderer, you create a subclass of IndividualRenderer (called CustomRenderer) and overide the render() methods. You would then need to inform the Pedigree bean that you are using a custom renderer/painter for Individuals by executing the method Pedigree.setIndividualRenderer(CustomRenderer).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
ALLELE_TEXT_ICON_GAP
The amount of space between the Allele icon and the left or right edge of the Allele text Textlayout object |
static int |
ALLELE_TEXT_OFFSET
The amount of space between the center of the Individual's icon and the Allele text on either side of the Individual parentage. |
static boolean |
DEBUG
|
static int |
PEDIGREE_MODE_VIEWANDMODIFY
The default pedigree mode in which all of the operations on the Pedigree and/or Individual properties are allowed |
static int |
PEDIGREE_MODE_VIEWONLY
The pedigree mode in which most of the operations on the Pedigree and/or Individual properties may not be changed. |
static java.lang.String |
PROBAND_LOWER_LEFT
|
static java.lang.String |
PROBAND_LOWER_RIGHT
|
static java.lang.String |
PROBAND_UPPER_LEFT
|
static java.lang.String |
PROBAND_UPPER_RIGHT
|
static int |
SUBTEXT_SIBLING_LINE_GAP
The gap between the last subtext line or marker for Individuals in one generation and the sibling line position of the Individuals in the next generation |
static int |
SUBTEXTLEGEND_GAP
The gap between the leftmost Individual in a generation and the SubtextLegend if any is shown |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface com.objex.panywhere.RelationshipConstants |
|---|
BROTHER, DAUGHTER, FATHER, FEMALE_GENDER, MALE_GENDER, MOTHER, SISTER, SON, SPOUSE, TWINBROTHER, TWINSISTER, UNKNOWN_GENDER |
| Fields inherited from interface java.awt.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
Pedigree()
No Argument Constructor to create new Pedigree instance. |
|
Pedigree(java.util.Locale aLocale)
|
|
| Method Summary | |
|---|---|
Individual |
addChild(java.lang.String as_parentid,
java.lang.String as_relationship,
boolean deceased)
Add a child to an existing parent object Also check if the parent to whom the child is being added has a lSpouse in which case the child/parent indexes for the lSpouse have to updated |
void |
addDimensionsListener(com.objex.panywhere.DimensionsListener listener)
Allows users of Pedigree Java Bean to registser for Dimensions Change Events. |
void |
addIconClickListener(IconClickListener listener)
Allows users of Pedigree Java Bean to registser for Icon Click Events. |
void |
addImageListener(ImageListener listener)
Allows users of Pedigree Java Bean to registser for Pedigree Image Events. |
void |
addImportListener(ImportListener listener)
Allows users of Pedigree Java Bean to de-registser for Pedigree Import Events. |
void |
addLineClickListener(LineClickListener listener)
Allows users of Pedigree Java Bean to registser for Line Click Events. |
Individual |
addParent(java.lang.String as_childid,
java.lang.String as_relationship,
boolean deceased)
Add a parent to an existing child. |
void |
addPedigreePrintListener(PedigreePrintListener listener)
Allows users of Pedigree Java Bean to registser for Pedigree Printing Events. |
void |
addPerson(java.lang.String as_personid,
java.lang.String as_relationship,
boolean deceased)
Adds an Individual to the pedigree by specifying the (UPN) of the Individual to be added and the relationship of the new Individual to the existing Individual. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener lstnr)
Enables Pedigree to add / register for and receieve property change events |
java.lang.String |
addSibling(java.lang.String as_sibling,
java.lang.String as_relationship,
boolean deceased)
Add a brother or sister to an existing Individual. |
java.lang.String |
addSpouse(Individual aSpouse,
boolean deceased)
Add a lSpouse to an existing Individual. |
void |
addToFamily(Individual aPerson)
Add Individual passed as parameter to the family. |
Individual |
addTwin(Individual to_sibling,
java.lang.String as_relationship,
boolean deceased)
Add a twin brother or twin sister to an existing Individual. |
java.lang.String |
addUnconnected(java.lang.String gender,
boolean deceased,
double x,
double y)
Add an unconnected Individual to the Pedigree. |
java.lang.String |
addUnconnected(java.lang.String upn,
java.lang.String gender,
boolean deceased,
double x,
double y)
Add an Unconnected Individual to the Pedigree. |
void |
clearHighlights()
Clear any highlighted individuals and/or relationship lines. |
void |
clearPedigree()
Clears the Pedigree creates a new empty Pedigree with no Individuals. |
void |
clearPrintJobs()
Clears / zaps all print jobs that are currently in the Print Queue and have not yet been seubmitted to the printing subsystem for the platform on which the Bean is being used. |
void |
connectChild(Individual as_parent,
Individual as_child,
boolean liberal)
Used to connect two Individuals who already exist in the Pedigree to one another as child and parent. |
void |
connectParent(Individual as_child,
Individual as_parent,
boolean liberal)
Used to connect two Individuals who already exist in the Pedigree to one another as child and parent. |
boolean |
connectSibling(Individual to_sibling,
Individual new_sibling,
boolean asTwin,
boolean liberal)
Connects two existing individuals to each other as normal siblings or as twins. |
void |
connectSpouse(Individual to_spouse,
Individual aSpouse,
boolean liberal)
Connects individuals existing in a pedigree to become each other's spouses. |
boolean |
copyPedigree()
Copies only the contents of the Pedigree that are strictly required to re-construct a Pedigree in the target system. |
void |
copyWMF()
Copies the current Pedigree into a Windows MetaFile that is then placed in the System clipboard. |
void |
deleteIndividual(Individual aPerson)
Delete an individual from a Pedigree and clears all his/her relationships. |
void |
dispose()
This method is used to do garbage collection on some key objects used by the control. |
void |
exportXML(java.io.File aXMLFile)
Exports current Pedigree data in XML format and writes contents into an output stream specified by "xmlFile". |
void |
finalize()
|
java.lang.String |
findAllele(java.awt.geom.Point2D point)
Finds an Alelle that is located at a location specified by argument "point" |
Individual |
findPerson(java.awt.geom.Point2D point)
Finds an Individual whose Icon's bounding rectangle contains / encloses the point "point", passed as parameter to the method. |
void |
fireDimensionsChanged(com.objex.panywhere.DimensionsEvent evt)
Fires Dimensions Change events for the Pedigree. |
void |
fireFinishedPrinting(PedigreePrintEvent evt)
Fires the finishedPrinting event when the pedigree has been completely submitted to the printer. |
void |
fireIconClicked(IconClickEvent evt)
Fires the iconClicked method implemented by all objects that have registered for IconClickEvent events generated by the Pedigree. |
void |
fireImageFailed(ImageEvent evt)
Fires the imageFailed method implemented by all objects that have registered for ImageEvent events generated by the Pedigree when an image of the pedigree is requested. |
void |
fireImageGenerated(ImageEvent evt)
Fires the imageGenerated method implemented by all objects that have registered for ImageEvent events generated by the Pedigree when an image of the pedigree is requested |
void |
fireImageLoading(ImageEvent evt)
Fires the imageLoading method implemented by all objects that have registered for ImageEvent events generated by the Pedigree when an image of the pedigree is requested |
void |
fireImportAborted(ImportEvent evt)
Fires the importAborted event when the XML import is aborted due to an error |
void |
fireImportFinished(ImportEvent evt)
Fires the importFinished event when the XML import has been completed. |
void |
fireImportTriggered(ImportEvent evt)
Fires the importTriggered method implemented by all objects that have registered for ImportEvent events generated by the Pedigree when a data import into the Pedigree control has been started |
void |
fireIndividualImported(ImportEvent evt)
Fires the individualImported event |
void |
fireLineClicked(LineClickEvent evt)
Fires the lickClicked method implemented by all objects that have registered for LineClick events generated by the Pedigree. |
void |
firePagePrinted(PedigreePrintEvent evt)
Fires the pagePrinted event when a pedigree page has been printed successfuly. |
void |
firePreparsingImportFile(ImportEvent evt)
Fires the preparsing import event |
void |
firePrintingAborted(PedigreePrintEvent evt)
Fires the printingAborted event when a pedigree print job has been aborted |
void |
firePrintingTriggered(PedigreePrintEvent evt)
Fires the printingTriggered event when a print job has been submitted to the Progeny Anywhere system |
void |
fitPedigreeToPage(boolean showDialog)
Forces the current pedigree to be printed on a sringle page given the current page and paper settings or one chosen by user. |
void |
fitPedigreeToScreen()
This method allows the developer to set the scale of the current pedigree such that the whole pedigree would fit to the current viewport. |
double |
getAlleleDisplayWidth()
|
protected java.lang.String |
getBeanfontname()
Getter for property beanfontname. |
double |
getChildlineheight()
Gets and returns the length of the child line for this Pedigree. |
int |
getCount()
|
java.util.Date |
getCreationDate()
Gets the date on which the Pedigree was created |
DataDictionary |
getDatadictionary()
Getter for property datadictionary. |
java.util.Locale |
getDefLocale()
|
static double |
getDepthoffset()
Retrieves and returns the amount by which child and/or sibling bars (lines connecting) siblings are to be offset by where more than one of these may be intersecting and colinear with sibling lines of other sibling groups. |
Family |
getFamily()
|
java.lang.String |
getFooter()
|
double |
getGenerationoffset()
|
java.lang.String |
getHeader()
|
java.util.Stack<Individual> |
getHighlightedindividuals()
Retrieves and returns a stacked list of highlighted / selected Individuals. |
java.lang.String |
getHomeDirectory()
|
int |
getHorizontalgridspacing()
Retrieves the Horizontal grid spacing specified for this Pedigree |
double |
getIconheight()
|
java.awt.Font |
getIconsubtextfont()
|
double |
getIconwidth()
|
java.awt.image.BufferedImage |
getImage()
Deprecated. since ver2.0 |
void |
getImage(java.awt.image.BufferedImage[] lBilImage)
Generate an image and store it in the supplied one element Array. |
double |
getImageZoomFactor()
Returns the current value for the largest image size zoom factor. |
double |
getIndividualoffset()
Returns the amount of space between one Individual and the next Individual within the same generation in the increasing X-direction. |
IndividualRenderer |
getIndividualRenderer()
Getter for property individualRenderer. |
java.awt.geom.Point2D |
getLastMouseLocation()
Returns the lastest location of a mouse click. |
Legend |
getLegend()
Gets the current Pedigree's Legend items |
float |
getLinewidth()
Retrieves the line width used for drawing Pedigree objects |
double |
getMarkerDisplayHeight()
|
double |
getMarkerDisplayWidth()
|
double |
getMinX()
Returns the minimum X coordinate on which the left-most Individual's Icon is placed placed. |
double |
getMinY()
Returns the minimum Y coordinate on which the top most Individual's Icon can be placed. |
int |
getOldestGeneration()
Returns the generation of the Individual(s) that are at the highest level in the family tree. |
double |
getPedigreescale()
|
java.lang.String |
getPreferredLAF(java.lang.String def)
This static method, which can be used before the Pedigree object is created, is used to retrieve the preferred look and feel that the user has set in their preferences. |
java.awt.Dimension |
getPreferredScrollableViewportSize()
|
java.lang.String |
getProbandArrowPos()
|
double |
getScaleX()
Returns the current drawing scale in the X-direction. |
double |
getScaleY()
Returns the current drawing scale in the Y-direction. |
int |
getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
|
boolean |
getScrollableTracksViewportHeight()
|
boolean |
getScrollableTracksViewportWidth()
|
int |
getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
A JScrollPane object will use this method to determine the number of pixels to move this component by when scrolling with a viewport. |
java.lang.String |
getSelectedIndividuals()
Gets a UPN list of all highlited individuals. |
SubtextLegend |
getSubtextLegend()
|
double |
getSubtextyvalue()
Retrieves the relative positioning of the Icon subtext. |
javax.swing.JToolBar |
getToolBar()
Creates and/or gets a tool bar object that contains the common functions or actions buttons for the pedigree. |
java.lang.String |
getUPNFromTag(java.lang.String tag)
Returns The UPN of an Individual whose tag or external key is specified |
int |
getVerticalgridspacing()
Retrieves the Vertical grid spacing specified for this Pedigree |
java.lang.String |
getXMLString()
Generates an XML string from the current Pedigree data and returns a String whose contents are the XML data. |
java.lang.String |
getXMLString(boolean includeSubtext)
Generates an XML string from the current Pedigree data and returns a String whose contents are the XML data. |
int |
getYoungestGeneration()
Returns the generation of the Individual(s) that are at the lowest level in the pedigree. |
boolean |
highlightIndividuals(java.awt.geom.Rectangle2D boundingRec)
Highlights those individuals whose Icons are wholy contained within a rectangular region defined by the rectangle boundingRec. |
void |
highlightPerson(Individual aPerson)
Sets the Individual "aPerson"'s highlighted status to true. |
Individual |
highlightPerson(Individual aPerson,
java.awt.Graphics2D g2d)
Deprecated. Sets the Individual "aPerson"'s highlighted status to true. The next time the Pedigree is painted this Individual's icon will be drawn highlighted |
Individual |
highlightPerson(Individual as_person,
java.awt.Graphics2D g2d,
boolean showarrow)
Deprecated. Sets the Individual "aPerson"'s highlighted status to true. The next time the Pedigree is painted this Individual's icon will be drawn highlighted |
void |
highlightRelatives(Individual ind,
int degree,
java.awt.Graphics2D g2d)
Highlights all the relatives of this Individual depending on degree of relation chosen. |
void |
highlightRelatives(java.lang.String as_upn,
int degree,
java.awt.Graphics2D g2d)
Highlights all the relatives of this Individual depending on degree of relation chosen. |
void |
importDelimited(java.io.File file,
java.lang.String delimiter,
int[] fields)
Method for importing character delimited text file of Individual data that forms a pedigree. |
void |
importXML(java.io.File xmlFile)
Import data from an XML input stream (File or string )and constructs a Pedigree from the imported data.Smart draw follows the completion of the import. |
void |
importXML(java.lang.String xmlFileName)
Imports data from an XML input stream from the file specified by "xmlFileName" and constructs a Pedigree from the imported data. |
void |
importXMLString(java.lang.String xmlString)
Imports data from a supplied XML String and parses that String to construct a Pedigree. |
boolean |
isAutodraw()
Returns the current value of the autodraw property. |
boolean |
isChanged()
Currently NOT USED |
boolean |
isChangeverticalpos()
Not ussed |
boolean |
isImportShadow()
Currently NOT USED |
boolean |
isLivedragging()
|
boolean |
isMatchspouses()
|
boolean |
isOneclickadd()
Gets the value of the “one click add”. |
boolean |
isOpaque()
Force the component's opaque property to true by always returning a value of true |
static boolean |
isPopupEnabled()
Gets property or flag that enables the popup menus to be shown or hidden. |
boolean |
isPulllonerelatives()
Getter for property "pulllonerelatives". |
boolean |
isRecalculatepos()
Not used |
boolean |
isShowblueid()
|
boolean |
isShowDate()
|
boolean |
isShowfooter()
|
boolean |
isShowgrid()
|
boolean |
isShowhaplotypes()
|
boolean |
isShowheader()
|
boolean |
isShowhooks()
Determines whether hooks should be shown or hidden as speciffied by the showhooks property |
boolean |
isShowlegend()
Returns the current value of the property showlegend. |
boolean |
isShowpagebreaks()
|
boolean |
isShowSubtextLegend()
|
boolean |
isSnaptogrid()
|
boolean |
isUseStandardProbandArrow()
|
void |
moveToIndividual(Individual aPerson)
Scrolls the Pedigree viewport to the specified Individual if the Individual is not within view already. |
void |
paintComponent(java.awt.Graphics g)
Custom paint method draws Pedigree objects on the canvas each time a call is issued to the painting engine. |
boolean |
pastePedigree()
Pastes the contents of the clipBoard onto the Pedigree if indeed the data in the clipBoard matches that which is expected in the Control. |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int ai_page)
Called by the printing susbsystem to render a page of Pedigree data on a printer device. |
void |
printPedigree(boolean showDialog)
Print the current pedigree. |
void |
readPedigree(java.io.File iFile)
Reads the saved state of a Pedigree from XML stream encapsulated in a file passed as parameter to the method. |
void |
removeDimensionsListener(com.objex.panywhere.DimensionsListener listener)
Allows users of Pedigree Java Bean to de-registser Dimensions Change Events listeners |
void |
removeIconClickListener(IconClickListener listener)
Allows users of Pedigree Java Bean to de-registser Icon Cick Events. |
void |
removeImageListener(ImageListener listener)
Allows users of Pedigree Java Bean to de-register Pedigree Image Events. |
void |
removeImportListener(ImportListener listener)
Allows users of Pedigree Java Bean to register Pedigree Import Events. |
void |
removeLineClickListener(LineClickListener listener)
Allows users of Pedigree Java Bean to de-registser Line Cick Event listeners. |
void |
removePedigreePrintListener(PedigreePrintListener listener)
Use this method to add a pedigree print listener if you wish to be informed of the progress in the pedigree printing process. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener lstnr)
Enables Pedigree to remove property change events listeners and stop receiving property change events |
void |
reverseSelect()
Un-highlights all the Individuals who may be highlighted and highlights those that are not highlighted. |
void |
saveImage(java.lang.String format)
This function saves the pedigree that the control currently holds to image format specified. |
void |
saveImageAsStream(java.lang.String format,
java.io.OutputStream out)
This function saves the pedigree that the control currently holds to image format specified. |
void |
savePedigree(java.io.File oFile)
Writes the current Pedigree state to an XML Stream encapsulated in file passed as paramener. |
void |
setAlleleDisplayWidth(double aWidth)
Sets the maximum width about which to justify Allele text. |
void |
setAutodraw(boolean rhs)
Set the autodraw option to on or off. |
protected void |
setBeanfontname(java.lang.String beanfontname)
Setter for property beanfontname. |
void |
setChanged(boolean value)
Currently NOT USED |
void |
setChangeverticalpos(boolean changevertical)
Not ussed |
void |
setChildlineheight(double clh)
Sets the value of childlineheight to a new value. |
static void |
setClientContactInfo(java.lang.String rhs)
Use this function to change the default contact information for problems with the JavaBean. |
void |
setCreationDate(java.util.Date d)
Sets the date on which the Pedigree was created |
void |
setDatadictionary(DataDictionary rhs)
Setter for property datadictionary. |
void |
setFamily(Family fam)
Sets the current family to specified value. |
void |
setFooter(java.lang.String rhs)
This function sets the text for the footer. |
void |
setGenerationoffset(double rhs)
Sets the gap/distance between one generation and the next. |
void |
setGenerations(Individual ind)
This method traverses a family tree in which Individual "ind" is a member and sets the generations of Individuals appropriately. |
void |
setHeader(java.lang.String rhs)
This function sets the text for the header. |
void |
setHideControlProgressMonitors(boolean ab_hide)
Use this method to hide all the progress dialogs that come implemented by the Progeny Anywhere control. |
void |
setHorizontalgridspacing(int gspace)
Set the space between horizontal points on the grid. |
void |
setHorizontalgridspacing(java.lang.String gspace)
Set the space between horizontal points on the grid. |
void |
setIconheight(double height)
Sets the height of the Icon that represents an Individual in a Pedigree. |
void |
setIconsubtextfont(java.awt.Font font)
Sets the font for the icon subtext. |
void |
setIconwidth(double width)
Sets the value of the current Icon width. |
void |
setImageZoomFactor(double rhs)
Sets a new value for the largest image size zoom factor. |
void |
setImportShadow(boolean rhs)
Currently NOT USED |
void |
setIndividualoffset(double rhs)
This function modifies the way SmartDraw operates by changing the amount of space between one Individual and the next Individual within the same generation in the increasing X-direction. |
void |
setIndividualRenderer(IndividualRenderer individualRenderer)
Setter for property individualRenderer. |
void |
setLegend(Legend legend)
Sets the legend property for this Pedigree. |
void |
setLinewidth(float lwidth)
Sets the linewidth property value |
void |
setLinewidth(java.lang.String lwidth)
Sets the linewidth property value. |
void |
setLivedragging(boolean value)
Sets the "livedragging" property to true or on. |
void |
setMarkerDisplayHeight(double aHeight)
|
void |
setMarkerDisplayWidth(double aWidth)
Sets the display width of each marker in a haplotype bar |
void |
setMatchspouses(boolean match)
Sets or unsets the flag indicating whether or not the spouses must be kept close together. |
void |
setMenuDelay(int rhs)
Sets the user prefences for the Menu Transition Delay. |
void |
setMinX(double min)
Sets the minimum X coordinate on which the left-most Individual's Icon is placed placed. |
void |
setMinY(double min)
Sets the minimum Y coordinate on which the top most Individual's Icon can be placed. |
void |
setNextTreeID(int treeid)
Sets the next available TREEID for use in creating an new Family |
void |
setNextupn(int n)
Sets the supplied parameter as the Pedigree's next UPN. |
void |
setOneclickadd(boolean value)
Set the “one click add” option to on or off. |
void |
setPedigreescale(double scale)
Sets the drawing scale for the Pedigree the supplied value. |
void |
setPedigreeSize(java.awt.Dimension size)
Change the dimensions of the Pedigree canvas. |
void |
setPedigreeViewMode(int ai_mode)
Set the pedigree mode to one of Pedigree.VIEW_AND_CHANGE_MODE or Pedigree.VIEWONLY_MODE depending on the value of the parameter ab_viewonly. |
static void |
setPopupEnabled(boolean rhs)
Sets or unsets the property or flag that enables the popup menus to be shown or hidden. |
void |
setProbandArrowPos(java.lang.String as_pos)
Sets the position where the proband arrow must be drawn. |
void |
setPulllonerelatives(boolean rhs)
Sets the new value of property "pulllonerelatives". |
void |
setRecalculatepos(boolean recalc)
Not used |
void |
setScale(double scalex,
double scaley)
Sets the drawing scale in the both the X and Y direction to the value supplied. |
void |
setScaleHeader(boolean ab_scale)
|
void |
setShowblueid(boolean showid)
Set the blue ID number to visible or invisible for all the individuals in the pedigree. |
void |
setShowDate(boolean showdate)
Flag indicating whether or not to show the date in the top left corner of the pedigree. |
void |
setShowfooter(boolean show)
Sets or unsets the flag indicating whether or not to show the footer at the bottom of every page |
void |
setShowgrid(boolean value)
Sets or unsets the flag indicating whether or not grids must be displayed on the Pedigree. |
void |
setShowhaplotypes(boolean ab_showhap)
Sets the property showhaplotypes to specified value. |
void |
setShowheader(boolean show)
Sets or unsets the flag indicating whether or not to show the header at the top of every page |
void |
setShowhooks(boolean showhooks)
Set or unsets the flag proprty for shwoing hooks. |
void |
setShowlegend(boolean value)
Turns the display of the legend on or off. |
void |
setShowpagebreaks(boolean value)
When the control is first initialized, it examines the default printer and determines the page size. |
void |
setShowSubtextLegend(boolean rhs)
Set the new value for whether or not subtext legend must be shown |
void |
setSnaptogrid(boolean value)
Sets "snaptogrid" property to true or false depending on the value passed. |
void |
setSubtextLegend(SubtextLegend aLegend)
Sets a new subtext legend for this Pedigree viewer |
void |
setSubtextyvalue(double yvalue)
Sets the relative positioning of the Icon subtext. |
void |
setSymbolsBasedOnData(boolean ab_basedondata)
Set this property to TRUE if you wish to calculate the eligibility of each Symbol setting based on the Data that is held by the Individual of which that Symbol is a property. |
void |
setUseStandardProbandArrow(boolean ab_UseStandardProbandArrow)
Sets a new value for property "useStandardProbandArrow" which determines what type of proband indicator will be drawn |
void |
setVerticalgridspacing(int gspace)
Set the space between vertical points on the grid. |
void |
setVerticalgridspacing(java.lang.String gspace)
Set the space between vertical points on the grid. |
void |
showAll()
Highlights all individuals in the Pedigree. |
void |
showAncestorPath(Individual ind)
Highlights all the ancestors of the specified individual -- showing the path from this individual to the top most ancestors. |
void |
showAncestorPath(Individual ind,
int degree)
Shows and highlights the specified Individual's ancestors at the degree of relation specified |
void |
showChildren(Individual ind)
Highlights the Individual "ind's" kids |
void |
showDescendantsPath(Individual ind)
Highlight all Descendants of Individual "ind" |
void |
showDescendantsPath(Individual ind,
int degree)
Highlights all the descendants of the spciefied individual -- showing the path from this individual to all his / her descendants. |
void |
showLegendDialog(boolean show)
Creates and /or displays the Legend Dialog dialog box |
void |
showPaletteDialog(boolean show)
Creates and /or displays the Palette dialog box |
void |
showParents(Individual ind)
Highlights the Individual "ind's" parents |
void |
showPropertiesDialog(boolean show)
Creates and/or displays the properties dialog box |
void |
showSiblings(Individual ind)
Highlights the Individual "ind's" siblings |
void |
showSpouses(Individual ind)
Highlights the Individual "ind's" spouses |
void |
showUncles(Individual ind)
Highlights all the relatives of this Individual depending on degree of relation chosen. |
void |
smartDraw()
This method excutes the drawing algorithm that calculates the most appropriate positions for each Individual in the Pedigree. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SUBTEXT_SIBLING_LINE_GAP
public static final java.lang.String PROBAND_UPPER_LEFT
public static final java.lang.String PROBAND_LOWER_LEFT
public static final java.lang.String PROBAND_LOWER_RIGHT
public static final java.lang.String PROBAND_UPPER_RIGHT
public static final int SUBTEXTLEGEND_GAP
public static final int ALLELE_TEXT_OFFSET
public static final int ALLELE_TEXT_ICON_GAP
public static final int PEDIGREE_MODE_VIEWONLY
public static final int PEDIGREE_MODE_VIEWANDMODIFY
public static boolean DEBUG
| Constructor Detail |
|---|
public Pedigree()
throws java.lang.Exception
java.lang.Exception - If there was an error instantiating a Pedigree instance. In applet envronment, this will typically
be due to the browser's security manager throwing security or access control errors exceptions.
public Pedigree(java.util.Locale aLocale)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public static void setClientContactInfo(java.lang.String rhs)
rhs - The client contact informationpublic double getAlleleDisplayWidth()
public void setAlleleDisplayWidth(double aWidth)
aWidth - public double getMarkerDisplayHeight()
public void setMarkerDisplayHeight(double aHeight)
aHeight - The new heightpublic double getMarkerDisplayWidth()
public void setMarkerDisplayWidth(double aWidth)
aWidth - The new widthpublic void setProbandArrowPos(java.lang.String as_pos)
as_pos - The new position. Possible values are
Pedigree.PROBAND_UPPER_LEFT
Pedigree.PROBAND_LOWER_LEFT
Pedigree.PROBAND_LOWER_RIGHT
Pedigree.PROBAND_UPPER_RIGHTpublic java.lang.String getProbandArrowPos()
public boolean isUseStandardProbandArrow()
public void setUseStandardProbandArrow(boolean ab_UseStandardProbandArrow)
ab_UseStandardProbandArrow - The new value for the property "useStandardProbandArrow"public void setPedigreeViewMode(int ai_mode)
ai_mode - The new mode for the Progeny Anywhere control. Possible values are Pedigree.PEDIGREE_MODE_VIEWONLY and Pedigree.PEDIGREE_MODE_MODIFYpublic boolean isShowSubtextLegend()
public void setShowSubtextLegend(boolean rhs)
public void setSymbolsBasedOnData(boolean ab_basedondata)
public SubtextLegend getSubtextLegend()
public void setSubtextLegend(SubtextLegend aLegend)
aLegend - The new subtext legendpublic void setHideControlProgressMonitors(boolean ab_hide)
ab_hide - If TRUE then the progress dialogs implemented by this control will not be shown otherwise they will be shownpublic java.util.Locale getDefLocale()
public void setScaleHeader(boolean ab_scale)
ab_scale - If true, the header and footer of the pedigree will be scaled along with the rest of the objects in the pedigree otherwise it is not scaled when the method setScale(sx, sy) is
applied on the pedigreepublic void setPedigreescale(double scale)
scale - A double value is the drawing scale for this Pedigreepublic double getPedigreescale()
public void setHeader(java.lang.String rhs)
rhs - The text to set header topublic java.lang.String getHeader()
public void setFooter(java.lang.String rhs)
rhs - The text to set footer topublic java.lang.String getFooter()
public void setLinewidth(float lwidth)
lwidth - The line width specified as a floating point decimalpublic void setLinewidth(java.lang.String lwidth)
lwidth - The line width specified as a stringpublic float getLinewidth()
public void setHorizontalgridspacing(int gspace)
gspace - The amount of space between stops on the horizontal grid specified as an integer valuepublic void setHorizontalgridspacing(java.lang.String gspace)
gspace - The amount of space between stops on the horizontal grid specified as a stringpublic void setVerticalgridspacing(java.lang.String gspace)
gspace - The amount of space between stops on the vertical grid speciefied as a string valuepublic void setVerticalgridspacing(int gspace)
gspace - The amount of space between stops on the vertical grid speciefied as an Integer valuepublic int getVerticalgridspacing()
public int getHorizontalgridspacing()
public void setShowhooks(boolean showhooks)
showhooks - Boolean value indicating whethere or not to show hookspublic boolean isShowhooks()
public void setShowblueid(boolean showid)
showid - True if no is to be shown, false otherwisepublic boolean isShowblueid()
public void setShowDate(boolean showdate)
showdate - True if date is to be shown , false otherwisepublic boolean isShowDate()
public void setMatchspouses(boolean match)
match - True if spouses are to be kept close to each other, false otherwisepublic boolean isMatchspouses()
public void setChangeverticalpos(boolean changevertical)
public boolean isChangeverticalpos()
public void setPulllonerelatives(boolean rhs)
public boolean isPulllonerelatives()
public void setRecalculatepos(boolean recalc)
public boolean isRecalculatepos()
public void setIconsubtextfont(java.awt.Font font)
font - The font to be used in drawing Icon subtextpublic java.awt.Font getIconsubtextfont()
public boolean isOpaque()
isOpaque in class javax.swing.JComponentpublic void setPedigreeSize(java.awt.Dimension size)
size - The new Dimension representing the size to which the the pedigree must be setpublic java.lang.String getPreferredLAF(java.lang.String def)
def - The default look and feel. This can be used to set the desired LAF.
public void setMenuDelay(int rhs)
throws java.lang.SecurityException,
java.lang.NullPointerException
rhs - The new value for the menu transition delay
java.lang.SecurityException
java.lang.NullPointerExceptionpublic java.lang.String getHomeDirectory()
public void addDimensionsListener(com.objex.panywhere.DimensionsListener listener)
public void removeDimensionsListener(com.objex.panywhere.DimensionsListener listener)
public void fireDimensionsChanged(com.objex.panywhere.DimensionsEvent evt)
evt - The LineClickEventpublic void addLineClickListener(LineClickListener listener)
public void removeLineClickListener(LineClickListener listener)
public void fireLineClicked(LineClickEvent evt)
evt - The LineClickEventpublic void addImageListener(ImageListener listener)
public void removeImageListener(ImageListener listener)
public void fireImageGenerated(ImageEvent evt)
evt - The Image Eventpublic void fireImageFailed(ImageEvent evt)
evt - The Image Eventpublic void fireImageLoading(ImageEvent evt)
evt - The Image Eventpublic void addPedigreePrintListener(PedigreePrintListener listener)
public void removePedigreePrintListener(PedigreePrintListener listener)
public void firePrintingTriggered(PedigreePrintEvent evt)
evt - The Printing Eventpublic void fireFinishedPrinting(PedigreePrintEvent evt)
evt - The Printing Eventpublic void firePrintingAborted(PedigreePrintEvent evt)
evt - The Printing Eventpublic void firePagePrinted(PedigreePrintEvent evt)
evt - The Printing Eventpublic void addImportListener(ImportListener listener)
public void removeImportListener(ImportListener listener)
public void fireImportTriggered(ImportEvent evt)
evt - The Import Eventpublic void fireImportFinished(ImportEvent evt)
evt - The Import Eventpublic void fireImportAborted(ImportEvent evt)
evt - The Import Eventpublic void fireIndividualImported(ImportEvent evt)
evt - The Import Eventpublic void firePreparsingImportFile(ImportEvent evt)
evt - The Import Eventpublic void addIconClickListener(IconClickListener listener)
public void removeIconClickListener(IconClickListener listener)
public void fireIconClicked(IconClickEvent evt)
evt - The Icon Click Event
public void savePedigree(java.io.File oFile)
throws java.lang.SecurityException,
java.lang.Exception
oFile - The output file object
java.lang.SecurityException - If the user or application (applet) does not have the requisite permissions
to read and/or write to the file system
java.lang.Exception - If the save operation fails.
public void readPedigree(java.io.File iFile)
throws java.lang.SecurityException,
java.security.AccessControlException,
org.xml.sax.SAXException,
java.io.IOException,
java.lang.Exception
iFile - The input file
java.lang.SecurityException - If the user or application (applet) does not have the requisite permissions
to read and/or write to the file system
java.lang.Exception - If the file cannot be read or opened
java.security.AccessControlException
org.xml.sax.SAXException
java.io.IOExceptionpublic static void setPopupEnabled(boolean rhs)
rhs - The new value. True or Falsepublic static boolean isPopupEnabled()
public void clearPrintJobs()
public void setFamily(Family fam)
fam - The new family objectpublic Family getFamily()
public void moveToIndividual(Individual aPerson)
throws java.lang.NullPointerException
aPerson - The Individual to be brought into view
java.lang.NullPointerException - If the parameter passed is null or does not existpublic void setLegend(Legend legend)
legend - The new Legend objectpublic Legend getLegend()
public void setCreationDate(java.util.Date d)
d - The new date objectpublic java.util.Date getCreationDate()
public double getChildlineheight()
public void setChildlineheight(double clh)
public void setSubtextyvalue(double yvalue)
yvalue - A double represeting the offset, measured from the icon top left corner.public double getSubtextyvalue()
public static double getDepthoffset()
public void fitPedigreeToPage(boolean showDialog)
showDialog - If true, a page format dialog will be displayed to allow user to choose
the most appropriate page settings, otherwise no dialog will be displayed
forcing the system to fit pedigree to page defined by current page settingspublic double getMinX()
public void setMinY(double min)
min - The new value for "minimumY" propertypublic void setMinX(double min)
min - The new value for "minimumX" propertypublic double getMinY()
public java.awt.geom.Point2D getLastMouseLocation()
public void setNextupn(int n)
n - The next UPNpublic void setNextTreeID(int treeid)
public void addPropertyChangeListener(java.beans.PropertyChangeListener lstnr)
addPropertyChangeListener in class java.awt.Containerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener lstnr)
removePropertyChangeListener in class java.awt.Component
public void setScale(double scalex,
double scaley)
scaley - The new scaling factor in the Y directionscalex - The new scaling factor in the X directionpublic double getScaleX()
public double getScaleY()
public void setShowfooter(boolean show)
show - The new flag. A value of True will set the flag, false will unset the flag.public boolean isShowfooter()
public void setShowheader(boolean show)
show - The new flag. A value of True will set the flag, false will unset the flag.public boolean isShowheader()
public void setShowhaplotypes(boolean ab_showhap)
ab_showhap - The new value for property showhaplotypespublic boolean isShowhaplotypes()
public void setAutodraw(boolean rhs)
rhs - Boolean indicating whether or not to autodraw.public boolean isAutodraw()
public void setImportShadow(boolean rhs)
public boolean isImportShadow()
public void setShowgrid(boolean value)
value - A new value of the showgrid property. A value of "TRUE" will set it and false will unset the flag.public boolean isChanged()
public void setChanged(boolean value)
public void setOneclickadd(boolean value)
value - New indicator (True to set it on, false to shut it off)public boolean isOneclickadd()
public boolean isShowgrid()
public void setSnaptogrid(boolean value)
value - If true then Icons will be snapped to the closest grid position during drawingpublic boolean isSnaptogrid()
public void setShowpagebreaks(boolean value)
value - The flag indicating whether or not page breaks must be shownpublic boolean isShowpagebreaks()
public void setLivedragging(boolean value)
value - The new indicator (true to set live dragging on, false to set it off)public boolean isLivedragging()
public void setShowlegend(boolean value)
value - The new value (True = off (hide legend) False = on (show legend)public boolean isShowlegend()
public void setIndividualoffset(double rhs)
rhs - The new Individual offsetpublic void setGenerationoffset(double rhs)
rhs - The new Generation Offset / Gap in pixels.public double getGenerationoffset()
public double getIndividualoffset()
public void setIconwidth(double width)
width - The new width of the Iconpublic double getIconwidth()
public void setIconheight(double height)
height - The new height of the Iconpublic double getIconheight()
public void saveImage(java.lang.String format)
throws java.security.AccessControlException
format - The image file format to save to. Can be any one of (png, jpg, gif)
java.security.AccessControlException
public void saveImageAsStream(java.lang.String format,
java.io.OutputStream out)
format - The image file format to save to. Can be any one of (png, jpg, gif)out - The output stream into which you want the image to be written. If this is
a FileOutputStream, then the image will be written into the file making up
the stream.public java.awt.image.BufferedImage getImage()
public void getImage(java.awt.image.BufferedImage[] lBilImage)
lBilImage - A one element array that into which the generated image will be deposited.public double getImageZoomFactor()
public void setImageZoomFactor(double rhs)
rhs - The new image zoom factorpublic void fitPedigreeToScreen()
public void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentpublic void smartDraw()
public java.lang.String findAllele(java.awt.geom.Point2D point)
point - The location at which an Allele Icon or Text are located
public java.lang.String getUPNFromTag(java.lang.String tag)
tag - The tag of this Individual to search for
public javax.swing.JToolBar getToolBar()
public void showPropertiesDialog(boolean show)
show - If true then dialog will be displayed else it will be created without displayingpublic void showPaletteDialog(boolean show)
show - If true then dialog will be displayed else it will be created without displayingpublic void showLegendDialog(boolean show)
show - If true then dialog will be displayed else it will be created without displayingpublic void highlightPerson(Individual aPerson)
aPerson - The Individual to be highlightedpublic int getOldestGeneration()
public int getYoungestGeneration()
public void deleteIndividual(Individual aPerson)
aPerson - The Individual to be deletedpublic void addToFamily(Individual aPerson)
aPerson - The Individual to be added to the Family
public void importDelimited(java.io.File file,
java.lang.String delimiter,
int[] fields)
throws java.security.AccessControlException,
java.lang.SecurityException,
java.lang.Exception
file - The text file from which individuals will be importeddelimiter - The character used as field delimiter in the text file.fields - An Array of integers which maps the different data fields positions in the input file. Each
integer value or array index is a pointer to the position or column number for the field to be
retrieved as specified in the table below. A value of -1 in any array position means that
that field either does not exist in the input file or must be skipped even if it exists. The minimum
size for this array must be six hence the input file may not have less than six data columns. There is
no maximum.
Element Field Type
------- ----------
0 FamilyID
1 Unique Number (UPN)
2 Mother ID
3 Father ID
4 Gender
5 Deceased status
6+ Spouse ID
If any one of these fields does not exist or is to be skipped, a value of -1 must be slotted. aClickvent.g if
there is no familyID field then the element 0 of the fields array must be -1. If an Individual has
three spouses then fields[6], fields[7] and fields[8] will have values other then -1. If the largest
number of spouses is 3 then the fields array will be of length 8. The minimum length of array fields is
six (6) and there is no maximum since the rest of the length depends of number of spouses.
java.lang.Exception - If import fails
java.security.AccessControlException
java.lang.SecurityExceptionpublic void setGenerations(Individual ind)
ind - The individual for whom generations is to be set.
public void addPerson(java.lang.String as_personid,
java.lang.String as_relationship,
boolean deceased)
throws java.lang.Exception
as_personid - The Unique Person Number (UPN) of the Indivdiaul to whom a new relationship is to be addeddeceased - The deceased status of the new Individual to be added. (True = Deceased, False = Alive)as_relationship - The relationship of the Individual being added. It may be any one of :-
RelationshipConstants.MOTHER
RelationshipConstants.FATHER
RelationshipConstants.DAUGHTER
RelationshipConstants.SON
RelationshipConstants.SISTER
RelationshipConstants.BROTHER
RelationshipConstants.TWINSISTER
RelationshipConstants.TWINBROTHER
RelationshipConstants.SPOUSE
java.lang.Exception - If the add operation is unsuccessful. All Exceptions that may be cascaded up from each of
the addXXX methods and rethrown as Exception objects by this method.
public Individual addParent(java.lang.String as_childid,
java.lang.String as_relationship,
boolean deceased)
throws java.lang.Exception
as_childid - The Unique Person Number (UPN) of the childas_relationship - The type of relationship to the parent being added. This can be specified by the
string RelationshipConstants.FATHER or RelationshipConstants.MOTHERdeceased - String indicating whether person is Dead or alive
java.lang.Exception - If the add operation is unsuccessful.
PedigreeException - If any one of the Pedigree rules is violated by this operation.
public java.lang.String addSpouse(Individual aSpouse,
boolean deceased)
throws com.objex.panywhere.PedigreeException,
java.lang.Exception
aSpouse - The Individual to whom a lSpouse is being addeddeceased - The deceased status of the lSpouse being added
java.lang.Exception - If the operation cannot be completed successfully
PedigreeException - If any one of the Pedigree rules is violated by this operation.
public void connectSpouse(Individual to_spouse,
Individual aSpouse,
boolean liberal)
throws com.objex.panywhere.PedigreeException,
java.lang.Exception
to_spouse - The lSpouse from whom the operation was initiated. If this method is being called in response
to a mouse drag gesture, this would be the Individual from whose Icon the mouse was dragged.aSpouse - The lSpouse to whom a connection is being made or the 2nd lSpouseliberal - No relationship checking is done if this paremeter is set to true. This may
be necessary when importing data from an external database or source where exception checking
may result in superfluous error checking.
java.lang.Exception - If operation is unsuccessful
PedigreeException - If any one of the Pedigree rules is violated by this operation.
public void connectChild(Individual as_parent,
Individual as_child,
boolean liberal)
throws com.objex.panywhere.PedigreeException,
java.lang.Exception
as_parent - The parent to whom the child is being connected. If this method is called in response
to a mouse drag gesture, this Individual would be the one from whose Icon the mouse was
dragged.as_child - The Individual to be connected as a child. If this method is called in response
to a mouse drag gesture, this Individual would be the one on whose Icon the mouse was
dropped.liberal - True if no relationship validation is to be done and false otherwise. It may be
important to use liberal when importing data from an external source or database
as the excessive relationship checking during imports may cause unnessary exceptions
to be thrown.
java.lang.Exception - If the connection operation is unsuccessful
PedigreeException - If any one of the Pedigree rules is violated by this operation.
public void connectParent(Individual as_child,
Individual as_parent,
boolean liberal)
throws com.objex.panywhere.PedigreeException,
java.lang.Exception
as_child - The child to whom a parent is being connected. If this method is called in response
to a mouse drag gesture, this Individual would be the one from whose Icon the mouse was
dragged.as_parent - The parent to whom a child is being connected. If this method is called in response
to a mouse drag gesture, this Individual would be the one on whose Icon the mouse was
dropped.liberal - True if no relationship validation is to be done and false otherwise. It may be
important to use liberal when importing data from an external source or database
as the execssive relationship checking during imports may cause unnessary exceptions
to be thrown.
java.lang.Exception - If the connection operation is unsuccessful
PedigreeException - If any one of the Pedigree rules is violated by this operation.
public boolean connectSibling(Individual to_sibling,
Individual new_sibling,
boolean asTwin,
boolean liberal)
throws com.objex.panywhere.PedigreeException,
java.lang.Exception
to_sibling - The sibling from whom the connection operation was initiated. If this method is called in response
to a mouse drag gesture, this Individual would be the one from whose Icon the mouse was
dragged.new_sibling - The sibling to whom a connection is being made. If this method is called in response
to a mouse drag gesture, this Individual would be the one on whose Icon the mouse was
dropped.asTwin - True if the Individuals are to be connected as twins, false otherwiseliberal - True if no relationship validation is to be done and false otherwise. It may be
important to use liberal when importing data from an external source or database
as the execssive relationship checking during imports may cause unnessary exceptions
to be thrown.
java.lang.Exception - If the connection operation is unsuccessful
PedigreeException - If any one of the Pedigree rules is violated by this operation.
public Individual addTwin(Individual to_sibling,
java.lang.String as_relationship,
boolean deceased)
throws java.lang.Exception
to_sibling - The Individual to whom the twin brother or sister is being addedas_relationship - The relationship or sibling being added, sister or brother. This may be any one of :
RelationshipConstants.TWINBROTHER or RelationshipConstants.TWINSISTERdeceased - Whether or not the Individual being added is deceased or alive
java.lang.Exception - If the add operation is unsuccessful
public java.lang.String addSibling(java.lang.String as_sibling,
java.lang.String as_relationship,
boolean deceased)
throws java.lang.Exception
as_sibling - The Individual to whom a new brother or sister is to be addedas_relationship - The relationship of the new sibling to the existing sibling. This may be any one of :
RelationshipConstants.BROTHER or RelationshipConstants.SISTERdeceased - The deceased status of the sibling being added. True means deceased and False means alive
java.lang.Exception - If the add operation is unsuccessful
public Individual addChild(java.lang.String as_parentid,
java.lang.String as_relationship,
boolean deceased)
throws com.objex.panywhere.PedigreeException,
java.lang.Exception
as_parentid - The unique Person Number of the parent to whom a child is to be addedas_relationship - The relationship of the child being added (Daughter / Son). This may be any one of
RelationshipConstants.DAUGHTER or RelationshipConstants.SONdeceased - The deceased status of the child being added
java.lang.Exception - If the add operation is unsuccessful
PedigreeException - If any one of the Pedigree rules is violated by this operation.
public java.lang.String addUnconnected(java.lang.String gender,
boolean deceased,
double x,
double y)
throws java.lang.Exception
gender - The gender of the person being added onto the pedigree. This may be any one of
RelationshipConstants.FEMALE_GENDER, RelationshipConstants.MALE_GENDER or
RelationshipConstants.UNKNOWN_GENDERdeceased - The deceased status (dead or alive)x - The X coordinate where the new Individual is to be locatedy - The Y coordintae where the new Individual is to be located
java.lang.Exception - When the add operation is unsuccessful, an exception is thrown which must be caught by the caller
public java.lang.String addUnconnected(java.lang.String upn,
java.lang.String gender,
boolean deceased,
double x,
double y)
throws java.lang.Exception
upn - The Unique Person Number (UPN) of the new Individualgender - The gender of the person being added onto the pedigree. This may be any one of
RelationshipConstants.FEMALE_GENDER, RelationshipConstants.MALE_GENDER or
RelationshipConstants.UNKNOWN_GENDERdeceased - The deceased status (dead or alive)3x - The X coordinate where the new Individual is to be locatedy - The Y coordintae where the new Individual is to be located
java.lang.Exception - When the add operation is unsuccessful, an exception is thrown which must be caught by the caller
public Individual highlightPerson(Individual aPerson,
java.awt.Graphics2D g2d)
aPerson - The Individual to be highlightedg2d - The graphics context
public Individual highlightPerson(Individual as_person,
java.awt.Graphics2D g2d,
boolean showarrow)
as_person - The Individual to be highlightedg2d - The graphics contextshowarrow - A boolean flag indicating whether or not the arrow
highlighting the ancestral or decendancy path must be shown.public void showParents(Individual ind)
ind - The Individual whose parents are to be highlightedpublic void showSpouses(Individual ind)
ind - The Individual whose spouses are to be highlightedpublic void showSiblings(Individual ind)
ind - The Individual whose siblings are to be highlightedpublic void showChildren(Individual ind)
ind - The Individual whose kids are to be highlighted
public void highlightRelatives(Individual ind,
int degree,
java.awt.Graphics2D g2d)
ind - The Individual whose relatives are to be highlighted.degree - The degree of relation or number of hops from specified Individual to the relative.
A negative value for "degree" means all relatives will be highlightedg2d - The graphics object. May not be nullpublic void showUncles(Individual ind)
ind - The Individual whose relatives are to be highlighted
public void highlightRelatives(java.lang.String as_upn,
int degree,
java.awt.Graphics2D g2d)
as_upn - The (UPN) of the person to be highlighted whose relatives are to be highlighteddegree - The degree of relation or number of hops from IND to the relative.
Negative "degree" value means all relatives will be highlightedg2d - The graphics object. May pass a null value
public void showAncestorPath(Individual ind,
int degree)
ind - Individual for whom ancestors are to be shown or highlighteddegree - The degree of relation to search to aClickvent.g. 3rd degree ancestorspublic void showAncestorPath(Individual ind)
ind - Individual for whom ancestors are to be shown or highlightedpublic void showAll()
public void reverseSelect()
public void showDescendantsPath(Individual ind,
int degree)
ind - Individual for whom ancestors are to be shown or highlighteddegree - The degree of relation to search to aClickvent.g. 3rd degree descendantspublic void showDescendantsPath(Individual ind)
ind - The individual whose descendants must be highlightedpublic boolean highlightIndividuals(java.awt.geom.Rectangle2D boundingRec)
boundingRec - The bounding Rectangle that demarcates the area or region with Individuals that may be highlightedpublic void printPedigree(boolean showDialog)
showDialog - True indicates that dialog must be shown, False indicates “do not show dialog”.
public boolean pastePedigree()
throws java.lang.Exception
java.lang.Exception - if there is a problem accessing the system clipboardpublic void copyWMF()
public boolean copyPedigree()
throws java.lang.Exception
java.lang.Exception - If there is a problem accesing the system clipboard or if the environment
is headless (no graphics) or some other problem occurs that results in an unsuccessfull
attempt.public java.util.Stack<Individual> getHighlightedindividuals()
public java.lang.String getSelectedIndividuals()
public Individual findPerson(java.awt.geom.Point2D point)
point - The location at which an Individual may be located
public void clearHighlights()
public int getCount()
public void clearPedigree()
public java.lang.String getXMLString()
throws java.security.AccessControlException,
java.lang.SecurityException,
java.lang.Exception
java.lang.Exception - If system is unable obtain the XML String from the Pedigree
java.security.AccessControlException
java.lang.SecurityException
public java.lang.String getXMLString(boolean includeSubtext)
throws com.objex.panywhere.PedigreeException
includeSubtext - Flag indiicating whether or not Icon subtext must be included as part of the
exported data.
PedigreeException - If system is unable obtain the XML String from the Pedigree due to a rutntime error
public void exportXML(java.io.File aXMLFile)
throws com.objex.panywhere.PedigreeException
aXMLFile - The xml file handle/object to which data has to be exported. xmlFile may or may
not exist.
PedigreeException - If system is unable to create the xml output file or if the export procedure fails for one reason or another
public void importXML(java.lang.String xmlFileName)
throws com.objex.panywhere.PedigreeException
xmlFileName - The String representing the absoulute pathname of the xml input file to import from.
PedigreeException - If system is unable to create the XML output file or if the export procedure fails for one reason or another
public void importXML(java.io.File xmlFile)
throws com.objex.panywhere.PedigreeException
xmlFile - The XML input file handle / object
PedigreeException - If system is unable to import from the specified XML file
public void importXMLString(java.lang.String xmlString)
throws com.objex.panywhere.PedigreeException
xmlString - The string of XML data representing an XML document contents.
PedigreeException - If system is unable to import from the specified XML string
public int print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int ai_page)
print in interface java.awt.print.Printableg - Graphicspf - Page Formatai_page - The page number to be printed (0 based index)public java.awt.Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize in interface javax.swing.Scrollable
public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
getScrollableBlockIncrement in interface javax.swing.Scrollablepublic boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight in interface javax.swing.Scrollablepublic boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth in interface javax.swing.Scrollable
public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
getScrollableUnitIncrement in interface javax.swing.Scrollablepublic DataDictionary getDatadictionary()
public void setDatadictionary(DataDictionary rhs)
rhs - New value of property datadictionary.protected java.lang.String getBeanfontname()
protected void setBeanfontname(java.lang.String beanfontname)
beanfontname - New value of property beanfontname.public IndividualRenderer getIndividualRenderer()
public void setIndividualRenderer(IndividualRenderer individualRenderer)
individualRenderer - New value of property individualRenderer.public void dispose()
public void finalize()
finalize in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||