com.objex.panywhere
Class RelationshipLine

java.lang.Object
  extended by com.objex.panywhere.RelationshipLine
All Implemented Interfaces:
java.io.Serializable

public class RelationshipLine
extends java.lang.Object
implements java.io.Serializable

Defines aat an atomic level the properties of a Line2D object that connects two related Individuals to each other in a Pedigree contect. This class is an Auxilliary bean that was necessiated by the non serializablilty of the Line2D objects which made it impossible to serialize an Individual object with references to relationship lines connecting that Individual and others within the same family in a Pedigree.

See Also:
Serialized Form

Constructor Summary
RelationshipLine()
          No argumment constructor.
RelationshipLine(double x1, double y1, double x2, double y2)
          Create a Relationship line object whose two points are specified by the supplied coordinates
RelationshipLine(java.awt.geom.Line2D rline)
          Create a Relationship line object whose two points are specified by the supplied Line2D object.
 
Method Summary
 double getParentlineAnchorX()
          Getter for property parentlineAnchorX.
 double getParentlineAnchorY()
          Getter for property parentlineAnchorY.
 void setParentlineAnchor(java.awt.geom.Point2D anchor)
          Sets the Parent Line Anchor point
 void setParentlineAnchorX(double parentlineAnchorX)
          Setter for property parentlineAnchorX.
 void setParentlineAnchorY(double parentlineAnchorY)
          Setter for property parentlineAnchorY.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipLine

public RelationshipLine()
No argumment constructor. A new Relationship line with the two points initialized at (0,0) and (0,0)


RelationshipLine

public RelationshipLine(double x1,
                        double y1,
                        double x2,
                        double y2)
Create a Relationship line object whose two points are specified by the supplied coordinates

Parameters:
x1 - X coordinate of Point1 of Relationship line
y1 - Y coordinate Point1 of Relationship line
x2 - X coordinate of Point2 of Relationship line
y2 - Y coordinate Point2 of Relationship line

RelationshipLine

public RelationshipLine(java.awt.geom.Line2D rline)
Create a Relationship line object whose two points are specified by the supplied Line2D object.

Parameters:
rline - The line2d object from which the relationship line points are to be specified
Method Detail

getParentlineAnchorX

public double getParentlineAnchorX()
Getter for property parentlineAnchorX.

Returns:
Value of property parentlineAnchorX.

setParentlineAnchorX

public void setParentlineAnchorX(double parentlineAnchorX)
Setter for property parentlineAnchorX.

Parameters:
parentlineAnchorX - New value of property parentlineAnchorX.

getParentlineAnchorY

public double getParentlineAnchorY()
Getter for property parentlineAnchorY.

Returns:
Value of property parentlineAnchorY.

setParentlineAnchorY

public void setParentlineAnchorY(double parentlineAnchorY)
Setter for property parentlineAnchorY.

Parameters:
parentlineAnchorY - New value of property parentlineAnchorY.

setParentlineAnchor

public void setParentlineAnchor(java.awt.geom.Point2D anchor)
Sets the Parent Line Anchor point