Package com.mxgraph.io.graphml
Class mxGraphMlKeyManager
- java.lang.Object
-
- com.mxgraph.io.graphml.mxGraphMlKeyManager
-
public class mxGraphMlKeyManager extends java.lang.Object
This is a singleton class that contains a map with the key elements of the document. The key elements are wrapped in instances of mxGmlKey and may to be access by ID.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static mxGraphMlKeyManager
getInstance()
Returns the instance of mxGmlKeyManager.java.util.HashMap<java.lang.String,mxGraphMlKey>
getKeyMap()
void
initialise(org.w3c.dom.Document doc)
Load the map with the key elements in the document.
The keys are wrapped for instances of mxGmlKey.void
setKeyMap(java.util.HashMap<java.lang.String,mxGraphMlKey> keyMap)
-
-
-
Method Detail
-
getInstance
public static mxGraphMlKeyManager getInstance()
Returns the instance of mxGmlKeyManager. If no instance has been created until the moment, a new instance is returned. This method don't load the map.- Returns:
- An instance of mxGmlKeyManager.
-
initialise
public void initialise(org.w3c.dom.Document doc)
Load the map with the key elements in the document.
The keys are wrapped for instances of mxGmlKey.- Parameters:
doc
- Document with the keys.
-
getKeyMap
public java.util.HashMap<java.lang.String,mxGraphMlKey> getKeyMap()
-
setKeyMap
public void setKeyMap(java.util.HashMap<java.lang.String,mxGraphMlKey> keyMap)
-
-