Java Doc for JGraphpadCodecAction.java in  » Graphic-Library » jgraphpad » com » jgraph » codecplugin » 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.codecplugin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Field Summary
final public static  StringNAME_IMPORTGXL
     Specifies the name for the importGXL action.
final public static  StringNAME_SAVEGRAPHVIZ
     Specifies the name for the saveGraphviz action.
final public static  StringNAME_SAVEGXL
     Specifies the name for the saveGXL action.
final public static  StringNAME_SAVEIMAGEMAP
     Specifies the name for the saveImageMap action.

Constructor Summary
protected  JGraphpadCodecAction(String name, JGraphEditor editor)
     Constructs a new export action for the specified name.

Method Summary
public  voidactionPerformed(ActionEvent event)
     Executes the action based on the action name.
protected  voiddoImportGXL(GraphLayoutCache cache, String filename)
     Imports the specified GXL file into the specified graph.
protected  voiddoSaveImageMap(JGraph graph, String filename, int inset)
     Exports the specified graph as an image map.
protected  StringgetAlt(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  StringgetURL(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  intwriteMap(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.

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




Constructor Detail
JGraphpadCodecAction
protected JGraphpadCodecAction(String name, JGraphEditor editor)(Code)
Constructs a new export action for the specified name.




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



writeMap
protected int writeMap(JGraph graph, String mapName, int inset, OutputStream out)(Code)
Writes a HTML image map to the specified stream applying inset to the coordinates of all cells. To find the URL and alt tag value of each cell, the JGraphpadCodecAction.getURL(JGraph,Object) and JGraphpadCodecAction.getAlt(JGraph,Object) methods are used respectively.
Parameters:
  graph - The graph to create the image map for.
Parameters:
  mapName - The name of the image map in the HTML code. Returns the number of entries in the map.



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.