|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.visualization.savedialog.SVGSaveDialog
public class SVGSaveDialog

A save dialog to save/export a SVG image to a file. Supported formats:
| Field Summary | |
|---|---|
(package private) static String |
automagic_format
Automagic file format |
static String |
DEFAULT_TITLE
The default title. |
(package private) static String[] |
formats
Supported file format (extensions) |
private static Logging |
logger
Static logger reference |
(package private) static String[] |
visibleformats
Visible file formats |
| Constructor Summary | |
|---|---|
SVGSaveDialog()
|
|
| Method Summary | |
|---|---|
static String[] |
getFormats()
|
static String[] |
getVisibleFormats()
|
static String |
guessFormat(String name)
Guess a supported format from the file name. |
private static void |
showError(Component parent,
String title,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_TITLE
private static final Logging logger
static final String automagic_format
static final String[] formats
static final String[] visibleformats
| Constructor Detail |
|---|
public SVGSaveDialog()
| Method Detail |
|---|
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 String guessFormat(String name)
name - File name
public static String[] getFormats()
public static String[] getVisibleFormats()
private static void showError(Component parent,
String title,
String msg)
JOptionPane.showMessageDialog(java.awt.Component, Object).
parent - The parent component for the popup.msg - The message to be displayed.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||