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


com.jgraph.editor.JGraphEditorAction
   com.jgraph.pad.action.JGraphpadEditAction

JGraphpadEditAction
public class JGraphpadEditAction extends JGraphEditorAction (Code)
Implements all actions of the edit menu. The selectPath and selectTree actions are implemented by plugins.

Inner Class :public static class AllActions implements Bundle

Field Summary
final public static  StringNAME_CLEARSELECTION
     Specifies the name for the clearSelection action.
final public static  StringNAME_COPY
     Specifies the name for the copy action.
final public static  StringNAME_CUT
     Specifies the name for the cut action.
final public static  StringNAME_DELETE
     Specifies the name for the delete action.
final public static  StringNAME_DESELECTEDGES
     Specifies the name for the deselectEdges action.
final public static  StringNAME_DESELECTVERTICES
     Specifies the name for the deselectVertices action.
final public static  StringNAME_EDIT
     Specifies the name for the edit action.
final public static  StringNAME_FIND
     Specifies the name for the find action.
final public static  StringNAME_FINDAGAIN
     Specifies the name for the findAgain action.
final public static  StringNAME_INVERTSELECTION
     Specifies the name for the invertSelection action.
final public static  StringNAME_PASTE
     Specifies the name for the paste action.
final public static  StringNAME_REDO
     Specifies the name for the redo action.
final public static  StringNAME_SELECTALL
     Specifies the name for the selectAll action.
final public static  StringNAME_SELECTEDGES
     Specifies the name for the selectEdges action.
final public static  StringNAME_SELECTVERTICES
     Specifies the name for the selectVertices action.
final public static  StringNAME_UNDO
     Specifies the name for the undo action.
protected  ActionfallbackAction
     Fallback action if the focus-owner is not a graph.
protected static  ObjectlastFoundCell
     Holds the last found cell for a search.
protected static  PatternlastSearchPattern
     Holds the last search expression.

Constructor Summary
public  JGraphpadEditAction(String name)
     Constructs a new edit action for the specified name.

Method Summary
public  voidactionPerformed(ActionEvent e)
     Executes the action based on the action name.
protected  voiddoEdit(JGraph graph)
     Starts editing the selection cell in the specified graph.
public  voiddoFindAgain(JGraph graph)
     Displays a dialog for JGraphpadEditAction.lastSearchPattern if it is null and performs a search using regular expression matching starting at JGraphpadEditAction.lastFoundCell .
public  voiddoInvertSelection(JGraph graph)
     Inverts the selection in the specified graph by selecting all cells for which JGraphpadEditAction.isParentSelected(JGraph,Object) returns false.
protected  voiddoRedo(JGraphEditorDiagramPane diagramPane)
     Undos the last operation in the specified diagram pane.
protected  voiddoSelect(JGraph graph, boolean all, boolean edges, boolean deselect)
     Adds or removes the specified cells to/from the selection.
protected  voiddoUndo(JGraphEditorDiagramPane diagramPane)
     Undos the last operation in the specified diagram pane.
public  ActiongetFallbackAction()
     Returns the fallback action.
protected  booleanisParentSelected(JGraph graph, Object cell)
     Helper method that returns true if either the cell or one of its parent is selected in graph.
Parameters:
  graph - The graph to check if the cell is selected in.
Parameters:
  cell - The cell that is to be tested for selection.

Field Detail
NAME_CLEARSELECTION
final public static String NAME_CLEARSELECTION(Code)
Specifies the name for the clearSelection action.



NAME_COPY
final public static String NAME_COPY(Code)
Specifies the name for the copy action.



NAME_CUT
final public static String NAME_CUT(Code)
Specifies the name for the cut action.



NAME_DELETE
final public static String NAME_DELETE(Code)
Specifies the name for the delete action.



NAME_DESELECTEDGES
final public static String NAME_DESELECTEDGES(Code)
Specifies the name for the deselectEdges action.



NAME_DESELECTVERTICES
final public static String NAME_DESELECTVERTICES(Code)
Specifies the name for the deselectVertices action.



NAME_EDIT
final public static String NAME_EDIT(Code)
Specifies the name for the edit action.



NAME_FIND
final public static String NAME_FIND(Code)
Specifies the name for the find action.



NAME_FINDAGAIN
final public static String NAME_FINDAGAIN(Code)
Specifies the name for the findAgain action.



NAME_INVERTSELECTION
final public static String NAME_INVERTSELECTION(Code)
Specifies the name for the invertSelection action.



NAME_PASTE
final public static String NAME_PASTE(Code)
Specifies the name for the paste action.



NAME_REDO
final public static String NAME_REDO(Code)
Specifies the name for the redo action.



NAME_SELECTALL
final public static String NAME_SELECTALL(Code)
Specifies the name for the selectAll action.



NAME_SELECTEDGES
final public static String NAME_SELECTEDGES(Code)
Specifies the name for the selectEdges action.



NAME_SELECTVERTICES
final public static String NAME_SELECTVERTICES(Code)
Specifies the name for the selectVertices action.



NAME_UNDO
final public static String NAME_UNDO(Code)
Specifies the name for the undo action.



fallbackAction
protected Action fallbackAction(Code)
Fallback action if the focus-owner is not a graph. This is assigned internally for special action names, namely cut, copy, paste and delete for text components.



lastFoundCell
protected static Object lastFoundCell(Code)
Holds the last found cell for a search.



lastSearchPattern
protected static Pattern lastSearchPattern(Code)
Holds the last search expression. Note: In a multi application environment you may have to put this into the application instance.




Constructor Detail
JGraphpadEditAction
public JGraphpadEditAction(String name)(Code)
Constructs a new edit action for the specified name. This constructs the JGraphpadEditAction.fallbackAction for text components in case of supported actions.
Parameters:
  name - The name of the action to be created.




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)
Executes the action based on the action name.
Parameters:
  e - The object that describes the event.



doEdit
protected void doEdit(JGraph graph)(Code)
Starts editing the selection cell in the specified graph.
Parameters:
  graph - The graph to perform the operation in.



doFindAgain
public void doFindAgain(JGraph graph)(Code)
Displays a dialog for JGraphpadEditAction.lastSearchPattern if it is null and performs a search using regular expression matching starting at JGraphpadEditAction.lastFoundCell . The found cell is selected and scrolled to. If no cell is found an error message is displayed.
Parameters:
  graph - The graph to perform the operation in.



doInvertSelection
public void doInvertSelection(JGraph graph)(Code)
Inverts the selection in the specified graph by selecting all cells for which JGraphpadEditAction.isParentSelected(JGraph,Object) returns false.
Parameters:
  graph - The graph to perform the operation in.



doRedo
protected void doRedo(JGraphEditorDiagramPane diagramPane)(Code)
Undos the last operation in the specified diagram pane.
Parameters:
  diagramPane - The diagram pane to perform the operation in.



doSelect
protected void doSelect(JGraph graph, boolean all, boolean edges, boolean deselect)(Code)
Adds or removes the specified cells to/from the selection. If all is true then edges is ignored.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  all - Whether all cells should be selected.
Parameters:
  edges - Whether edges or vertices should be selected.
Parameters:
  deselect - Whether to remove the cells from the selection.



doUndo
protected void doUndo(JGraphEditorDiagramPane diagramPane)(Code)
Undos the last operation in the specified diagram pane.
Parameters:
  diagramPane - The diagram pane to perform the operation in.



getFallbackAction
public Action getFallbackAction()(Code)
Returns the fallback action. Returns the fallbackAction.



isParentSelected
protected boolean isParentSelected(JGraph graph, Object cell)(Code)
Helper method that returns true if either the cell or one of its parent is selected in graph.
Parameters:
  graph - The graph to check if the cell is selected in.
Parameters:
  cell - The cell that is to be tested for selection. Returns true if cell or one of its ancestors is selected.



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.