Class JaxoImportPanel
java.lang.Object
net.sf.jaxodraw.gui.panel.JaxoImportPanel
- All Implemented Interfaces:
JaxoLocalized
Brings up a dialog to choose an import format and a file to import.
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the graph theat was imported by this panel.voidsetImports(List<JaxoImportPlugin> impts) Updates the list of import formats.voidshow()Shows the import panel.voidUpdates the component with the current language as set in the preferences (JaxoPrefs.PREF_LANGUAGE).
-
Constructor Details
-
JaxoImportPanel
Constructor.- Parameters:
parentc- Component whose Window to use a parent for dialogs.imp- List of imports to show, in the format ofJaxoImport.getBuiltInFormats().
-
-
Method Details
-
setImports
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:
updateLanguagein interfaceJaxoLocalized
-
show
public void show()Shows the import panel. -
getImportedGraph
Returns the graph theat was imported by this panel.- Returns:
- the graph or null if none was imported.
-