mascoptLib.io.util
Class ClassWriter

java.lang.Object
  extended bymascoptLib.io.util.ClassWriter

public class ClassWriter
extends Object

Converts an MGL graph into Java language.

It converts a graph into java code. You can include in your java file this code, creating directly the graph into memory without reading the MGL file.

A main program is providede, that you can lauch with "java ClassWriter"


Constructor Summary
ClassWriter(AbstractGraph ag, String name, String packageName)
          This constructor writes directly a file containing java code representing the graph.
 
Method Summary
static void main(String[] args)
          The main function launching the converter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassWriter

public ClassWriter(AbstractGraph ag,
                   String name,
                   String packageName)
This constructor writes directly a file containing java code representing the graph.

Parameters:
ag - the graph to write
name - the name of the ouptut file without extension
packageName - the name of the package where this file will be.
Method Detail

main

public static void main(String[] args)
The main function launching the converter.