/*
 * Batch.java
 *
 * Created on April 27, 2007, 6:09 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package medusa.batchoperations;

import java.io.File;
import java.io.IOException;
import medusa.DataFormatException;
import medusa.dataio.DataLoader;
import medusa.display.EditableGraphPanel;
import medusa.display.FRspring;
import medusa.graph.Graph;

/**
 * This is an example of how to use Medusa in a batch mode. 
 * Useful for layong out lots of graphs or generating images.
 *
 * @author shooper
 */
public class BatchOperations {
    DataLoader dl;
    /** Creates a new instance of Batch */
    public BatchOperations() {
        dl=new DataLoader(1,1);
    }
    
    // 1. convert all files which follow the tabbed rule
    // to medusa files
    public void convertTabbedToMedusa(String dir){
        dir=clean(dir);
        File f = new File(dir+File.separator);
        String[] children=f.list();
        Graph g;
        for (int i=0; i 

Ads help maintain this website.