Class JaxoImportPanel

  • All Implemented Interfaces:
    JaxoLocalized

    public class JaxoImportPanel
    extends java.lang.Object
    implements JaxoLocalized
    Brings up a dialog to choose an import format and a file to import.
    Since:
    2.0
    • Constructor Detail

      • JaxoImportPanel

        public JaxoImportPanel​(java.awt.Component parentc,
                               java.util.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​(java.util.List<JaxoImportPlugin> impts)
        Updates the list of import formats.
        Parameters:
        impts - the list of import formats.
      • 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.