Java Doc for JGraphpadGXLCodec.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) 


java.lang.Object
   com.jgraph.codecplugin.JGraphpadGXLCodec

JGraphpadGXLCodec
public class JGraphpadGXLCodec (Code)
GXL Codec.


Field Summary
static transient  HashtabledecodeHash
    
static transient  HashtableencodeHash
    


Method Summary
protected static  MapcreateDefaultAttributes(Map map)
     Returns an attributeMap for the specified position and color.
public static  voiddecode(InputStream inputStream, GraphLayoutCache cache, Object vertexPrototype, Object edgePrototype)
     Decodes a GXL File.
protected static  voiddecodeCell(Node gnode, Map gnode_attrs)
    
protected static  voiddecodeEdge(Node enode, Map enode_attrs)
     Decodes a Edge.
public static  Stringencode(JGraph graph)
     Create a GXL-representation for all the cells.
Parameters:
  graph - JGraph to encode.
public static  Stringencode(JGraph graph, Object[] cells)
     Create a GXL-representation for the specified cells.
Parameters:
  graph - JGraph to encode.
Parameters:
  cells - Selected cells to be encoded.
protected static  StringencodeAttribute(String values, String attributeName, int level)
     Attribute encoding.
Parameters:
  values - Values of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level.
protected static  StringencodeBean(Object bean, String attributeName, int level)
     Bean encoding.
protected static  StringencodeBoolean(boolean value, String attributeName, int level)
     Boolean encoding.
Parameters:
  value - Value of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level.
protected static  StringencodeColor(Color color, String attributeName, int level)
     Color encoding.
Parameters:
  color - Color of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level.
protected static  StringencodeEdge(JGraph graph, Object id, Object edge)
     Encode a Edge of a graph
Parameters:
  graph - Graph containing the edge.
Parameters:
  id - Id of the vertex.
Parameters:
  edge - Edge to be encoded.
protected static  StringencodeFont(Font font, String attributeName, int level)
     Font encoding.
Parameters:
  font - Font of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level.
protected static  StringencodeInteger(int value, String attributeName, int level)
     Integer encoding.
Parameters:
  value - Value of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level.
protected static  StringencodeRectangle(Rectangle2D rec, String attributeName, int level)
     Rectangle encoding.
Parameters:
  rec - Rectangle to be encoded.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level.
protected static  StringencodeString(String value, String attributeName, int level)
     String encoding.
Parameters:
  value - Value of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level.
protected static  StringencodeValue(String type, String value, int level)
     Basic value encoding.
Parameters:
  type - GXL Type of the value (int, bool, ...)
Parameters:
  value - Value to be encoded.
Parameters:
  level - Tab level.
protected static  StringencodeValue(int value, int level)
     Basic integer encoding.
Parameters:
  value - Value to be encoded.
Parameters:
  level - Tab level.
protected static  StringencodeValue(String value, int level)
     Basic String encoding.
Parameters:
  value - Value to be encoded.
Parameters:
  level - Tab level.
protected static  StringencodeVertex(JGraph graph, String id, Object vertex)
     Encode a Vertex of a graph
Parameters:
  graph - Graph containing the vertex.
Parameters:
  id - Id of the vertex.
Parameters:
  vertex - Vertex to be encoded.
protected static  StringgetLabel(Node node)
    
public static  HashtablegetLastDecodingHashtable()
     Retrieves the decoding Hashtable with the node's Id.
public static  HashtablegetLastEncodingHashtable()
     Retrieves the encoding Hashtable with the node's Id.
public static  booleangetValidateDTD()
    
protected static  voidreadGXLAttributeValues(Node enode, LinkedList values)
     Reads the values of an GXL Attribute.
Parameters:
  enode - Node to read.
Parameters:
  values - List to populate : with 2 dimension String arrys.
public static  voidsetValidateDTD(boolean validate)
    

Field Detail
decodeHash
static transient Hashtable decodeHash(Code)



encodeHash
static transient Hashtable encodeHash(Code)





Method Detail
createDefaultAttributes
protected static Map createDefaultAttributes(Map map)(Code)
Returns an attributeMap for the specified position and color.



decode
public static void decode(InputStream inputStream, GraphLayoutCache cache, Object vertexPrototype, Object edgePrototype) throws Exception(Code)
Decodes a GXL File.
Parameters:
  inputStream - Stream to be decoded.
Parameters:
  cache - GraphLayoutCache where the decode file is inserted.



decodeCell
protected static void decodeCell(Node gnode, Map gnode_attrs)(Code)
Extracts visual properties of the node from the child 'view' element Currently recognized properties: - Bounds - color - background-color - autosize - Font - Line-End, Line-size, Line-color



