|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaxodraw.plugin.AbstractJaxoPlugin
net.sf.jaxodraw.plugin.JaxoImportPlugin
public abstract class JaxoImportPlugin
An abstract superclass for all import plugins.
Constructor Summary | |
---|---|
JaxoImportPlugin()
|
Method Summary | |
---|---|
void |
commitConfiguration()
Apply the changes made in the configuration panel. |
String |
getCharsetName()
Returns the current charset name. |
JComponent |
getConfigurationPanel()
Returns a panel that allows to configure optional parameters of this import format. |
JaxoGraph |
importGraph(File f)
Imports a graph from the given file. |
protected abstract JaxoGraph |
importGraph(InputStream inputStream)
Import a graph from a Reader. |
JaxoGraph |
importGraph(String fileName)
Imports a graph from the given file. |
void |
setCharsetName(String name)
Sets the charset name. |
Methods inherited from class net.sf.jaxodraw.plugin.AbstractJaxoPlugin |
---|
close, getClassName, getFailure, getFileExtension, getFileExtensionDescription, getFormatName, getLang, getLog, getParentComponent, getProperties, getProperty, getProperty, getShortGraphName, hasFailed, isSilent, loadProperties, pluginName, registerDictionary, setFailure, setParentComponent, setProperty, setShortGraphName, setSilent, storeProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jaxodraw.plugin.JaxoPlugin |
---|
description, getShortName, makeAvailableAtRuntime, pluginId, version |
Methods inherited from interface net.sf.jaxodraw.util.JaxoLocalized |
---|
updateLanguage |
Constructor Detail |
---|
public JaxoImportPlugin()
Method Detail |
---|
public String getCharsetName()
public void setCharsetName(String name)
name
- The charset to use. No check is done here whether the
given charset name is valid or the corresponding Charset is supported.
Set this to null to use the system default encoding.public JaxoGraph importGraph(String fileName)
fileName
- The absolute path to the file to be imported
public JaxoGraph importGraph(File f)
f
- The file to be imported
public JComponent getConfigurationPanel()
public void commitConfiguration()
protected abstract JaxoGraph importGraph(InputStream inputStream) throws JaxoPluginExecutionException
inputStream
- An InputStream to supply the input data.
JaxoPluginExecutionException
- if the graph could not be imported.
Note that the message of the Exception should be
an internationalized String.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |