Documentation of 'com.mxgraph.io.mxGdCodec' Java class
mxGdCodec
com.mxgraph.io

Class mxGdCodec



  • public class mxGdCodec
    extends java.lang.Object
    Parses a GD .txt file and imports it in the given graph.
    This class depends from the classes contained in com.mxgraph.io.gd.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  mxGdCodec.mxGDParseState
      Represents the different states in the parse of a file.
    • Constructor Summary

      Constructors 
      Constructor and Description
      mxGdCodec() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void decode(java.lang.String input, mxGraph graph)
      Parses simple GD format and populate the specified graph
      static java.lang.String encode(mxGraph graph)
      Generates a GD text output with the cells in the graph.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • mxGdCodec

        public mxGdCodec()
    • Method Detail

      • decode

        public static void decode(java.lang.String input,
                                  mxGraph graph)
        Parses simple GD format and populate the specified graph
        Parameters:
        input - GD file to be parsed
        graph - Graph where the parsed graph is included.
      • encode

        public static java.lang.String encode(mxGraph graph)
        Generates a GD text output with the cells in the graph. The implementation only uses the cells located in the default parent.
        Parameters:
        graph - Graph with the cells.
        Returns:
        The GD document generated.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.