public final class SVGSaveDialog
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
AUTOMAGIC_FORMAT
Automagic file format
|
static java.lang.String |
DEFAULT_TITLE
The default title.
|
(package private) static java.lang.String[] |
FORMATS
Supported file format (extensions)
|
private static Logging |
LOG
Static logger reference
|
(package private) static java.lang.String[] |
VISIBLE_FORMATS
Visible file formats
|
Modifier | Constructor and Description |
---|---|
private |
SVGSaveDialog()
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getFormats() |
static java.lang.String[] |
getVisibleFormats() |
static java.lang.String |
guessFormat(java.lang.String name)
Guess a supported format from the file name.
|
private static void |
showError(java.awt.Component parent,
java.lang.String title,
java.lang.String msg)
Helper method to show a error message as "popup".
|
static int |
showSaveDialog(SVGPlot plot,
int width,
int height)
Show a "Save as" dialog.
|
public static final java.lang.String DEFAULT_TITLE
private static final Logging LOG
static final java.lang.String AUTOMAGIC_FORMAT
static final java.lang.String[] FORMATS
static final java.lang.String[] VISIBLE_FORMATS
public static int showSaveDialog(SVGPlot plot, int width, int height)
plot
- The plot to be exported.width
- The width of the exported image (when export to JPEG/PNG).height
- The height of the exported image (when export to JPEG/PNG).JFileChooser.showSaveDialog(java.awt.Component)
public static java.lang.String guessFormat(java.lang.String name)
name
- File namepublic static java.lang.String[] getFormats()
public static java.lang.String[] getVisibleFormats()
private static void showError(java.awt.Component parent, java.lang.String title, java.lang.String msg)
JOptionPane.showMessageDialog(java.awt.Component, Object)
.parent
- The parent component for the popup.msg
- The message to be displayed.Copyright © 2019 ELKI Development Team. License information.