|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.concord.biologica.ui.PedigreeObject
An object that manages the state for a graphical object shown in the pedigree view.
Field Summary | |
protected int |
height
The height of the pedigree object as drawn |
protected int |
width
The width of the pedigree object as drawn |
protected int |
xLocation
The X location of the top left corner of object |
protected int |
yLocation
The Y location of the top left corner of the object |
Constructor Summary | |
PedigreeObject()
Default constructor |
Method Summary | |
boolean |
canSqueeze()
Can this object be squeezed? Mainly used for PedigreeFamilies. |
java.awt.Point |
getBottomMidPoint()
Get midpoint along bottom of object . |
int |
getHeight()
Get the height |
int |
getLeftMostParentX()
Get X position of leftmost parent. |
void |
getMinimumMaximum(java.awt.Point aMinPoint,
java.awt.Point aMaxPoint)
Get the minimum and maximum positions |
int |
getRightMostParentX()
Get X position of rightmost parent. |
java.awt.Point |
getTopLeftPoint()
Get the top left point of the pedigree object. |
java.awt.Point |
getTopMidPoint()
Get midpoint along top of object . |
int |
getWidth()
Get the width |
int |
getXLocation()
Get the X location |
int |
getYLocation()
Get the Y location |
abstract void |
paint(java.awt.Graphics g,
PedigreeOrganismView pedigreeOrganismView,
Trait trait,
int fontHeight,
SelectionSet selectionSet,
SelectionSet highlightSet)
Paint the object with the given Graphics object on the given PedigreeOrganismView. |
void |
paintConnections(java.awt.Graphics g,
PedigreeOrganismView aPedigreeOrganismView,
Trait trait,
int fontHeight,
SelectionSet selectionSet,
SelectionSet highlightSet)
Paint the connections. |
boolean |
pick(int xPick,
int yPick)
Pick this object, determining if the given x,y location is on the object. |
java.awt.Dimension |
placeChildren()
Place children. |
void |
placeConnections()
Place the connections. |
void |
resetSqueezeFactor()
Reset squeeze factor. |
void |
setHeight(int aHeight)
Set the height |
void |
setWidth(int aWidth)
Set the width |
void |
setXLocation(int anXLocation)
Set the X location |
void |
setYLocation(int aYLocation)
Set the Y location |
java.awt.Dimension |
squeeze()
Squeeze object. |
void |
translate(int xDelta,
int yDelta)
Translate the organism by the given amount |
boolean |
within(int xTopLeft,
int yTopLeft,
int xBottomRight,
int yBottomRight)
Is this organism within the given rectangle? We'll consider a organism within the rectangle if the rectangle contains some portion of the organism. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int xLocation
protected int yLocation
protected int width
protected int height
Constructor Detail |
public PedigreeObject()
Method Detail |
public int getXLocation()
public void setXLocation(int anXLocation)
anXLocation
- int - x locationpublic int getYLocation()
public void setYLocation(int aYLocation)
aYLocation
- int - y locationpublic int getWidth()
public void setWidth(int aWidth)
aWidth
- int - widthpublic int getHeight()
public void setHeight(int aHeight)
aHeight
- int - heightpublic java.awt.Point getTopLeftPoint()
public java.awt.Point getBottomMidPoint()
public java.awt.Point getTopMidPoint()
public void getMinimumMaximum(java.awt.Point aMinPoint, java.awt.Point aMaxPoint)
public void translate(int xDelta, int yDelta)
xDelta
- int - x deltayDelta
- int - y deltapublic boolean pick(int xPick, int yPick)
xPick
- int - x location of pickyPick
- int - y location of pickpublic boolean within(int xTopLeft, int yTopLeft, int xBottomRight, int yBottomRight)
xTopLeft
- int - x top left coordinateyTopLeft
- int - y top left coordinatexBottomRight
- int - x bottom right coordinateyBottomRight
- int - y bottom right coordinatepublic boolean canSqueeze()
public java.awt.Dimension squeeze()
public java.awt.Dimension placeChildren()
public void resetSqueezeFactor()
public int getLeftMostParentX()
public int getRightMostParentX()
public void placeConnections()
public void paintConnections(java.awt.Graphics g, PedigreeOrganismView aPedigreeOrganismView, Trait trait, int fontHeight, SelectionSet selectionSet, SelectionSet highlightSet)
g
- Graphics - graphics object to use in paintingpedigreeOrganismView
- PedigreeOrganismView - the pedigree organism viewtrait
- Trait - the trait to show, may be nullfontHeight
- int - the font heightselectionSet
- selectionSet - view's selection setpublic abstract void paint(java.awt.Graphics g, PedigreeOrganismView pedigreeOrganismView, Trait trait, int fontHeight, SelectionSet selectionSet, SelectionSet highlightSet)
g
- Graphics - graphics object to use in paintingpedigreeOrganismView
- PedigreeOrganismView - the pedigree organism viewtrait
- Trait - the trait to show, may be nullfontHeight
- int - the font heightselectionSet
- selectionSet - view's selection set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |