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

JGraphpadViewAction
public class JGraphpadViewAction extends JGraphEditorAction (Code)
Implements all actions of the view menu. The layout item is added by a the layout plugin.

Inner Class :public static class AllActions implements Bundle

Field Summary
final public static  StringNAME_BACKGROUND
     Specifies the name for the background action.
final public static  StringNAME_BACKGROUNDIMAGE
     Specifies the name for the backgroundImage action.
final public static  StringNAME_BACKGROUNDIMAGEURL
     Specifies the name for the backgroundImageURL action.
final public static  StringNAME_CLEARBACKGROUND
     Specifies the name for the clearBackground action.
final public static  StringNAME_EDITCLICKCOUNT
     Specifies the name for the editClickCount action.
final public static  StringNAME_FITNONE
     Specifies the name for the fitNone action.
final public static  StringNAME_FITPAGE
     Specifies the name for the fitPage action.
final public static  StringNAME_FITWIDTH
     Specifies the name for the fitWidth action.
final public static  StringNAME_FITWINDOW
     Specifies the name for the fitWindow action.
final public static  StringNAME_GRIDCOLOR
     Specifies the name for the gridColor action.
final public static  StringNAME_GRIDSIZE
     Specifies the name for the gridSize action.
final public static  StringNAME_HANDLECOLOR
     Specifies the name for the handleColor action.
final public static  StringNAME_HANDLESIZE
     Specifies the name for the handleSize action.
final public static  StringNAME_LIBRARYLARGER
     Specifies the name for the libraryLarger action.
final public static  StringNAME_LIBRARYSMALLER
     Specifies the name for the librarySmaller action.
final public static  StringNAME_LOCKEDHANDLECOLOR
     Specifies the name for the handleSize action.
final public static  StringNAME_MARQUEECOLOR
     Specifies the name for the handleColor action.
final public static  StringNAME_PORTSIZE
     Specifies the name for the portSize action.
final public static  StringNAME_SWITCHCROSSGRID
     Specifies the name for the switchDotGrid action.
final public static  StringNAME_SWITCHDOTGRID
     Specifies the name for the switchDotGrid action.
final public static  StringNAME_SWITCHLINEGRID
     Specifies the name for the switchDotGrid action.
final public static  StringNAME_TOGGLEANTIALIAS
     Specifies the name for the toggleAntiAlias action.
final public static  StringNAME_TOGGLEDISCONNECTONMOVE
     Specifies the name for the toggleDisconnectOnMove action.
final public static  StringNAME_TOGGLEDOUBLEBUFFERED
     Specifies the name for the toggleDoubleBuffered action.
final public static  StringNAME_TOGGLEDRAGENABLED
     Specifies the name for the toggleDragEnabled action.
final public static  StringNAME_TOGGLEEDITABLE
     Specifies the name for the toggleEditable action.
final public static  StringNAME_TOGGLEGRAPHBENDABLE
     Specifies the name for the toggleGraphBendable action.
final public static  StringNAME_TOGGLEGRAPHCLONEABLE
     Specifies the name for the toggleGraphCloneable action.
final public static  StringNAME_TOGGLEGRAPHCONNECTABLE
     Specifies the name for the toggleGraphConnectable action.
final public static  StringNAME_TOGGLEGRAPHDISCONNECTABLE
     Specifies the name for the toggleGraphDisconnectable action.
final public static  StringNAME_TOGGLEGRAPHMOVEABLE
     Specifies the name for the toggleGraphMoveable action.
final public static  StringNAME_TOGGLEGRAPHSIZEABLE
     Specifies the name for the toggleGraphSizeable action.
final public static  StringNAME_TOGGLEGRID
     Specifies the name for the toggleGrid action.
final public static  StringNAME_TOGGLEHIDESDANGLINGCONNECTIONS
     Specifies the name for the toggleHidesDanglingConnections action.
final public static  StringNAME_TOGGLEHIDESEXISTINGCONNECTIONS
     Specifies the name for the toggleHidesExistingConnections action.
final public static  StringNAME_TOGGLEJUMPSTODEFAULTPORT
     Specifies the name for the toggleJumpsToDefaultPort action.
final public static  StringNAME_TOGGLEMETRIC
     Specifies the name for the toggleMetric action.
final public static  StringNAME_TOGGLEMOVEBELOWZERO
     Specifies the name for the toggleMoveBelowZero action.
final public static  StringNAME_TOGGLEMOVESINTOGROUPS
     Specifies the name for the toggleMovesIntoGroups action.
final public static  StringNAME_TOGGLEMOVESOUTOFGROUPS
     Specifies the name for the toggleMovesOutOfGroups action.
final public static  StringNAME_TOGGLEPAGE
     Specifies the name for the togglePage action.
final public static  StringNAME_TOGGLEPORTS
     Specifies the name for the togglePorts action.
final public static  StringNAME_TOGGLEPORTSSCALED
     Specifies the name for the togglePortsScaled action.
final public static  StringNAME_TOGGLEREMEMBERSCELLVIEWS
     Specifies the name for the toggleRemembersCellViews action.
final public static  StringNAME_TOGGLEROOTHANDLES
     Specifies the name for the toggleRootHandles action.
final public static  StringNAME_TOGGLERULERS
     Specifies the name for the togglerRulers action.
final public static  StringNAME_TOGGLESELECTSALLINSERTEDCELLS
     Specifies the name for the toggleSelectsAllInsertedCells action.
final public static  StringNAME_TOGGLESELECTSLOCALINSERTEDCELLS
     Specifies the name for the toggleSelectsLocalInsertedCells action.
final public static  StringNAME_TOGGLESHOWSCHANGEDCONNECTIONS
     Specifies the name for the toggleShowsChangedConnections action.
final public static  StringNAME_TOGGLESHOWSEXISTINGCONNECTIONS
     Specifies the name for the toggleShowsExistingConnections action.
final public static  StringNAME_TOGGLESHOWSINSERTEDCONNECTIONS
     Specifies the name for the toggleShowsInsertedConnections action.
final public static  StringNAME_TOLERANCE
     Specifies the name for the tolerance action.
final public static  StringNAME_ZOOMACTUAL
     Specifies the name for the zoomActual action.
final public static  StringNAME_ZOOMCUSTOM
     Specifies the name for the zoomCustom action.
final public static  StringNAME_ZOOMIN
     Specifies the name for the zoomIn action.
final public static  StringNAME_ZOOMOUT
     Specifies the name for the zoomOut action.
protected  FilelastDirectory
     Holds the last directory for file operations.

Constructor Summary
public  JGraphpadViewAction(String name)
     Constructs a new view action for the specified name.

Method Summary
public  voidactionPerformed(ActionEvent event)
     Executes the action based on the action name.
protected  voiddoBackground(JGraphEditorDiagramPane diagramPane)
     Displays a color dialog and sets the background color on the specified diagram pane.
protected  voiddoBackgroundImage(JGraphEditorDiagramPane diagramPane, String filename)
     Displays a file- or URL-dialog and uses the filename to set the background image on the specified diagram pane.
protected  voiddoScaleLibraryEntries(JGraphpadLibraryPane pane, boolean larger)
     Doubles or halves the current size of the entries in the specified library pane based on larger.
protected  voiddoZoom(JGraph graph, boolean in, boolean out, boolean custom)
     Sets the zoom on the specified graph depending on the paramters, which are interpreted to be exlusive.

Field Detail
NAME_BACKGROUND
final public static String NAME_BACKGROUND(Code)
Specifies the name for the background action.



NAME_BACKGROUNDIMAGE
final public static String NAME_BACKGROUNDIMAGE(Code)
Specifies the name for the backgroundImage action.



NAME_BACKGROUNDIMAGEURL
final public static String NAME_BACKGROUNDIMAGEURL(Code)
Specifies the name for the backgroundImageURL action.



NAME_CLEARBACKGROUND
final public static String NAME_CLEARBACKGROUND(Code)
Specifies the name for the clearBackground action.



NAME_EDITCLICKCOUNT
final public static String NAME_EDITCLICKCOUNT(Code)
Specifies the name for the editClickCount action.



NAME_FITNONE
final public static String NAME_FITNONE(Code)
Specifies the name for the fitNone action.



NAME_FITPAGE
final public static String NAME_FITPAGE(Code)
Specifies the name for the fitPage action.



NAME_FITWIDTH
final public static String NAME_FITWIDTH(Code)
Specifies the name for the fitWidth action.



NAME_FITWINDOW
final public static String NAME_FITWINDOW(Code)
Specifies the name for the fitWindow action.



NAME_GRIDCOLOR
final public static String NAME_GRIDCOLOR(Code)
Specifies the name for the gridColor action.



NAME_GRIDSIZE
final public static String NAME_GRIDSIZE(Code)
Specifies the name for the gridSize action.



NAME_HANDLECOLOR
final public static String NAME_HANDLECOLOR(Code)
Specifies the name for the handleColor action.



NAME_HANDLESIZE
final public static String NAME_HANDLESIZE(Code)
Specifies the name for the handleSize action.



NAME_LIBRARYLARGER
final public static String NAME_LIBRARYLARGER(Code)
Specifies the name for the libraryLarger action.



NAME_LIBRARYSMALLER
final public static String NAME_LIBRARYSMALLER(Code)
Specifies the name for the librarySmaller action.



NAME_LOCKEDHANDLECOLOR
final public static String NAME_LOCKEDHANDLECOLOR(Code)
Specifies the name for the handleSize action.



NAME_MARQUEECOLOR
final public static String NAME_MARQUEECOLOR(Code)
Specifies the name for the handleColor action.



NAME_PORTSIZE
final public static String NAME_PORTSIZE(Code)
Specifies the name for the portSize action.



NAME_SWITCHCROSSGRID
final public static String NAME_SWITCHCROSSGRID(Code)
Specifies the name for the switchDotGrid action.



NAME_SWITCHDOTGRID
final public static String NAME_SWITCHDOTGRID(Code)
Specifies the name for the switchDotGrid action.



NAME_SWITCHLINEGRID
final public static String NAME_SWITCHLINEGRID(Code)
Specifies the name for the switchDotGrid action.



NAME_TOGGLEANTIALIAS
final public static String NAME_TOGGLEANTIALIAS(Code)
Specifies the name for the toggleAntiAlias action.



NAME_TOGGLEDISCONNECTONMOVE
final public static String NAME_TOGGLEDISCONNECTONMOVE(Code)
Specifies the name for the toggleDisconnectOnMove action.



NAME_TOGGLEDOUBLEBUFFERED
final public static String NAME_TOGGLEDOUBLEBUFFERED(Code)
Specifies the name for the toggleDoubleBuffered action.



NAME_TOGGLEDRAGENABLED
final public static String NAME_TOGGLEDRAGENABLED(Code)
Specifies the name for the toggleDragEnabled action.



NAME_TOGGLEEDITABLE
final public static String NAME_TOGGLEEDITABLE(Code)
Specifies the name for the toggleEditable action.



NAME_TOGGLEGRAPHBENDABLE
final public static String NAME_TOGGLEGRAPHBENDABLE(Code)
Specifies the name for the toggleGraphBendable action.



NAME_TOGGLEGRAPHCLONEABLE
final public static String NAME_TOGGLEGRAPHCLONEABLE(Code)
Specifies the name for the toggleGraphCloneable action.



NAME_TOGGLEGRAPHCONNECTABLE
final public static String NAME_TOGGLEGRAPHCONNECTABLE(Code)
Specifies the name for the toggleGraphConnectable action.



NAME_TOGGLEGRAPHDISCONNECTABLE
final public static String NAME_TOGGLEGRAPHDISCONNECTABLE(Code)
Specifies the name for the toggleGraphDisconnectable action.



NAME_TOGGLEGRAPHMOVEABLE
final public static String NAME_TOGGLEGRAPHMOVEABLE(Code)
Specifies the name for the toggleGraphMoveable action.



NAME_TOGGLEGRAPHSIZEABLE
final public static String NAME_TOGGLEGRAPHSIZEABLE(Code)
Specifies the name for the toggleGraphSizeable action.



NAME_TOGGLEGRID
final public static String NAME_TOGGLEGRID(Code)
Specifies the name for the toggleGrid action.



NAME_TOGGLEHIDESDANGLINGCONNECTIONS
final public static String NAME_TOGGLEHIDESDANGLINGCONNECTIONS(Code)
Specifies the name for the toggleHidesDanglingConnections action.



NAME_TOGGLEHIDESEXISTINGCONNECTIONS
final public static String NAME_TOGGLEHIDESEXISTINGCONNECTIONS(Code)
Specifies the name for the toggleHidesExistingConnections action.



NAME_TOGGLEJUMPSTODEFAULTPORT
final public static String NAME_TOGGLEJUMPSTODEFAULTPORT(Code)
Specifies the name for the toggleJumpsToDefaultPort action.



NAME_TOGGLEMETRIC
final public static String NAME_TOGGLEMETRIC(Code)
Specifies the name for the toggleMetric action.



NAME_TOGGLEMOVEBELOWZERO
final public static String NAME_TOGGLEMOVEBELOWZERO(Code)
Specifies the name for the toggleMoveBelowZero action.



NAME_TOGGLEMOVESINTOGROUPS
final public static String NAME_TOGGLEMOVESINTOGROUPS(Code)
Specifies the name for the toggleMovesIntoGroups action.



NAME_TOGGLEMOVESOUTOFGROUPS
final public static String NAME_TOGGLEMOVESOUTOFGROUPS(Code)
Specifies the name for the toggleMovesOutOfGroups action.



NAME_TOGGLEPAGE
final public static String NAME_TOGGLEPAGE(Code)
Specifies the name for the togglePage action.



