JGraph X 1.4.1.0


com.mxgraph.io.vdx
Class mxPropertiesManager

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

public class mxPropertiesManager
extends Object

This is a singleton class that stores various global properties to document.
The properties are:


Method Summary
 String getColor(String ix)
          Returns the color of index indicated in 'ix'.
 mxStyleSheet getFillStyle()
          Returns the default fill style.
 String getFont(String id)
          Returns the font of id indicated in 'id'
static mxPropertiesManager getInstance()
          Returns the instance of mxPropertiesManager.
If no instance has been created until the moment, a new instance is returned.
Ths method don't load the properties.
 mxStyleSheet getLineStyle()
          Returns the default line style.
 mxStyleSheet getTextStyle()
          Returns the default text style.
 void initialise(Document doc)
          Loads the properties of the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static mxPropertiesManager getInstance()
Returns the instance of mxPropertiesManager.
If no instance has been created until the moment, a new instance is returned.
Ths method don't load the properties.

Returns:
An instance of mxPropertiesManager.

initialise

public void initialise(Document doc)
Loads the properties of the document.

Parameters:
doc - Document with the properties.

getColor

public String getColor(String ix)
Returns the color of index indicated in 'ix'.

Parameters:
ix - Index of the color.
Returns:
Hexadecimal representation of the color.

getFont

public String getFont(String id)
Returns the font of id indicated in 'id'

Parameters:
id - font's ID
Returns:
Name of the font.

getFillStyle

public mxStyleSheet getFillStyle()
Returns the default fill style.

Returns:
Stylesheet with the default fill style wrapped in an instance of mxStyleSheet.

getLineStyle

public mxStyleSheet getLineStyle()
Returns the default line style.

Returns:
Stylesheet with the default line style wrapped in an instance of mxStyleSheet.

getTextStyle

public mxStyleSheet getTextStyle()
Returns the default text style.

Returns:
Stylesheet with the default text style wrapped in an instance of mxStyleSheet.

JGraph X 1.4.1.0


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