|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.layout.EdgeCoordinateInfo
The EdgeCoordinateInfo class should be used to store
a number of Coordinate objects along with a certain type. The
type refers to the type of the LayoutableEdge and therefore it
must be one of the types defined in the LayoutableEdge
interface.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* @see LayoutableEdge
LayoutableEdge.EDGE_TYPE_DYNAMIC,
Coordinate| Field Summary | |
Coordinate[] |
coords
Instance variable for the coordinates |
Coordinate[] |
coordsCopy
|
int |
type
Instance variable for the type of the coordinates |
| Constructor Summary | |
EdgeCoordinateInfo()
Default constructor for EdgeCoordinateInfo. |
|
EdgeCoordinateInfo(Coordinate[] coords,
int type)
Constructor for EdgeCoordinateInfo with given
Coordinate instances and given type of the coordinates.
|
|
EdgeCoordinateInfo(LayoutableEdge edge)
Constructor for EdgeCoordinateInfo with given
instance of a LayoutableEdge.
|
|
| Method Summary | |
java.lang.Object |
clone()
|
void |
copyCoordinates()
Creates a copy of the associated coordinates. |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public Coordinate[] coords
public Coordinate[] coordsCopy
public int type
| Constructor Detail |
public EdgeCoordinateInfo()
EdgeCoordinateInfo.
public EdgeCoordinateInfo(Coordinate[] coords,
int type)
EdgeCoordinateInfo with given
Coordinate instances and given type of the coordinates.
LayoutableEdge
the given coordinates have been calculated for and therefore it must be
one of the different type constants defined in the
LayoutableEdge interface.
coords - the Coordinate instancestype - the type of the given coordinatesLayoutableEdge,
LayoutableEdge.EDGE_TYPE_DYNAMIC,
Coordinatepublic EdgeCoordinateInfo(LayoutableEdge edge)
EdgeCoordinateInfo with given
instance of a LayoutableEdge.
EdgeCoordinateInfo
object from the given LayoutableEdge instance by taking its
current coordinates and its current type.
edge - the LayoutableEdge instance to create
the EdgeCoordinateInfo from| Method Detail |
public void copyCoordinates()
public final java.lang.Object clone()
public boolean equals(java.lang.Object other)
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||