fdda.plugins.xmlreader
Class GraphicsReader

java.lang.Object
  |
  +--fdda.plugins.xmlreader.GraphicsReader

final class GraphicsReader
extends Object

Provides static helper methods to read the graphical components for the java2d component out of an XML document.

Author:
Jörg Rüdenauer

Method Summary
static Line readLine(Element element, ErrorHandler handler, String connID, Node startNode, Node endNode, boolean directed)
          Reads a line from the DOM.
static Node readNode(Element xmlNode, ErrorHandler handler, String id)
          Reads a node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readNode

public static Node readNode(Element xmlNode,
                            ErrorHandler handler,
                            String id)
Reads a node

Parameters:
xmlNode - the node in the DOM that contains the graphical node info
handler - the error handler
id - ID for the new node
Returns:
the new node

readLine

public static Line readLine(Element element,
                            ErrorHandler handler,
                            String connID,
                            Node startNode,
                            Node endNode,
                            boolean directed)
Reads a line from the DOM. Also reads its points.

Parameters:
element - the DOM element containing the data of the line
handler - the error handler
connID - ID of the connection represented by the line
startNode - start node of the line
endNode - end node of the line
directed - whether the connection is directed
Returns:
the new line


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.