public class mxGraphMlData extends Object
Constructor and Description |
---|
mxGraphMlData()
Construct an empty data.
|
mxGraphMlData(Element dataElement)
Construct a data from one xml data element.
|
mxGraphMlData(String dataId,
String dataKey,
String dataValue,
mxGraphMlShapeEdge dataShapeEdge,
mxGraphMlShapeNode dataShapeNode)
Construct a data with the params values.
|
Modifier and Type | Method and Description |
---|---|
Element |
generateEdgeElement(Document document)
Generates an Edge Data Element from this class.
|
Element |
generateNodeElement(Document document)
Generates an Node Data Element from this class.
|
String |
getDataId() |
String |
getDataKey() |
mxGraphMlShapeEdge |
getDataShapeEdge() |
mxGraphMlShapeNode |
getDataShapeNode() |
String |
getDataValue() |
void |
setDataId(String dataId) |
void |
setDataKey(String dataKey) |
void |
setDataShapeEdge(mxGraphMlShapeEdge dataShapeEdge) |
void |
setDataShapeNode(mxGraphMlShapeNode dataShapeNode) |
void |
setDataValue(String dataValue) |
public mxGraphMlData(String dataId, String dataKey, String dataValue, mxGraphMlShapeEdge dataShapeEdge, mxGraphMlShapeNode dataShapeNode)
dataId
- Data's IDdataKey
- Reference to a Key Element IDdataValue
- Value of the data ElementdataShapeEdge
- JGraph specific edge properties.dataShapeNode
- JGraph specific node properties.public mxGraphMlData(Element dataElement)
dataElement
- Xml Data Element.public mxGraphMlData()
public String getDataId()
public void setDataId(String dataId)
public String getDataKey()
public void setDataKey(String dataKey)
public String getDataValue()
public void setDataValue(String dataValue)
public mxGraphMlShapeNode getDataShapeNode()
public void setDataShapeNode(mxGraphMlShapeNode dataShapeNode)
public mxGraphMlShapeEdge getDataShapeEdge()
public void setDataShapeEdge(mxGraphMlShapeEdge dataShapeEdge)
public Element generateNodeElement(Document document)
document
- Document where the key Element will be inserted.Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.