cwi.GraphXML.Elements
Class Path

java.lang.Object
  extended bycwi.GraphXML.Elements.Path
All Implemented Interfaces:
java.io.Serializable

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

Path information. It contains, essentially, an array of position elements.

Author:
Ivan Herman
See Also:
Position, Serialized Form

Field Summary
static int ARC
           
static int POLYLINE
           
static int SPLINE
           
 
Constructor Summary
Path()
           
 
Method Summary
static Path create(org.w3c.dom.Node node, ParserError parserError)
          Retrieve the representation of a position from a node, and returns a corresponding class instance.
 Position[] getPositions()
           
 int getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ARC

public static final int ARC
See Also:
Constant Field Values

POLYLINE

public static final int POLYLINE
See Also:
Constant Field Values

SPLINE

public static final int SPLINE
See Also:
Constant Field Values
Constructor Detail

Path

public Path()
Method Detail

getType

public int getType()

getPositions

public Position[] getPositions()

create

public static Path create(org.w3c.dom.Node node,
                          ParserError parserError)
Retrieve the representation of a position from a node, and returns a corresponding class instance.

Parameters:
node - The node containing the reference.
Returns:
new Reference class, or null

toString

public java.lang.String toString()