
org.jgraph.pad.GPPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freak-core Show documentation
Show all versions of freak-core Show documentation
Core library of the Free Evolutionary Algorithm Toolkit
package org.jgraph.pad;
/* Example: Save and open remote files
import org.jgraph.pad.*;
import org.jgraph.GPGraphpad;
import org.jgraph.graph.*;
public class TestPlugin implements GPPlugin {
public void execute(GPGraphpad pad) {
GPGraph graph = (GPGraph) pad.getGraph();
// Access the Graph
System.out.println("Number of Cells: "+graph.getAll().length);
// Successfull Save
pad.setModified(false);
// Open a (New) Model
pad.addDocument("newGraph.jgp", new DefaultGraphModel(), null);
}
}
*/
public interface GPPlugin {
public void execute(org.jgraph.GPGraphpad pad);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy