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

JGraphpadMarqueeHandler
public class JGraphpadMarqueeHandler extends BasicMarqueeHandler (Code)
Marquee handler that implements popup menus and folding (by icon). This implements the event processing order for all graphs in the following way:
  • If a folding icon is under the mouse pointer all processing is blocked until the mouse is released. On release, the group's collapsed state is toggled and the group is selected.
  • If the right mouse button is used without holding down the shift key then a popup menu is displayed. If there is a cell under the mouse pointer which is not selected, then the cell is selected on mouse down. If the mouse is right-clicked on the background then the selection is cleared before the popup is displayed.


Field Summary
public static  StringNODENAME_CELLPOPUPMENU
     Defines the nodename used to configure the cellpopupmenu.
public static  StringNODENAME_GRAPHPOPUPMENU
     Defines the nodename used to configure the graphpopupmenu.
protected  JGraphEditoreditor
     References the enclosing editor.
protected  CellViewgroupView
     Holds the group view if the interaction started on a folding icon.

Constructor Summary
public  JGraphpadMarqueeHandler(JGraphEditor editor)
     Constructs a new editor using the specified editor to configure and create popup menus.

Method Summary
protected  CellViewgetGroupByFoldingHandle(JGraph graph, Point2D pt)
     Returns the cell view at the specified location if the location is over the cell view's folding icon.
Parameters:
  graph - The graph to get the cell views from.
Parameters:
  pt - The location to check for a folding icon.
protected  NodegetPopupMenuConfiguration(MouseEvent event)
     Returns the popup menu configuration for the specified event.
public  booleanisForceMarqueeEvent(MouseEvent event)
     Extends the parent's implementation to implement the event processing order.
public  voidmousePressed(MouseEvent event)
     Overrides the parent's implementation to either block processing if a group view is scheduled to be collapsed/expanded or immediately select the cell under the mouse pointer if it is not selected.
public  voidmouseReleased(MouseEvent e)
     Overrides the parent's implementation to display a popup menu using JGraphpadMarqueeHandler.getPopupMenuConfiguration(MouseEvent) to obtain the configuration or toggle the collapsed state of JGraphpadMarqueeHandler.groupView and select the respective cell.

Field Detail
NODENAME_CELLPOPUPMENU
public static String NODENAME_CELLPOPUPMENU(Code)
Defines the nodename used to configure the cellpopupmenu.



NODENAME_GRAPHPOPUPMENU
public static String NODENAME_GRAPHPOPUPMENU(Code)
Defines the nodename used to configure the graphpopupmenu.



editor
protected JGraphEditor editor(Code)
References the enclosing editor. The editor is used to configure and create the popup menus.



groupView
protected CellView groupView(Code)
Holds the group view if the interaction started on a folding icon.




Constructor Detail
JGraphpadMarqueeHandler
public JGraphpadMarqueeHandler(JGraphEditor editor)(Code)
Constructs a new editor using the specified editor to configure and create popup menus.
Parameters:
  editor - The enclosing editor.




Method Detail
getGroupByFoldingHandle
protected CellView getGroupByFoldingHandle(JGraph graph, Point2D pt)(Code)
Returns the cell view at the specified location if the location is over the cell view's folding icon.
Parameters:
  graph - The graph to get the cell views from.
Parameters:
  pt - The location to check for a folding icon. Returns the topmost cell view who's folding icon is under themouse pointer.



getPopupMenuConfiguration
protected Node getPopupMenuConfiguration(MouseEvent event)(Code)
Returns the popup menu configuration for the specified event. This implementation looks at the event source and returns a JGraphpadMarqueeHandler.NODENAME_CELLPOPUPMENU or JGraphpadMarqueeHandler.NODENAME_GRAPHPOPUPMENU configuration based on the selection state of the graph.
Parameters:
  event - The event that triggered the display of the popup menu. Returns the popup menu configuration for event.



isForceMarqueeEvent
public boolean isForceMarqueeEvent(MouseEvent event)(Code)
Extends the parent's implementation to implement the event processing order.
Parameters:
  event - The object that describes the event.



mousePressed
public void mousePressed(MouseEvent event)(Code)
Overrides the parent's implementation to either block processing if a group view is scheduled to be collapsed/expanded or immediately select the cell under the mouse pointer if it is not selected.
Parameters:
  event - The object that describes the event.



mouseReleased
public void mouseReleased(MouseEvent e)(Code)
Overrides the parent's implementation to display a popup menu using JGraphpadMarqueeHandler.getPopupMenuConfiguration(MouseEvent) to obtain the configuration or toggle the collapsed state of JGraphpadMarqueeHandler.groupView and select the respective cell. The state of the handler is reset after event processing.
Parameters:
  e - The object that describes the event.



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