|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ericsson.tic.vi.GraphNodeRel
public class GraphNodeRel
Keeps track of relationships between nodes.
| Field Summary | |
|---|---|
GraphNode |
a
Node a. |
GraphNode |
b
Node b. |
float[] |
controlPointA
The control point for node a. |
float[] |
controlPointB
The control point for node b. |
float[] |
controlTargetA
A target for control point a. |
float[] |
controlTargetB
A target for control point b. |
float[] |
globeCurvedControlPointA
A set of coordinates which defines the control point for node a on the globe. |
float[] |
globeCurvedControlPointB
A set of coordinates which defines the control point for node b on the globe. |
float[] |
globeStraightControlPointA
A set of coordinates which defines the control point for node a on the globe. |
float[] |
globeStraightControlPointB
A set of coordinates which defines the control point for node b on the globe. |
int |
id
The id of this relation. |
float[] |
planeControlPointA
A set of coordinates which defines the control point for node a on the plane. |
float[] |
planeControlPointB
A set of coordinates which defines the control point for node b on the plane. |
float |
speed
The speed. |
float[] |
speedA
A speed vector for a. |
float[] |
speedB
A speed vector for b. |
| Constructor Summary | |
|---|---|
GraphNodeRel(int id,
GraphNode a,
GraphNode b)
Create a graph node relationship. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones this GraphNodeRel object. |
void |
createControlPoints()
Creates control points for the bezier curves. |
void |
moveTowardsTargets()
Make the control points move towards their target destinations. |
void |
print()
Print out some of the more important attributes. |
private void |
setSpeedVectors()
Set the movements speed of the control points. |
void |
setTargetsOnGlobeCurved()
Set the target on the globe using curved lines. |
void |
setTargetsOnGlobeStraight()
Set the target on the globe using straight lines. |
void |
setTargetsOnPlane()
Set the target on the plane. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public GraphNode a
public GraphNode b
public float[] globeCurvedControlPointA
public float[] globeCurvedControlPointB
public float[] globeStraightControlPointA
public float[] globeStraightControlPointB
public float[] planeControlPointA
public float[] planeControlPointB
public float[] controlPointA
public float[] controlPointB
public float[] controlTargetA
public float[] controlTargetB
public float[] speedA
public float[] speedB
public float speed
public int id
| Constructor Detail |
|---|
public GraphNodeRel(int id,
GraphNode a,
GraphNode b)
id - The id of this relationship.a - The first node of the relationship.b - The second node of the relationship.| Method Detail |
|---|
public void createControlPoints()
public void moveTowardsTargets()
private void setSpeedVectors()
public void setTargetsOnPlane()
public void setTargetsOnGlobeCurved()
public void setTargetsOnGlobeStraight()
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void print()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||