cwi.GraphXML.Elements
Class Size

java.lang.Object
  extended by cwi.GraphXML.Elements.Size
All Implemented Interfaces:
java.io.Serializable

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

Size information

Author:
Ivan Herman
See Also:
Reference, Serialized Form

Constructor Summary
Size()
           
 
Method Summary
static Size create(org.w3c.dom.Node node, ParserError parserError)
          Retrieve the representation of a size from a node, and returns a corresponding class instance.
 double getDepth()
           
 double getHeight()
           
 double getWidth()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Size

public Size()
Method Detail

getWidth

public double getWidth()

getHeight

public double getHeight()

getDepth

public double getDepth()

create

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

Parameters:
node - The node containing the reference.
parser - the parser in charge; used to generate error messages
Returns:
new Reference class, or null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object