JGraph X 1.4.1.0


com.mxgraph.io.vdx
Class mxStyleSheetManager

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

public class mxStyleSheetManager
extends Object

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


Method Summary
static mxStyleSheetManager getInstance()
          Returns the instance of mxStyleSheetManager.
If no instance has been created until the moment, a new instance is returned.
This method don't load the map.
 mxStyleSheet getSheet(String id)
          Returns the wrapper of the stylesheet element with id indicated by 'id'
 HashMap<String,mxStyleSheet> getStyleSheetsMap()
          Returns the mxStyleSheet HashMap
 void initialise(Document doc)
          Load the map with the stylesheets elements in the document.
The masters are wrapped for instances of mxStyleSheet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

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

initialise

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

Parameters:
doc - Document with the stylesheets.

getStyleSheetsMap

public HashMap<String,mxStyleSheet> getStyleSheetsMap()
Returns the mxStyleSheet HashMap

Returns:
Map of stylesheet elements

getSheet

public mxStyleSheet getSheet(String id)
Returns the wrapper of the stylesheet element with id indicated by 'id'

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

JGraph X 1.4.1.0


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