Package net.sf.jaxodraw.gui.panel
Class JaxoExportPanel
- java.lang.Object
-
- net.sf.jaxodraw.gui.panel.JaxoExportPanel
-
- All Implemented Interfaces:
JaxoLocalized
public class JaxoExportPanel extends java.lang.Object implements JaxoLocalized
The parent class for exporting: brings up a dialog to choose the export format and executes the corresponding actions.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description JaxoExportPanel(java.awt.Component parentc, java.util.List<?> exportl, JaxoPreview p)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidexport(JaxoGraph newGraph, java.awt.Dimension d, java.lang.String tab)Deprecated.useexport(JaxoGraph,String)instead.voidexport(JaxoGraph newGraph, java.lang.String tab)Brings a dialog to choose the export format.voidsetExports(java.util.List<?> expts)Updates the list of export formats.voidsetNewPreviewFrame(boolean newFrame)Set the watchFile mode.voidupdateLanguage()Updates the component with the current language as set in the preferences (JaxoPrefs.PREF_LANGUAGE).
-
-
-
Constructor Detail
-
JaxoExportPanel
public JaxoExportPanel(java.awt.Component parentc, java.util.List<?> exportl, JaxoPreview p)Constructor.- Parameters:
parentc- Component whose Window to use a parent for dialogs.exportl- List of exports to show, in the format ofJaxoExport.getBuiltInFormats().p- Preview to use for showing previews.
-
-
Method Detail
-
setNewPreviewFrame
public void setNewPreviewFrame(boolean newFrame)
Set the watchFile mode. Defaults to true.- Parameters:
newFrame- true if a new Frame should be opened for every preview.
-
setExports
public void setExports(java.util.List<?> expts)
Updates the list of export formats.- Parameters:
expts- the list of export formats.
-
updateLanguage
public void updateLanguage()
Updates the component with the current language as set in the preferences (JaxoPrefs.PREF_LANGUAGE).- Specified by:
updateLanguagein interfaceJaxoLocalized
-
export
public final void export(JaxoGraph newGraph, java.lang.String tab)
Brings a dialog to choose the export format.- Parameters:
newGraph- The graph to be exported.tab- The current tab.- Since:
- 2.0.2
-
export
@Deprecated public final void export(JaxoGraph newGraph, java.awt.Dimension d, java.lang.String tab)
Deprecated.useexport(JaxoGraph,String)instead.Brings a dialog to choose the export format.- Parameters:
newGraph- The graph to be exported.d- The current dimension of the canvas. This is not used!tab- The current tab.
-
-