GridView
Class MyEdge

java.lang.Object
  extended by GridView.MyEdge

 class MyEdge
extends java.lang.Object

Internal class used in marshalling the edge related data and putting things in order before an Edge can be constructed.

Since:
1.0

Field Summary
private  int[] mVertices
           
 
Constructor Summary
MyEdge(int[] twoVertices)
          Class constructor.
 
Method Summary
 int GetVertex(int i)
          Returns vertex.
 int[] GetVertices()
          Gets the vertices forming the edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mVertices

private int[] mVertices
Constructor Detail

MyEdge

public MyEdge(int[] twoVertices)
Class constructor.

Parameters:
twoVertices - Two element array containing number of vertices forming the edge (numbering starts from 0).
Method Detail

GetVertices

public int[] GetVertices()
Gets the vertices forming the edge.

Returns:
Two element vertex array forming the edge (numbering starts at 0).

GetVertex

public int GetVertex(int i)
Returns vertex.

Parameters:
i - i must be 0 or 1.
Throws:
java.lang.ArrayIndexOutOfBoundsException