mxGraph 2.1.0.8


com.mxgraph.io.graphml
Class mxGraphMlKeyManager

java.lang.Object
  extended by com.mxgraph.io.graphml.mxGraphMlKeyManager

public class mxGraphMlKeyManager
extends 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
static mxGraphMlKeyManager getInstance()
          Returns the instance of mxGmlKeyManager.
 HashMap<String,mxGraphMlKey> getKeyMap()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(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 HashMap<String,mxGraphMlKey> getKeyMap()

setKeyMap

public void setKeyMap(HashMap<String,mxGraphMlKey> keyMap)

mxGraph 2.1.0.8


Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.