Java Doc for JGraphpadSVGAction.java in  » Graphic-Library » jgraphpad » com » jgraph » svgplugin » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » jgraphpad » com.jgraph.svgplugin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Field Summary
final public static  StringMIME_SVG
     Defines the mime type for SVG content (image/svg+xml).
final public static  StringNAME_SAVESVG
     Specifies the name for the saveSVG action.
final public static  StringNAME_SVGSERVER
     Specifies the name for the svgServer action.
protected  JGraphpadSVGServerserver
     Holds the running server instance.

Constructor Summary
public  JGraphpadSVGAction(String name, JGraphEditor editor)
     Constructs a new Batik action for the specified name.

Method Summary
public  voidactionPerformed(ActionEvent e)
     Executes the action based on the action name.
protected  voiddoSVGServer()
     Starts or stops the JGraphpadSVGAction.server .
public  voiddoSaveSVG(JGraph graph, int inset, String filename)
     Saves the specified graph as an SVG vector graphics file.
public static  voidwriteSVG(JGraph graph, OutputStream out, int inset)
     Writes the specified graph as an SVG stream to the specified output stream.

Field Detail
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.



server
protected JGraphpadSVGServer server(Code)
Holds the running server instance.




Constructor Detail
JGraphpadSVGAction
public JGraphpadSVGAction(String name, JGraphEditor editor)(Code)
Constructs a new Batik action for the specified name.




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)
Executes the action based on the action name.
Parameters:
  e - The object that describes the event.



doSVGServer
protected void doSVGServer() throws IOException(Code)
Starts or stops the JGraphpadSVGAction.server .



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.



Fields inherited from com.jgraph.pad.action.JGraphpadFileAction
final public static String KEY_EDGEPROTOTYPE(Code)(Java Doc)
final public static String KEY_MAINWINDOW(Code)(Java Doc)
final public static String KEY_RECENTFILES(Code)(Java Doc)
final public static String KEY_VERTEXPROTOTYPE(Code)(Java Doc)
public static int MAX_RECENTFILES(Code)(Java Doc)
final public static String MIME_PLAINTEXTMIME_HTML(Code)(Java Doc)
final public static String NAME_CLOSE(Code)(Java Doc)
final public static String NAME_CLOSEALL(Code)(Java Doc)
final public static String NAME_DOWNLOAD(Code)(Java Doc)
final public static String NAME_EXIT(Code)(Java Doc)
final public static String NAME_IMPORTCSV(Code)(Java Doc)
final public static String NAME_NEWDIAGRAM(Code)(Java Doc)
final public static String NAME_NEWDOCUMENT(Code)(Java Doc)
final public static String NAME_NEWLIBRARY(Code)(Java Doc)
final public static String NAME_OPEN(Code)(Java Doc)
final public static String NAME_PAGESETUP(Code)(Java Doc)
final public static String NAME_PRINT(Code)(Java Doc)
final public static String NAME_REMOVEDIAGRAM(Code)(Java Doc)
final public static String NAME_RENAMEDIAGRAM(Code)(Java Doc)
final public static String NAME_SAVE(Code)(Java Doc)
final public static String NAME_SAVEALL(Code)(Java Doc)
final public static String NAME_SAVEAS(Code)(Java Doc)
final public static String NAME_SAVEIMAGE(Code)(Java Doc)
final public static String NAME_UPLOADAS(Code)(Java Doc)
protected static JGraphpadDialogs dlgs(Code)(Java Doc)
protected JGraphEditor editor(Code)(Java Doc)
protected File lastDirectory(Code)(Java Doc)

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)

Fields inherited from com.jgraph.editor.JGraphEditorAction
final public static String PROPERTY_ISSELECTED(Code)(Java Doc)
final public static String PROPERTY_ISVISIBLE(Code)(Java Doc)
protected boolean isToggleAction(Code)(Java Doc)

Methods inherited from com.jgraph.editor.JGraphEditorAction
public static Frame getActiveFrame()(Code)(Java Doc)
public static Frame getFrame(ActionEvent event)(Code)(Java Doc)
public static JGraphpadPane getJGraphpadPane()(Code)(Java Doc)
public static JGraphpadPane getJGraphpadPane(JFrame frame)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public static JGraph getParentGraph(Component component)(Code)(Java Doc)
public static Component getPermanentFocusOwner()(Code)(Java Doc)
public static JGraphEditorDiagram getPermanentFocusOwnerDiagram()(Code)(Java Doc)
public static JGraphEditorDiagramPane getPermanentFocusOwnerDiagramPane()(Code)(Java Doc)
public static JGraph getPermanentFocusOwnerGraph()(Code)(Java Doc)
public static Component getPermanentFocusOwnerOrParent()(Code)(Java Doc)
public static String getString(String key)(Code)(Java Doc)
public boolean isSelected()(Code)(Java Doc)
public boolean isToggleAction()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void setEnabled(boolean newValue)(Code)(Java Doc)
public void setSelected(boolean selected)(Code)(Java Doc)
public void setToggleAction(boolean isToggleAction)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.