| com.jgraph.editor.JGraphEditorAction com.jgraph.pad.action.JGraphpadFileAction com.jgraph.codecplugin.JGraphpadCodecAction
All known Subclasses: com.jgraph.twikiplugin.JGraphpadTWikiAction,
JGraphpadCodecAction | public class JGraphpadCodecAction extends JGraphpadFileAction (Code) | | Export actions for HTML image maps, gxl and graphviz.
|
Inner Class :public static class AllActions implements Bundle | |
Method Summary | |
public void | actionPerformed(ActionEvent event) Executes the action based on the action name. | protected void | doImportGXL(GraphLayoutCache cache, String filename) Imports the specified GXL file into the specified graph. | protected void | doSaveImageMap(JGraph graph, String filename, int inset) Exports the specified graph as an image map. | protected String | getAlt(JGraph graph, Object cell) Returns the value for the alt tag to be used in the image map of
graph for the specified cell.
Parameters: graph - The graph for which the image map is being created for. Parameters: cell - The cell to return the value of the alt tag for. | protected String | getURL(JGraph graph, Object cell) Returns the URL to be used in the image map of graph for
the specified cell.
Parameters: graph - The graph for which the image map is being created for. Parameters: cell - The cell to return the URL for. | protected int | writeMap(JGraph graph, String mapName, int inset, OutputStream out) Writes a HTML image map to the specified stream applying inset to the
coordinates of all cells. |
NAME_IMPORTGXL | final public static String NAME_IMPORTGXL(Code) | | Specifies the name for the importGXL action.
|
NAME_SAVEGRAPHVIZ | final public static String NAME_SAVEGRAPHVIZ(Code) | | Specifies the name for the saveGraphviz action.
|
NAME_SAVEGXL | final public static String NAME_SAVEGXL(Code) | | Specifies the name for the saveGXL action.
|
NAME_SAVEIMAGEMAP | final public static String NAME_SAVEIMAGEMAP(Code) | | Specifies the name for the saveImageMap action.
|
JGraphpadCodecAction | protected JGraphpadCodecAction(String name, JGraphEditor editor)(Code) | | Constructs a new export action for the specified name.
|
actionPerformed | public void actionPerformed(ActionEvent event)(Code) | | Executes the action based on the action name.
Parameters: event - The object that describes the event. |
doImportGXL | protected void doImportGXL(GraphLayoutCache cache, String filename) throws Exception(Code) | | Imports the specified GXL file into the specified graph.
Parameters: cache - The graph layout cache to import into. Parameters: filename - The filename to import from. throws: Exception - |
doSaveImageMap | protected void doSaveImageMap(JGraph graph, String filename, int inset) throws Exception(Code) | | Exports the specified graph as an image map. The filename and map name
are constructed out of the specified image filename.
Parameters: graph - The graph to be exported as an image map. Parameters: filename - The filename of the image to export. Parameters: inset - The inset to apply to the image and coordinates. |
getAlt | protected String getAlt(JGraph graph, Object cell)(Code) | | Returns the value for the alt tag to be used in the image map of
graph for the specified cell.
Parameters: graph - The graph for which the image map is being created for. Parameters: cell - The cell to return the value of the alt tag for. Returns a alt tag for cell . |
getURL | protected String getURL(JGraph graph, Object cell)(Code) | | Returns the URL to be used in the image map of graph for
the specified cell.
Parameters: graph - The graph for which the image map is being created for. Parameters: cell - The cell to return the URL for. Returns a URL for cell . |
Methods inherited from com.jgraph.pad.action.JGraphpadFileAction | public void actionPerformed(ActionEvent event)(Code)(Java Doc) public static String convert(OutputStream data, String mime)(Code)(Java Doc) protected void doCloseAll() throws IOException(Code)(Java Doc) protected void doCloseFile(JGraphEditorFile file, boolean remove) throws IOException(Code)(Java Doc) protected void doExit() throws IOException(Code)(Java Doc) protected void doImportCSV(GraphLayoutCache cache, String filename) throws IOException(Code)(Java Doc) protected void doNewDiagram(JGraphEditorFile file)(Code)(Java Doc) protected void doNewDocument()(Code)(Java Doc) protected void doNewLibrary()(Code)(Java Doc) protected void doOpenFile(String filename) throws MalformedURLException, IOException(Code)(Java Doc) protected void doPageSetup(JGraphEditorDiagramPane diagramPane)(Code)(Java Doc) protected void doPrintDiagramPane(JGraphEditorDiagramPane diagramPane) throws PrinterException(Code)(Java Doc) protected void doRemoveDiagram(JGraphEditorDiagram diagram)(Code)(Java Doc) protected void doRenameDiagram(JGraphEditorDiagram diagram)(Code)(Java Doc) public void doSave(String filename, byte[] data) throws Exception(Code)(Java Doc) protected void doSaveAll() throws IOException(Code)(Java Doc) protected void doSaveFile(JGraphEditorFile file, boolean forceFilenameDialog, boolean urlDialog) throws IOException(Code)(Java Doc) protected void doSaveImage(JGraphEditorDiagramPane diagramPane, int inset, String filename) throws IOException(Code)(Java Doc) public static Object getCellForKey(GraphModel model, Object prototype, Hashtable map, String key, int cols, int w, int h, int offset, boolean image)(Code)(Java Doc) protected int getFileCount(boolean countLibraries)(Code)(Java Doc) protected int getFileCount(Object root, boolean countLibraries)(Code)(Java Doc) public static JGraphEditorFile getPermanentFocusOwnerFile()(Code)(Java Doc) public static JGraphpadLibraryPane getPermanentFocusOwnerLibraryPane()(Code)(Java Doc) public static void importCSVFile(GraphLayoutCache cache, InputStream fstream, String delim, Object vertexPrototype, Object edgePrototype, String defaultEdgeLabel) throws IOException(Code)(Java Doc) protected boolean isLibrary(JGraphEditorFile file)(Code)(Java Doc) public static String makeMimeForm(String fileName, String type, String path, String content, String comment, String sep)(Code)(Java Doc) public static boolean post(URL url, String path, String mime, OutputStream data) throws IOException(Code)(Java Doc) public static boolean post(URL url, String path, String mime, String data) throws IOException(Code)(Java Doc) public static boolean postPlain(URL url, String path, OutputStream data) throws IOException(Code)(Java Doc)
|
|
|