decodeEdge
protected static void decodeEdge(Node enode, Map enode_attrs)(Code)
Decodes a Edge.
Parameters:
  enode - XML Node.
Parameters:
  enode_attrs - Cell Attributes.



encode
public static String encode(JGraph graph)(Code)
Create a GXL-representation for all the cells.
Parameters:
  graph - JGraph to encode. Encoded string.



encode
public static String encode(JGraph graph, Object[] cells)(Code)
Create a GXL-representation for the specified cells.
Parameters:
  graph - JGraph to encode.
Parameters:
  cells - Selected cells to be encoded. Encoded string.



encodeAttribute
protected static String encodeAttribute(String values, String attributeName, int level)(Code)
Attribute encoding.
Parameters:
  values - Values of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level. Encoded string.



encodeBean
protected static String encodeBean(Object bean, String attributeName, int level)(Code)
Bean encoding. This is usefull to encode the userObject in the Vertex. It must be a bean with a beanInfo class in order to inspect it.
Parameters:
  bean - Bean to be encoded.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level. Encoded string.



encodeBoolean
protected static String encodeBoolean(boolean value, String attributeName, int level)(Code)
Boolean encoding.
Parameters:
  value - Value of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level. Encoded string.



encodeColor
protected static String encodeColor(Color color, String attributeName, int level)(Code)
Color encoding.
Parameters:
  color - Color of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level. Encoded string.



encodeEdge
protected static String encodeEdge(JGraph graph, Object id, Object edge)(Code)
Encode a Edge of a graph
Parameters:
  graph - Graph containing the edge.
Parameters:
  id - Id of the vertex.
Parameters:
  edge - Edge to be encoded. Encoded string.



encodeFont
protected static String encodeFont(Font font, String attributeName, int level)(Code)
Font encoding.
Parameters:
  font - Font of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level. Encoded string.



encodeInteger
protected static String encodeInteger(int value, String attributeName, int level)(Code)
Integer encoding.
Parameters:
  value - Value of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level. Encoded string.



encodeRectangle
protected static String encodeRectangle(Rectangle2D rec, String attributeName, int level)(Code)
Rectangle encoding.
Parameters:
  rec - Rectangle to be encoded.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level. Encoded string.



encodeString
protected static String encodeString(String value, String attributeName, int level)(Code)
String encoding.
Parameters:
  value - Value of the attribute.
Parameters:
  attributeName - name of the attribute.
Parameters:
  level - Tab level. Encoded string.



encodeValue
protected static String encodeValue(String type, String value, int level)(Code)
Basic value encoding.
Parameters:
  type - GXL Type of the value (int, bool, ...)
Parameters:
  value - Value to be encoded.
Parameters:
  level - Tab level. Encoded string.



encodeValue
protected static String encodeValue(int value, int level)(Code)
Basic integer encoding.
Parameters:
  value - Value to be encoded.
Parameters:
  level - Tab level. Encoded string.



encodeValue
protected static String encodeValue(String value, int level)(Code)
Basic String encoding.
Parameters:
  value - Value to be encoded.
Parameters:
  level - Tab level. Encoded string.



encodeVertex
protected static String encodeVertex(JGraph graph, String id, Object vertex)(Code)
Encode a Vertex of a graph
Parameters:
  graph - Graph containing the vertex.
Parameters:
  id - Id of the vertex.
Parameters:
  vertex - Vertex to be encoded. Encoded string.



getLabel
protected static String getLabel(Node node)(Code)



getLastDecodingHashtable
public static Hashtable getLastDecodingHashtable()(Code)
Retrieves the decoding Hashtable with the node's Id. It may be usefull to sirialize the values of the nodes. Hastable with elements : ((key : node), (value : GXL id)).



getLastEncodingHashtable
public static Hashtable getLastEncodingHashtable()(Code)
Retrieves the encoding Hashtable with the node's Id. It may be usefull to sirialize the values of the nodes. Hastable with elements : ((key : node), (value : GXL id)).



getValidateDTD
public static boolean getValidateDTD()(Code)
Getter for the property validateDTD



readGXLAttributeValues
protected static void readGXLAttributeValues(Node enode, LinkedList values)(Code)
Reads the values of an GXL Attribute.
Parameters:
  enode - Node to read.
Parameters:
  values - List to populate : with 2 dimension String arrys. return[0] :type of value return[1] : value



setValidateDTD
public static void setValidateDTD(boolean validate)(Code)
Setter for the property validateDTD
Parameters:
  validate - True, the validation will occur.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.