|
||||||||
| 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, fi |