public class PluginSBGNML
extends java.lang.Object
PluginModel m = plugin.getSelectedModel();
PluginSBGNML plugsbgn = new PluginSBGNML(m);
plugsbgn.export();
While there is no output file (SBGN-ML file) specified
in the above example code, CellDesigner will launch
FileDialog to ask users where to store the exported SBGN-ML.
If you want to specify where to store SBGN-ML, then use
the following code.
PluginModel m = plugin.getSelectedModel();
File sbgnFile = new File("foo.sbgn");
PluginSBGNML plugsbgn = new PluginSBGNML(m, sbgnFile);
plugsbgn.export();
Constructor and Description |
---|
PluginSBGNML(PluginModel pluginModel)
Class constructor specifying pluginModel
|
PluginSBGNML(PluginModel pluginModel,
java.io.File sbgnFile)
Class constructor specifying pluginModel and sbgnFile
|
Modifier and Type | Method and Description |
---|---|
void |
export()
Convert PluginModel which has CelLDesigner annotation to
SBGN object model and then export as SBGN-ML.
|
java.io.File |
getSbgnFile()
Returns sbgnFile object.
|
void |
setSbgnFile(java.io.File sbgnFile)
Sets sbgnFile
|
public PluginSBGNML(PluginModel pluginModel)
pluginModel
- the model which will be exported to SBGN-ML.public PluginSBGNML(PluginModel pluginModel, java.io.File sbgnFile)
pluginModel
- the model which will be exported to SBGN-ML.sbgnFile
- output file (SBGN-ML file)public void export()
public java.io.File getSbgnFile()
public void setSbgnFile(java.io.File sbgnFile)
sbgnFile
- File