net.sf.jaxodraw.gui.panel
Class JaxoImportPanel

java.lang.Object
  extended by net.sf.jaxodraw.gui.panel.JaxoImportPanel
All Implemented Interfaces:
JaxoLocalized

public class JaxoImportPanel
extends Object
implements JaxoLocalized

Brings up a dialog to choose an import format and a file to import.

Since:
2.0

Constructor Summary
JaxoImportPanel(Component parentc, List<JaxoImportPlugin> imp)
          Constructor.
 
Method Summary
 JaxoGraph getImportedGraph()
          Returns the graph theat was imported by this panel.
 void setImports(List<JaxoImportPlugin> impts)
          Updates the list of import formats.
 void show()
          Shows the import panel.
 void updateLanguage()
          Updates the component with the current language as set in the preferences (JaxoPrefs.PREF_LANGUAGE).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxoImportPanel

public JaxoImportPanel(Component parentc,
                       List<JaxoImportPlugin> imp)
Constructor.

Parameters:
parentc - Component whose Window to use a parent for dialogs.
imp - List of imports to show, in the format of JaxoImport.getBuiltInFormats().
Method Detail

setImports

public void setImports(List<JaxoImportPlugin> impts)
Updates the list of import formats.

Parameters:
impts - the list of import formats.

updateLanguage

public void updateLanguage()
Updates the component with the current language as set in the preferences (JaxoPrefs.PREF_LANGUAGE).

Specified by:
updateLanguage in interface JaxoLocalized

show

public void show()
Shows the import panel.


getImportedGraph

public JaxoGraph getImportedGraph()
Returns the graph theat was imported by this panel.

Returns:
the graph or null if none was imported.


Copyright © 2003-2011 The JaxoDraw team. All Rights Reserved.