Modifier and Type | Method and Description |
---|---|
static void |
copy(GJBasicPanel panel)
Copies the graphics of a GJBasicPanel or subclass to the clipboard.
|
static void |
copyAsImage(GJBasicPanel panel)
Copies the graphics of a GJBasicPanel or subclass to the clipboard in
bitmap format only.
|
static javax.swing.SwingWorker<java.lang.Boolean,java.lang.Void> |
copyGraphics(GJBasicPanel panel)
Copies the graphics of a GJBasicPanel or subclass to the clipboard in the
background.
|
static void |
deployAs(java.awt.Component c2) |
static void |
deployAs(java.awt.Component parent,
java.awt.Component c2) |
static void |
editDefaults() |
static java.awt.Component |
getCopyOrSaveTarget(java.awt.Component c) |
static java.lang.String |
getExtension(java.lang.String s) |
static boolean |
isExportFactoryPresent() |
static boolean |
isUseChooser() |
static FileWrapper |
open() |
static FileWrapper |
open(java.awt.Component parent)
Displays a file open dialog, loads the selected Waterloo graphics XML
file and returns the details in a FileWrapper instance.
|
static FileWrapper |
save(java.awt.Component parent,
java.lang.Object o)
Displays a file chooser and saves the specified Object to file by calling
the GJEncoder save method.
|
static FileWrapper |
save(java.lang.Object o) |
static void |
saveAs(java.awt.Component c) |
static void |
saveAs(java.awt.Component parent,
java.awt.Component c)
Displays a file save dialog and saves a Component in the selected format.
|
static void |
setUseChooser(boolean aUseChooser) |
public static boolean isUseChooser()
public static void setUseChooser(boolean aUseChooser)
aUseChooser
- if true, file dialogs will use the cross-platform
JFileChooser. If false, a FileDialog will be used.public static FileWrapper open()
public static FileWrapper open(java.awt.Component parent)
parent
- the component whose parent Frame (if any) will be usedpublic static FileWrapper save(java.lang.Object o)
public static FileWrapper save(java.awt.Component parent, java.lang.Object o)
parent
- o
- Object recognizable by GJDecoderpublic static void deployAs(java.awt.Component c2)
public static void deployAs(java.awt.Component parent, java.awt.Component c2)
public static void saveAs(java.awt.Component c)
public static void saveAs(java.awt.Component parent, java.awt.Component c)
parent
- c
- an AWT componentpublic static void copy(GJBasicPanel panel)
panel
- a GJBasicPanelpublic static javax.swing.SwingWorker<java.lang.Boolean,java.lang.Void> copyGraphics(GJBasicPanel panel)
panel
- a GJBasicPanelpublic static void copyAsImage(GJBasicPanel panel)
panel
- a GJBasicPanelpublic static java.awt.Component getCopyOrSaveTarget(java.awt.Component c)
public static void editDefaults()
public static boolean isExportFactoryPresent()
public static java.lang.String getExtension(java.lang.String s)