public class Link extends java.lang.Object implements Locatable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
defaultColor |
java.awt.Point |
location |
Constructor and Description |
---|
Link(Context ctxt) |
Link(Individual ind,
java.lang.String chart,
java.awt.Point loc) |
Modifier and Type | Method and Description |
---|---|
void |
adjustLocation(int extraWidth,
int extraHeight) |
java.awt.Rectangle |
bounds() |
void |
drawLabel(java.awt.Graphics g,
java.awt.Rectangle theBounds)
Call the drawLabel method of person pointed to.
|
void |
drawSymbol(java.awt.Graphics g,
java.awt.Rectangle pbounds)
Call the symbol for this Link's sex to draw itself.
|
void |
drawSymbol(java.awt.Graphics g,
java.awt.Rectangle pbounds,
java.awt.Color c)
Set up the call to drawSymbol.
|
java.lang.String |
getHomeChart() |
java.awt.Point |
getLocation() |
int |
getLocationX() |
int |
getLocationY() |
int |
getSerialNmbr() |
int |
getSize() |
void |
setLocation(int x,
int y) |
void |
setLocation(java.awt.Point p) |
void |
setLocationX(int x) |
void |
setLocationY(int y) |
java.lang.String |
toSILKString() |
java.lang.String |
toString() |
public static java.awt.Color defaultColor
public java.awt.Point location
public Link(Context ctxt)
public Link(Individual ind, java.lang.String chart, java.awt.Point loc)
public java.lang.String getHomeChart()
getHomeChart
in interface Locatable
public int getSerialNmbr()
getSerialNmbr
in interface Locatable
public java.awt.Point getLocation()
getLocation
in interface Locatable
public int getLocationX()
getLocationX
in interface Locatable
public int getLocationY()
getLocationY
in interface Locatable
public void setLocation(java.awt.Point p)
setLocation
in interface Locatable
public void setLocation(int x, int y)
setLocation
in interface Locatable
public void setLocationX(int x)
setLocationX
in interface Locatable
public void setLocationY(int y)
setLocationY
in interface Locatable
public void adjustLocation(int extraWidth, int extraHeight)
public void drawLabel(java.awt.Graphics g, java.awt.Rectangle theBounds)
g
- the graphics object on which to drawtheBounds
- boundaries of this symbol's image; its size.public void drawSymbol(java.awt.Graphics g, java.awt.Rectangle pbounds)
g
- the graphics object on which to drawpbounds
- the boundaries within which to drawpublic void drawSymbol(java.awt.Graphics g, java.awt.Rectangle pbounds, java.awt.Color c)
g
- the graphics object on which to drawpbounds
- the boundaries within which to drawc
- the drawing colorpublic java.lang.String toSILKString()
public java.lang.String toString()
toString
in class java.lang.Object
public int getSize()