JGraph X 1.4.1.0


com.mxgraph.io.gml
Class mxGmlNode

java.lang.Object
  extended by com.mxgraph.io.gml.mxGmlNode

public class mxGmlNode
extends Object

Represents a Data element in the GML Structure.


Constructor Summary
mxGmlNode(Element nodeElement)
          Construct a Node from a xml Node Element.
mxGmlNode(String nodeId, mxGmlData nodeData)
          Construct a node with Id and one data element
 
Method Summary
 Element generateElement(Document document)
          Generates a Key Element from this class.
 mxGmlData getNodeData()
           
 HashMap<String,mxGmlData> getNodeDataMap()
           
 List<mxGmlGraph> getNodeGraph()
           
 String getNodeId()
           
 HashMap<String,mxGmlPort> getNodePort()
           
 void setNodeData(mxGmlData nodeData)
           
 void setNodeDataMap(HashMap<String,mxGmlData> nodeDataMap)
           
 void setNodeGraph(List<mxGmlGraph> nodeGraph)
           
 void setNodeId(String nodeId)
           
 void setNodePort(HashMap<String,mxGmlPort> nodePort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGmlNode

public mxGmlNode(String nodeId,
                 mxGmlData nodeData)
Construct a node with Id and one data element

Parameters:
nodeId - Node`s ID
nodeData - Gml Data.

mxGmlNode

public mxGmlNode(Element nodeElement)
Construct a Node from a xml Node Element.

Parameters:
nodeElement - Xml Node Element.
Method Detail

getNodeId

public String getNodeId()

setNodeId

public void setNodeId(String nodeId)

getNodeDataMap

public HashMap<String,mxGmlData> getNodeDataMap()

setNodeDataMap

public void setNodeDataMap(HashMap<String,mxGmlData> nodeDataMap)

getNodeGraph

public List<mxGmlGraph> getNodeGraph()

setNodeGraph

public void setNodeGraph(List<mxGmlGraph> nodeGraph)

getNodePort

public HashMap<String,mxGmlPort> getNodePort()

setNodePort

public void setNodePort(HashMap<String,mxGmlPort> nodePort)

generateElement

public Element generateElement(Document document)
Generates a Key Element from this class.

Parameters:
document - Document where the key Element will be inserted.
Returns:
Returns the generated Elements.

getNodeData

public mxGmlData getNodeData()

setNodeData

public void setNodeData(mxGmlData nodeData)

JGraph X 1.4.1.0


Copyright (c) 2010 Gaudenz Alder. All rights reserved.