|
JGraph X 1.9.2.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mxgraph.io.graphml.mxGraphMlGraph
public class mxGraphMlGraph
Represents a Graph element in the GML Structure.
Constructor Summary | |
---|---|
mxGraphMlGraph()
Constructs an empty graph. |
|
mxGraphMlGraph(org.w3c.dom.Element graphElement)
Constructs a graph from a xml graph element. |
|
mxGraphMlGraph(java.lang.String id,
java.lang.String edgedefault)
Constructs a graph with id and edge default direction. |
Method Summary | |
---|---|
void |
addGraph(mxGraph graph,
java.lang.Object parent)
Adds the elements represented for this graph model into the given graph. |
static mxGraphMlData |
dataEdgeKey(mxGraphMlEdge edge)
Returns the data element inside the edge that references to the key element with name = KEY_EDGE_NAME. |
static mxGraphMlData |
dataNodeKey(mxGraphMlNode node)
Returns the data element inside the node that references to the key element with name = KEY_NODE_NAME. |
org.w3c.dom.Element |
generateElement(org.w3c.dom.Document document)
Generates a Key Element from this class. |
java.lang.String |
getEdgedefault()
|
java.util.List<mxGraphMlEdge> |
getEdges()
|
java.lang.String |
getId()
|
java.util.List<mxGraphMlNode> |
getNodes()
|
static boolean |
hasData(mxGraphMlNode node)
Checks if the node has data elements inside. |
boolean |
isEmpty()
Checks if the graph has child nodes or edges. |
void |
setEdgedefault(java.lang.String edgedefault)
|
void |
setEdges(java.util.List<mxGraphMlEdge> edge)
|
void |
setId(java.lang.String id)
|
void |
setNodes(java.util.List<mxGraphMlNode> node)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public mxGraphMlGraph(java.lang.String id, java.lang.String edgedefault)
id
- Graph's IDedgedefault
- Edge Default direction.("directed" or "undirected")public mxGraphMlGraph()
public mxGraphMlGraph(org.w3c.dom.Element graphElement)
graphElement
- Xml graph element.Method Detail |
---|
public void addGraph(mxGraph graph, java.lang.Object parent)
graph
- Graph where the elements will be locatedparent
- Parent of the cells to be added.public static boolean hasData(mxGraphMlNode node)
node
- Gml node element.
true
if the node has data elements inside.public static mxGraphMlData dataNodeKey(mxGraphMlNode node)
node
- Gml Node element.
public static mxGraphMlData dataEdgeKey(mxGraphMlEdge edge)
edge
- Gml Edge element.
public java.lang.String getEdgedefault()
public void setEdgedefault(java.lang.String edgedefault)
public java.lang.String getId()
public void setId(java.lang.String id)
public java.util.List<mxGraphMlNode> getNodes()
public void setNodes(java.util.List<mxGraphMlNode> node)
public java.util.List<mxGraphMlEdge> getEdges()
public void setEdges(java.util.List<mxGraphMlEdge> edge)
public boolean isEmpty()
true
if the graph hasn't child nodes or edges.public org.w3c.dom.Element generateElement(org.w3c.dom.Document document)
document
- Document where the key Element will be inserted.
|
JGraph X 1.9.2.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |