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


com.jgraph.pad.tool.JGraphpadVertexTool
   com.jgraph.pad.tool.JGraphpadEdgeTool

JGraphpadEdgeTool
public class JGraphpadEdgeTool extends JGraphpadVertexTool (Code)
Tool that inserts edges based on a prototype.


Field Summary
final public static  StringNAME_EDGETOOL
     Defines the default name for tools of this kind.
protected  PortViewstartcurrent
     Initial and current port view.

Constructor Summary
public  JGraphpadEdgeTool(Object prototype)
     Constructs a new edge tool for the specified prototype using JGraphpadEdgeTool.NAME_EDGETOOL .
public  JGraphpadEdgeTool(String name, Object prototype)
     Constructs a new edge tool for the specified name and prototype.

Method Summary
protected  voidexecute(JGraph graph, Object edge)
     Overrides the parent's implementation to insert the specified edge into cache.
public  booleanisForceMarqueeEvent(MouseEvent event)
     Returns true if the in any case except the selection cell under the mouse pointer is an edge.
public  voidmouseDragged(MouseEvent event)
     Overrides the parent's implementation to avoid flickering by checking if the state of the preview will change.
public  voidmouseMoved(MouseEvent event)
     Overrides the parent's implementation to highlight ports which are under the mousepointer.
public  voidmousePressed(MouseEvent event)
     Extends the parent's implementation to find the port view at the mouse location and set the startPoint accordingly.
public  voidmouseReleased(MouseEvent event)
     Extends the parent's implementation to reset JGraphpadEdgeTool.start and JGraphpadEdgeTool.current .
public  voidoverlay(JGraph graph, Graphics g, boolean clear)
     Extends the parent's implementation to draw the highlighted port using JGraphpadEdgeTool.paintPort(JGraph,Graphics) .
protected  voidpaintPort(JGraph graph, Graphics g)
     Paints the JGraphpadEdgeTool.current port in highlighted state.
protected  voidprocessMouseDraggedEvent(MouseEvent event)
     Overrides the parent's implementation to update the preview to connect to the port under the mouse or use the location of the mouse as a point.

Field Detail
NAME_EDGETOOL
final public static String NAME_EDGETOOL(Code)
Defines the default name for tools of this kind.



startcurrent
protected PortView startcurrent(Code)
Initial and current port view.




Constructor Detail
JGraphpadEdgeTool
public JGraphpadEdgeTool(Object prototype)(Code)
Constructs a new edge tool for the specified prototype using JGraphpadEdgeTool.NAME_EDGETOOL .
Parameters:
  prototype - The prototype cell to create new edges with.



JGraphpadEdgeTool
public JGraphpadEdgeTool(String name, Object prototype)(Code)
Constructs a new edge tool for the specified name and prototype. Edgetools must be always active to be able to click on source/target vertices without triggering a cell move.
Parameters:
  name - The name of the tool to be created.
Parameters:
  prototype - The prototype cell to create new edges with.




Method Detail
execute
protected void execute(JGraph graph, Object edge)(Code)
Overrides the parent's implementation to insert the specified edge into cache.
Parameters:
  cache - The cache into which to insert the edge.
Parameters:
  edge - The edge to be inserted into cache.



isForceMarqueeEvent
public boolean isForceMarqueeEvent(MouseEvent event)(Code)
Returns true if the in any case except the selection cell under the mouse pointer is an edge. This is used to fetch control when a source/target selection is made for connecting via a new edge. Returns false if the selection cell under the mouse is an edge.



mouseDragged
public void mouseDragged(MouseEvent event)(Code)
Overrides the parent's implementation to avoid flickering by checking if the state of the preview will change.
Parameters:
  event - The object that describes the event.



mouseMoved
public void mouseMoved(MouseEvent event)(Code)
Overrides the parent's implementation to highlight ports which are under the mousepointer.
Parameters:
  event - The object that describes the event.



mousePressed
public void mousePressed(MouseEvent event)(Code)
Extends the parent's implementation to find the port view at the mouse location and set the startPoint accordingly.
Parameters:
  event - The object that describes the event.



mouseReleased
public void mouseReleased(MouseEvent event)(Code)
Extends the parent's implementation to reset JGraphpadEdgeTool.start and JGraphpadEdgeTool.current .
Parameters:
  event - The object that describes the event.



overlay
public void overlay(JGraph graph, Graphics g, boolean clear)(Code)
Extends the parent's implementation to draw the highlighted port using JGraphpadEdgeTool.paintPort(JGraph,Graphics) .
Parameters:
  graph - The graph to paint in.
Parameters:
  g - The graphics to use for paiting.
Parameters:
  clear - Wether to clear the display.



paintPort
protected void paintPort(JGraph graph, Graphics g)(Code)
Paints the JGraphpadEdgeTool.current port in highlighted state.
Parameters:
  graph - The graph to paint the port in.
Parameters:
  g - The graphics to use for paiting.



processMouseDraggedEvent
protected void processMouseDraggedEvent(MouseEvent event)(Code)
Overrides the parent's implementation to update the preview to connect to the port under the mouse or use the location of the mouse as a point.
Parameters:
  event - The object that describes the event.



Fields inherited from com.jgraph.pad.tool.JGraphpadVertexTool
final public static String NAME_VERTEXTOOL(Code)(Java Doc)
protected transient boolean previewEnabled(Code)(Java Doc)
protected transient CellView previewView(Code)(Java Doc)
protected Object prototype(Code)(Java Doc)
protected Dimension singleClickSize(Code)(Java Doc)
protected int threshold(Code)(Java Doc)

Methods inherited from com.jgraph.pad.tool.JGraphpadVertexTool
protected Object createCell(GraphModel model)(Code)(Java Doc)
protected void execute(JGraph graph, Object cell)(Code)(Java Doc)
public Object getPrototype()(Code)(Java Doc)
public Dimension getSingleClickSize()(Code)(Java Doc)
public int getThreshold()(Code)(Java Doc)
protected boolean isConstrainedSizeEvent(MouseEvent event)(Code)(Java Doc)
public boolean isPreviewEnabled()(Code)(Java Doc)
public void mousePressed(MouseEvent event)(Code)(Java Doc)
public void mouseReleased(MouseEvent event)(Code)(Java Doc)
public void overlay(JGraph graph, Graphics g, boolean clear)(Code)(Java Doc)
protected void processMouseDraggedEvent(MouseEvent event)(Code)(Java Doc)
public void setPreviewEnabled(boolean previewEnabled)(Code)(Java Doc)
public void setPrototype(Object prototype)(Code)(Java Doc)
public void setSingleClickSize(Dimension singleClickSize)(Code)(Java Doc)
public void setThreshold(int threshold)(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.