JGraph X 1.4.1.0


com.mxgraph.io.vdx
Class mxMastersManager

java.lang.Object
  extended by com.mxgraph.io.vdx.mxMastersManager

public class mxMastersManager
extends Object

This is a singleton class that contains a map with the master elements of the document. The master elements are wrapped in instances of mxMasterElement and may to be access by ID.


Method Summary
static mxMastersManager getInstance()
          Returns the instance of mxMasterManager.
 mxMasterElement getMaster(String id)
          Returns the wrapper of the master element with id = 'id'
 HashMap<String,mxMasterElement> getMasterElementsMap()
          Returns the mxMasterElement's HashMap
 void initialise(Document doc)
          Load the map with the master elements in the document.
The masters are wrapped for instances of mxMasterElement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static mxMastersManager getInstance()
Returns the instance of mxMasterManager. 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 mxMasterManager.

initialise

public void initialise(Document doc)
Load the map with the master elements in the document.
The masters are wrapped for instances of mxMasterElement.

Parameters:
doc - Document with the masters.

getMasterElementsMap

public HashMap<String,mxMasterElement> getMasterElementsMap()
Returns the mxMasterElement's HashMap

Returns:
Map of master elements.

getMaster

public mxMasterElement getMaster(String id)
Returns the wrapper of the master element with id = 'id'

Parameters:
id - Master element's ID.
Returns:
Master element with id = 'id' wrapped in a instance of mxMasterElement

JGraph X 1.4.1.0


Copyright (c) 2010 Gaudenz Alder. All rights reserved.