public class mxGraphMlData
extends java.lang.Object
Constructor and Description |
---|
mxGraphMlData()
Construct an empty data.
|
mxGraphMlData(org.w3c.dom.Element dataElement)
Construct a data from one xml data element.
|
mxGraphMlData(java.lang.String dataId,
java.lang.String dataKey,
java.lang.String dataValue,
mxGraphMlShapeEdge dataShapeEdge,
mxGraphMlShapeNode dataShapeNode)
Construct a data with the params values.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
generateEdgeElement(org.w3c.dom.Document document)
Generates an Edge Data Element from this class.
|
org.w3c.dom.Element |
generateNodeElement(org.w3c.dom.Document document)
Generates an Node Data Element from this class.
|
java.lang.String |
getDataId() |
java.lang.String |
getDataKey() |
mxGraphMlShapeEdge |
getDataShapeEdge() |
mxGraphMlShapeNode |
getDataShapeNode() |
java.lang.String |
getDataValue() |
void |
setDataId(java.lang.String dataId) |
void |
setDataKey(java.lang.String dataKey) |
void |
setDataShapeEdge(mxGraphMlShapeEdge dataShapeEdge) |
void |
setDataShapeNode(mxGraphMlShapeNode dataShapeNode) |
void |
setDataValue(java.lang.String dataValue) |
public mxGraphMlData(java.lang.String dataId, java.lang.String dataKey, java.lang.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(org.w3c.dom.Element dataElement)
dataElement
- Xml Data Element.public mxGraphMlData()
public java.lang.String getDataId()
public void setDataId(java.lang.String dataId)
public java.lang.String getDataKey()
public void setDataKey(java.lang.String dataKey)
public java.lang.String getDataValue()
public void setDataValue(java.lang.String dataValue)
public mxGraphMlShapeNode getDataShapeNode()
public void setDataShapeNode(mxGraphMlShapeNode dataShapeNode)
public mxGraphMlShapeEdge getDataShapeEdge()
public void setDataShapeEdge(mxGraphMlShapeEdge dataShapeEdge)
public org.w3c.dom.Element generateNodeElement(org.w3c.dom.Document document)
document
- Document where the key Element will be inserted.public org.w3c.dom.Element generateEdgeElement(org.w3c.dom.Document document)
document
- Document where the key Element will be inserted.Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.