public class ExportVGraphics
extends java.lang.Object
Constructor and Description |
---|
ExportVGraphics() |
Modifier and Type | Method and Description |
---|---|
static void |
export(java.awt.Component CanvasPanel,
java.lang.String rootKey,
java.lang.String file)
Fast export of the canvas to an image file.
|
static void |
exportDialog(java.awt.Component component,
java.lang.String rootKey,
javax.swing.JFrame frame)
Exports the image to some graphic format.
|
static java.io.File |
getSelectedFileWithExtension(javax.swing.JFileChooser c)
Returns the selected file from a JFileChooser, including the extension from
the file filter.
|
public static void export(java.awt.Component CanvasPanel, java.lang.String rootKey, java.lang.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(java.awt.Component component, java.lang.String rootKey, javax.swing.JFrame frame)
component
- to export to imagerootKey
- is a key from where export is happeingframe
- parent fram if any.public static java.io.File getSelectedFileWithExtension(javax.swing.JFileChooser c)
JHepSim. A part of HSTOOLS. version-1.2