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


com.jgraph.pad.graph.JGraphpadTransferHandler

JGraphpadTransferHandler
public class JGraphpadTransferHandler extends GraphTransferHandler (Code)
Transfer handler for graphs that accepts external files and text.


Field Summary
protected transient  Objectprototype
     Holds the prototype which is used to create new vertices.

Constructor Summary
public  JGraphpadTransferHandler(Object prototype)
     Constructs a new transfer handler for the specified prototype.

Method Summary
public  booleancanImport(JComponent comp, DataFlavor[] flavors)
     Extends the parent implementation to accept text and DataFlavor.javaFileListFlavor flavors.
Parameters:
  comp - The component to drop the transferable to.
Parameters:
  flavors - The supported data flavors of the transferable.
protected  ObjectcreateCell(GraphModel model, Object userObject)
     Constructs a new cell from JGraphpadTransferHandler.prototype using the specified model and assigns it the new user object.
Parameters:
  model - The model to use for cloning the prototype.
Parameters:
  userObject - The user object to be assigned to the clone.
protected  Point2DgetInsertionLocation(JGraph graph)
     Helper method to return the insertion location for a drop operation in the specified graph.
protected  StringgetString(Reader reader)
     Helper method to read the specified reader into a string.
Parameters:
  reader - The reader to read into the string.
public  booleanimportDataImpl(JComponent comp, Transferable t)
     Overrides the parent implementation to import transferable data.
protected  voidinsertValues(JGraph graph, Point2D p, Object[] values)
     Inserts the specified list of values into the specified graph.

Field Detail
prototype
protected transient Object prototype(Code)
Holds the prototype which is used to create new vertices.




Constructor Detail
JGraphpadTransferHandler
public JGraphpadTransferHandler(Object prototype)(Code)
Constructs a new transfer handler for the specified prototype.
Parameters:
  prototype - The prototype to be used to create new cells.




Method Detail
canImport
public boolean canImport(JComponent comp, DataFlavor[] flavors)(Code)
Extends the parent implementation to accept text and DataFlavor.javaFileListFlavor flavors.
Parameters:
  comp - The component to drop the transferable to.
Parameters:
  flavors - The supported data flavors of the transferable. Returns true if the flavor is accepted.



createCell
protected Object createCell(GraphModel model, Object userObject)(Code)
Constructs a new cell from JGraphpadTransferHandler.prototype using the specified model and assigns it the new user object.
Parameters:
  model - The model to use for cloning the prototype.
Parameters:
  userObject - The user object to be assigned to the clone. Returns a prototype clone with the specified user object.



getInsertionLocation
protected Point2D getInsertionLocation(JGraph graph)(Code)
Helper method to return the insertion location for a drop operation in the specified graph. This implementation returns a scaled clone of BasicGraphUI.getInsertionLocation or a dummy point if the insertion location is not available in the graph ui.
Parameters:
  graph - The graph to determine the insertion location for. Returns the insertion location for the specified graph.



getString
protected String getString(Reader reader) throws IOException(Code)
Helper method to read the specified reader into a string.
Parameters:
  reader - The reader to read into the string. Returns the string stored in the reader.



importDataImpl
public boolean importDataImpl(JComponent comp, Transferable t)(Code)
Overrides the parent implementation to import transferable data. Note: It is a special rule in JGraph not to override the GraphTransferHandler.importData(JComponentTransferable) method because the return value has a different semantic. This implementation silently ignores all exceptions.
Parameters:
  comp - The component to drop the transferable to.
Parameters:
  t - The transferable data to be inserted into the component. Returns true if the transferable data was inserted.



insertValues
protected void insertValues(JGraph graph, Point2D p, Object[] values)(Code)
Inserts the specified list of values into the specified graph. If a known image extension is seen then the icon attribute is setup accordingly.
Parameters:
  graph - The graph to insert the cells into.
Parameters:
  p - The point at which to insert the cells.
Parameters:
  values - The list of values to be inserted.



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