| com.jgraph.editor.JGraphEditorAction com.jgraph.pad.action.JGraphpadFileAction com.jgraph.svgplugin.JGraphpadSVGAction
JGraphpadSVGAction | public class JGraphpadSVGAction extends JGraphpadFileAction (Code) | | Implements all actions that require Batik in the classpath.
|
Inner Class :public static class AllActions implements Bundle | |
MIME_SVG | final public static String MIME_SVG(Code) | | Defines the mime type for SVG content (image/svg+xml).
|
NAME_SAVESVG | final public static String NAME_SAVESVG(Code) | | Specifies the name for the saveSVG action.
|
NAME_SVGSERVER | final public static String NAME_SVGSERVER(Code) | | Specifies the name for the svgServer action.
|
JGraphpadSVGAction | public JGraphpadSVGAction(String name, JGraphEditor editor)(Code) | | Constructs a new Batik action for the specified name.
|
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Executes the action based on the action name.
Parameters: e - The object that describes the event. |
doSaveSVG | public void doSaveSVG(JGraph graph, int inset, String filename) throws IOException(Code) | | Saves the specified graph as an SVG vector graphics file.
Parameters: graph - The graph to write as an SVG file. Parameters: inset - The inset to use for the SVG graphics. Parameters: filename - The filename to write the SVG. |
writeSVG | public static void writeSVG(JGraph graph, OutputStream out, int inset) throws UnsupportedEncodingException, SVGGraphics2DIOException(Code) | | Writes the specified graph as an SVG stream to the specified output
stream.
Parameters: graph - The graph to be converted into an SVG stream. Parameters: out - The output stream to use for writing out the SVG stream. Parameters: inset - The inset of the SVG graphics. |
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)
|
|
|