public static class EditorActions.ImportAction
extends javax.swing.AbstractAction
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
lastDir |
Constructor and Description |
---|
ImportAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
static java.lang.String |
addStencilShape(EditorPalette palette,
java.lang.String nodeXml,
java.lang.String path)
Loads and registers the shape as a new shape in mxGraphics2DCanvas and
adds a new entry to use that shape in the specified palette
|
public static java.lang.String addStencilShape(EditorPalette palette, java.lang.String nodeXml, java.lang.String path)
palette
- The palette to add the shape to.nodeXml
- The raw XML of the shapepath
- The path to the directory the shape exists inpublic void actionPerformed(java.awt.event.ActionEvent e)