Package com.mxgraph.io.graphml
Class mxGraphMlKeyManager
java.lang.Object
com.mxgraph.io.graphml.mxGraphMlKeyManager
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
Modifier and TypeMethodDescriptionstatic mxGraphMlKeyManager
Returns the instance of mxGmlKeyManager.void
initialise
(Document doc) Load the map with the key elements in the document.
The keys are wrapped for instances of mxGmlKey.void
setKeyMap
(HashMap<String, mxGraphMlKey> keyMap)
-
Method Details
-
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
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
-
setKeyMap
-