NAME_TOGGLEPORTS
final public static String NAME_TOGGLEPORTS(Code)
Specifies the name for the togglePorts action.



NAME_TOGGLEPORTSSCALED
final public static String NAME_TOGGLEPORTSSCALED(Code)
Specifies the name for the togglePortsScaled action.



NAME_TOGGLEREMEMBERSCELLVIEWS
final public static String NAME_TOGGLEREMEMBERSCELLVIEWS(Code)
Specifies the name for the toggleRemembersCellViews action.



NAME_TOGGLEROOTHANDLES
final public static String NAME_TOGGLEROOTHANDLES(Code)
Specifies the name for the toggleRootHandles action.



NAME_TOGGLERULERS
final public static String NAME_TOGGLERULERS(Code)
Specifies the name for the togglerRulers action.



NAME_TOGGLESELECTSALLINSERTEDCELLS
final public static String NAME_TOGGLESELECTSALLINSERTEDCELLS(Code)
Specifies the name for the toggleSelectsAllInsertedCells action.



NAME_TOGGLESELECTSLOCALINSERTEDCELLS
final public static String NAME_TOGGLESELECTSLOCALINSERTEDCELLS(Code)
Specifies the name for the toggleSelectsLocalInsertedCells action.



NAME_TOGGLESHOWSCHANGEDCONNECTIONS
final public static String NAME_TOGGLESHOWSCHANGEDCONNECTIONS(Code)
Specifies the name for the toggleShowsChangedConnections action.



NAME_TOGGLESHOWSEXISTINGCONNECTIONS
final public static String NAME_TOGGLESHOWSEXISTINGCONNECTIONS(Code)
Specifies the name for the toggleShowsExistingConnections action.



NAME_TOGGLESHOWSINSERTEDCONNECTIONS
final public static String NAME_TOGGLESHOWSINSERTEDCONNECTIONS(Code)
Specifies the name for the toggleShowsInsertedConnections action.



NAME_TOLERANCE
final public static String NAME_TOLERANCE(Code)
Specifies the name for the tolerance action.



NAME_ZOOMACTUAL
final public static String NAME_ZOOMACTUAL(Code)
Specifies the name for the zoomActual action.



NAME_ZOOMCUSTOM
final public static String NAME_ZOOMCUSTOM(Code)
Specifies the name for the zoomCustom action.



NAME_ZOOMIN
final public static String NAME_ZOOMIN(Code)
Specifies the name for the zoomIn action.



NAME_ZOOMOUT
final public static String NAME_ZOOMOUT(Code)
Specifies the name for the zoomOut action.



lastDirectory
protected File lastDirectory(Code)
Holds the last directory for file operations.




Constructor Detail
JGraphpadViewAction
public JGraphpadViewAction(String name)(Code)
Constructs a new view action for the specified name. If the action name starts with toggle, fit or switch then the action is configured to be a toggle action.
Parameters:
  name - The name of the action to be created.




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



doBackground
protected void doBackground(JGraphEditorDiagramPane diagramPane)(Code)
Displays a color dialog and sets the background color on the specified diagram pane.
Parameters:
  diagramPane - The diagramPane to perform the operation in.



doBackgroundImage
protected void doBackgroundImage(JGraphEditorDiagramPane diagramPane, String filename) throws MalformedURLException, FileNotFoundException, IOException(Code)
Displays a file- or URL-dialog and uses the filename to set the background image on the specified diagram pane.
Parameters:
  diagramPane - The diagramPane to perform the operation in.
Parameters:
  filename - The filename or URL to load the image from.



doScaleLibraryEntries
protected void doScaleLibraryEntries(JGraphpadLibraryPane pane, boolean larger)(Code)
Doubles or halves the current size of the entries in the specified library pane based on larger.
Parameters:
  pane - The layout pane to change the entries of.
Parameters:
  larger - Whether to make the entries larger.



doZoom
protected void doZoom(JGraph graph, boolean in, boolean out, boolean custom)(Code)
Sets the zoom on the specified graph depending on the paramters, which are interpreted to be exlusive. If custom is true this method displays a dialog to enter the custom zoom and sets the zoom to the specified value. If custom is false then the method will double or half the current zoom of graph depending on the value of in and out. If all values are false then the zoom is reset to 1.
This implementation makes sure the zoom is between 0.01 and 300 and scrolls to the selection cell if the selection is not empty.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  in - Whether to zoom in if no custom dialog is used.
Parameters:
  out - Whether to zoom out if no custom dialog is used.
Parameters:
  custom - Whether to display a dialog to ask for a custom zoom.



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.