public class ExportVGraphics extends Object
| Constructor and Description |
|---|
ExportVGraphics() |
| Modifier and Type | Method and Description |
|---|---|
static void |
export(Component CanvasPanel,
String rootKey,
String file)
Fast export of the canvas to an image file.
|
static void |
exportDialog(Component component,
String rootKey,
JFrame frame)
Exports the image to some graphic format.
|
static File |
getSelectedFileWithExtension(JFileChooser c)
Returns the selected file from a JFileChooser, including the extension from
the file filter.
|
public static void export(Component CanvasPanel, String rootKey, String file)
No questions will be asked and existing file will be rewritten
file - Output file with the proper extension (SVG, SVGZ, JPG, PNG,
PDF, EPS, PS). If no extension, PNG file is assumed.CanvasPane - component to export.public static void exportDialog(Component component, String rootKey, JFrame frame)
component - to export to imagerootKey - is a key from where export is happeingframe - parent fram if any.public static File getSelectedFileWithExtension(JFileChooser c)
DMelt 2.0 © DataMelt by jWork.ORG