JGraph X 1.4.1.0


com.mxgraph.io
Class mxVdxCodec

java.lang.Object
  extended by com.mxgraph.io.mxVdxCodec

public class mxVdxCodec
extends Object

Parses a .vdx XML diagram file and imports it in the given graph.
This class depends from the classes contained in com.mxgraph.io.vdx.


Constructor Summary
mxVdxCodec()
           
 
Method Summary
static void decode(Document document, mxGraph graph)
          Recieves a xml document and parses it generating a new graph that is inserted in graph.
static boolean isHtmlLabelsEnable()
          Checks if html labels are active.
static void setHtmlLabelsEnable(boolean htmlLabelsEnable)
          Sets html labels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxVdxCodec

public mxVdxCodec()
Method Detail

isHtmlLabelsEnable

public static boolean isHtmlLabelsEnable()
Checks if html labels are active.

Returns:
Returns true if html labels are enable.

setHtmlLabelsEnable

public static void setHtmlLabelsEnable(boolean htmlLabelsEnable)
Sets html labels.

Parameters:
htmlLabelsEnable - New value of the property.

decode

public static void decode(Document document,
                          mxGraph graph)
Recieves a xml document and parses it generating a new graph that is inserted in graph.

Parameters:
document - XML to be parsed
graph - Graph where the parsed graph is included.

JGraph X 1.4.1.0


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