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

All known Subclasses:   com.jgraph.pad.action.JGraphpadCellAction,  com.jgraph.l2fplugin.JGraphpadL2FAction,
JGraphpadFormatAction
public class JGraphpadFormatAction extends JGraphEditorAction (Code)
Implements all actions of the format menu.

Inner Class :public static class AllActions implements Bundle

Field Summary
protected static  intFONT_UNDERLINE
     Defines the underline font style.
final public static  StringNAME_BEGINSIZE
     Specifies the name for the beginSize action.
final public static  StringNAME_CELLBACKGROUNDCOLOR
     Specifies the name for the cellBackgroundColor action.
final public static  StringNAME_CELLBORDERCOLOR
     Specifies the name for the cellBorderColor action.
final public static  StringNAME_CELLBORDERWIDTH
     Specifies the name for the cellBorderWidth action.
final public static  StringNAME_CELLGRADIENTCOLOR
     Specifies the name for the cellGradientColor action.
final public static  StringNAME_CELLIMAGE
     Specifies the name for the cellImage action.
final public static  StringNAME_CELLIMAGEURL
     Specifies the name for the cellImageURL action.
final public static  StringNAME_CELLINSET
     Specifies the name for the cellInset action.
final public static  StringNAME_CLEARBEGIN
     Specifies the name for the clearBegin action.
final public static  StringNAME_CLEARCELLBORDER
     Specifies the name for the clearCellBorder action.
final public static  StringNAME_CLEARCELLIMAGE
     Specifies the name for the clearCellImage action.
final public static  StringNAME_CLEAREND
     Specifies the name for the clearEnd action.
final public static  StringNAME_DASHOFFSET
     Specifies the name for the dashOffset action.
final public static  StringNAME_DASHPATTERN
     Specifies the name for the dashPattern action.
final public static  StringNAME_ENDSIZE
     Specifies the name for the endSize action.
final public static  StringNAME_FONT
     Specifies the name for the font action.
final public static  StringNAME_FONTBOLD
     Specifies the name for the fontBold action.
final public static  StringNAME_FONTCOLOR
     Specifies the name for the fontColor action.
final public static  StringNAME_FONTITALIC
     Specifies the name for the fontItalic action.
final public static  StringNAME_FONTPLAIN
     Specifies the name for the fontPlain action.
final public static  StringNAME_FONTSIZE
     Specifies the name for the fontSize action.
final public static  StringNAME_FONTUNDERLINE
     Specifies the name for the fontUnderline action.
final public static  StringNAME_LINECOLOR
     Specifies the name for the lineColor action.
final public static  StringNAME_LINEWIDTH
     Specifies the name for the lineWidth action.
final public static  StringNAME_RESIZE
     Specifies the name for the resize action.
final public static  StringNAME_SWITCHALIGNBOTTOM
     Specifies the name for the switchAlignBottom action.
final public static  StringNAME_SWITCHALIGNCENTER
     Specifies the name for the switchAlignCenter action.
final public static  StringNAME_SWITCHALIGNLEFT
     Specifies the name for the switchAlignLeft action.
final public static  StringNAME_SWITCHALIGNMIDDLE
     Specifies the name for the switchAlignMiddle action.
final public static  StringNAME_SWITCHALIGNRIGHT
     Specifies the name for the switchAlignRight action.
final public static  StringNAME_SWITCHALIGNTOP
     Specifies the name for the switchAlignTop action.
final public static  StringNAME_SWITCHLABELBOTTOM
     Specifies the name for the switchLabelBottom action.
final public static  StringNAME_SWITCHLABELCENTER
     Specifies the name for the switchLabelCenter action.
final public static  StringNAME_SWITCHLABELLEFT
     Specifies the name for the switchLabelLeft action.
final public static  StringNAME_SWITCHLABELMIDDLE
     Specifies the name for the switchLabelMiddle action.
final public static  StringNAME_SWITCHLABELRIGHT
     Specifies the name for the switchLabelRight action.
final public static  StringNAME_SWITCHLABELTOP
     Specifies the name for the switchLabelTop action.
final public static  StringNAME_SWITCHLOCKHEIGHT
     Specifies the name for the switchLockHeight action.
final public static  StringNAME_SWITCHLOCKWIDTH
     Specifies the name for the switchLockWidth action.
final public static  StringNAME_SWITCHLOCKX
     Specifies the name for the switchLockX action.
final public static  StringNAME_SWITCHLOCKY
     Specifies the name for the switchLockX action.
final public static  StringNAME_SWITCHROUTINGNONE
     Specifies the name for the switchRoutingNone action.
final public static  StringNAME_SWITCHROUTINGPARALLEL
     Specifies the name for the switchRoutingParallel action.
final public static  StringNAME_SWITCHROUTINGPARALLELSPLINE
     Specifies the name for the switchRoutingParallelSpline action.
final public static  StringNAME_SWITCHROUTINGSIMPLE
     Specifies the name for the switchRoutingSimple action.
final public static  StringNAME_SWITCHSHAPECIRCLE
     Specifies the name for the switchShapeCircle action.
final public static  StringNAME_SWITCHSHAPECYLINDER
     Specifies the name for the switchShapeCylinder action.
final public static  StringNAME_SWITCHSHAPEDIAMOND
     Specifies the name for the switchShapeDiamond action.
final public static  StringNAME_SWITCHSHAPERECTANGLE
     Specifies the name for the switchShapeRectangle action.
final public static  StringNAME_SWITCHSHAPEROUNDED
     Specifies the name for the switchShapeRounded action.
final public static  StringNAME_SWITCHSHAPETRIANGLE
     Specifies the name for the switchShapeTriangle action.
final public static  StringNAME_SWITCHSTYLEBEZIER
     Specifies the name for the switchStyleBezier action.
final public static  StringNAME_SWITCHSTYLEORTHOGONAL
     Specifies the name for the switchStyleOrthogonal action.
final public static  StringNAME_SWITCHSTYLESPLINE
     Specifies the name for the switchStyleSpline action.
final public static  StringNAME_TOGGLEAUTOSIZE
     Specifies the name for the toggleAutoSize action.
final public static  StringNAME_TOGGLECELLEDITABLE
     Specifies the name for the toggleCellEditable action.
final public static  StringNAME_TOGGLECELLMOVEABLE
     Specifies the name for the toggleCellMoveable action.
final public static  StringNAME_TOGGLECELLOPAQUE
     Specifies the name for the toggleCellOpaque action.
final public static  StringNAME_TOGGLECELLSIZEABLE
     Specifies the name for the toggleCellSizeable action.
final public static  StringNAME_TOGGLECONNECTABLE
     Specifies the name for the toggleConnectable action.
final public static  StringNAME_TOGGLECONSTRAINED
     Specifies the name for the toggleConstrained action.
final public static  StringNAME_TOGGLEDISCONNECTABLE
     Specifies the name for the toggleDisconnectable action.
final public static  StringNAME_TOGGLEEDGEBENDABLE
     Specifies the name for the toggleEdgeBendable action.
final public static  StringNAME_TOGGLEGROUPOPAQUE
     Specifies the name for the toggleGroupOpaque action.
final public static  StringNAME_TOGGLEGROUPREPOSITION
     Specifies the name for the toggleCellMoveable action.
final public static  StringNAME_TOGGLELABELALONGEDGE
     Specifies the name for the toggleLabelAlongEdge action.
final public static  StringNAME_TOGGLESTRETCHCELLIMAGE
     Specifies the name for the toggleStretchCellImage action.
protected  FilelastDirectory
     Holds the last directory for file operations.

Constructor Summary
public  JGraphpadFormatAction(String name)
     Constructs a new format action for the specified name.

Method Summary
public  voidactionPerformed(ActionEvent event)
     Executes the action based on the action name.
protected  voiddoAskColorAttribute(JGraph graph, String key)
     Shortcut method that invokes JGraphpadFormatAction.doAskColorAttribute(JGraph,String,boolean) with setOpaque = false.
protected  voiddoAskColorAttribute(JGraph graph, String key, boolean setOpaque)
     Displays a dialog to ask for a color and uses the color to set the attribute under key for the selected cells in graph.
protected  voiddoAskFloatAttribute(JGraph graph, String key, float defaultValue)
     Displays a dialog to ask for a number and uses the number to set the attribute under key for the selected cells in graph.
protected  voiddoAskImageAttribute(JGraph graph, String key, boolean urlDialog)
     Displays a dialog to ask for a file or URL depending on urlDialog and uses the filename to set the image attribute under key for the selected cells in graph.
protected  voiddoAskIntAttribute(JGraph graph, String key, int defaultValue)
     Displays a dialog to ask for a number and uses the number to set the attribute under key for the selected cells in graph.
protected  voiddoSetDashPattern(JGraph graph)
     Changes the dash pattern in the selection edges of the specified graph by displaying a dialog to enter a dash sequence of the form [n[,n[,n]*]] where n is a number.
protected  voiddoSetFont(Component component, Object change, boolean plain, int style, float size)
     Changes the font on the specified component to change, which may be either a Font or Color object, changing the respective font property of either the selection cells in JGraph or the selection text in JTextPane .
protected  voiddoSetHorizontalAlignment(Component component, int align)
     Changes the horizontal alignment on the specified component to align, which may be one of SwingConstants.LEFT , SwingConstants.CENTER or SwingConstants.RIGHT .
protected  voiddoToggleAttribute(JGraph graph, String key, boolean defaultValue)
     Displays a dialog to ask for a file or URL depending on urlDialog and uses the filename to set the image attribute under key for the selected cells in graph.
public  FontfontDialog(Component component, String title, Font font)
     Displays a font dialog using JGraphpadDialogs.fontDialog(ComponentString) .
public static  ObjectgetAttribute(JGraph graph, String key)
     Returns the value of the attribute under key for the first selected cell in the specified graph as an Object or null if no such attribute exists.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The name of the attribute to look for.
public static  booleangetBooleanAttribute(JGraph graph, String key, boolean defaultValue)
     Returns the value of the attribute under key for the first selected cell in the specified graph as a boolean or defaultValue if no such attribute can be found.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The name of the attribute to look for.
Parameters:
  defaultValue - The default value to use.
public static  intgetIntAttribute(JGraph graph, String key, int defaultValue)
     Returns the value of the attribute under key for the first selected cell in the specified graph as an int or defaultValue if no such attribute can be found.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The name of the attribute to look for.
Parameters:
  defaultValue - The default value to use.
protected  voidsetAttribute(JGraph graph, String key, Object value)
     Sets the value of the attribute under key to value for the selection cells in graph.
protected  voidsetAttributes(JGraph graph, String[] keys, Object[] values, boolean all)
     Sets the value of the attributes under keys to values for the selection or all cells in graph depending on all.
protected  voidsetRouting(JGraph graph, Edge.Routing routing)
     Changes the font style on the specified component to style, which may be one of Font.BOLD , Font.ITALIC or JGraphpadFormatAction.FONT_UNDERLINE .

Field Detail
FONT_UNDERLINE
protected static int FONT_UNDERLINE(Code)
Defines the underline font style. This font style is only available for rich text values.



NAME_BEGINSIZE
final public static String NAME_BEGINSIZE(Code)
Specifies the name for the beginSize action.



NAME_CELLBACKGROUNDCOLOR
final public static String NAME_CELLBACKGROUNDCOLOR(Code)
Specifies the name for the cellBackgroundColor action.



NAME_CELLBORDERCOLOR
final public static String NAME_CELLBORDERCOLOR(Code)
Specifies the name for the cellBorderColor action.



NAME_CELLBORDERWIDTH
final public static String NAME_CELLBORDERWIDTH(Code)
Specifies the name for the cellBorderWidth action.



NAME_CELLGRADIENTCOLOR
final public static String NAME_CELLGRADIENTCOLOR(Code)
Specifies the name for the cellGradientColor action.



NAME_CELLIMAGE
final public static String NAME_CELLIMAGE(Code)
Specifies the name for the cellImage action.



NAME_CELLIMAGEURL
final public static String NAME_CELLIMAGEURL(Code)
Specifies the name for the cellImageURL action.



NAME_CELLINSET
final public static String NAME_CELLINSET(Code)
Specifies the name for the cellInset action.



NAME_CLEARBEGIN
final public static String NAME_CLEARBEGIN(Code)
Specifies the name for the clearBegin action.



NAME_CLEARCELLBORDER
final public static String NAME_CLEARCELLBORDER(Code)
Specifies the name for the clearCellBorder action.



NAME_CLEARCELLIMAGE
final public static String NAME_CLEARCELLIMAGE(Code)
Specifies the name for the clearCellImage action.



NAME_CLEAREND
final public static String NAME_CLEAREND(Code)
Specifies the name for the clearEnd action.



NAME_DASHOFFSET
final public static String NAME_DASHOFFSET(Code)
Specifies the name for the dashOffset action.



NAME_DASHPATTERN
final public static String NAME_DASHPATTERN(Code)
Specifies the name for the dashPattern action.



NAME_ENDSIZE
final public static String NAME_ENDSIZE(Code)
Specifies the name for the endSize action.



NAME_FONT
final public static String NAME_FONT(Code)
Specifies the name for the font action.



NAME_FONTBOLD
final public static String NAME_FONTBOLD(Code)
Specifies the name for the fontBold action.



NAME_FONTCOLOR
final public static String NAME_FONTCOLOR(Code)
Specifies the name for the fontColor action.



NAME_FONTITALIC
final public static String NAME_FONTITALIC(Code)
Specifies the name for the fontItalic action.



NAME_FONTPLAIN
final public static String NAME_FONTPLAIN(Code)
Specifies the name for the fontPlain action.



NAME_FONTSIZE
final public static String NAME_FONTSIZE(Code)
Specifies the name for the fontSize action.



NAME_FONTUNDERLINE
final public static String NAME_FONTUNDERLINE(Code)
Specifies the name for the fontUnderline action.



NAME_LINECOLOR
final public static String NAME_LINECOLOR(Code)
Specifies the name for the lineColor action.



NAME_LINEWIDTH
final public static String NAME_LINEWIDTH(Code)
Specifies the name for the lineWidth action.



NAME_RESIZE
final public static String NAME_RESIZE(Code)
Specifies the name for the resize action.



NAME_SWITCHALIGNBOTTOM
final public static String NAME_SWITCHALIGNBOTTOM(Code)
Specifies the name for the switchAlignBottom action.



NAME_SWITCHALIGNCENTER
final public static String NAME_SWITCHALIGNCENTER(Code)
Specifies the name for the switchAlignCenter action.



NAME_SWITCHALIGNLEFT
final public static String NAME_SWITCHALIGNLEFT(Code)
Specifies the name for the switchAlignLeft action.



NAME_SWITCHALIGNMIDDLE
final public static String NAME_SWITCHALIGNMIDDLE(Code)
Specifies the name for the switchAlignMiddle action.



NAME_SWITCHALIGNRIGHT
final public static String NAME_SWITCHALIGNRIGHT(Code)
Specifies the name for the switchAlignRight action.



NAME_SWITCHALIGNTOP
final public static String NAME_SWITCHALIGNTOP(Code)
Specifies the name for the switchAlignTop action.



NAME_SWITCHLABELBOTTOM
final public static String NAME_SWITCHLABELBOTTOM(Code)
Specifies the name for the switchLabelBottom action.



NAME_SWITCHLABELCENTER
final public static String NAME_SWITCHLABELCENTER(Code)
Specifies the name for the switchLabelCenter action.



NAME_SWITCHLABELLEFT
final public static String NAME_SWITCHLABELLEFT(Code)
Specifies the name for the switchLabelLeft action.



NAME_SWITCHLABELMIDDLE
final public static String NAME_SWITCHLABELMIDDLE(Code)
Specifies the name for the switchLabelMiddle action.



NAME_SWITCHLABELRIGHT
final public static String NAME_SWITCHLABELRIGHT(Code)
Specifies the name for the switchLabelRight action.



NAME_SWITCHLABELTOP
final public static String NAME_SWITCHLABELTOP(Code)
Specifies the name for the switchLabelTop action.



NAME_SWITCHLOCKHEIGHT
final public static String NAME_SWITCHLOCKHEIGHT(Code)
Specifies the name for the switchLockHeight action.



NAME_SWITCHLOCKWIDTH
final public static String NAME_SWITCHLOCKWIDTH(Code)
Specifies the name for the switchLockWidth action.



NAME_SWITCHLOCKX
final public static String NAME_SWITCHLOCKX(Code)
Specifies the name for the switchLockX action.



NAME_SWITCHLOCKY
final public static String NAME_SWITCHLOCKY(Code)
Specifies the name for the switchLockX action.



NAME_SWITCHROUTINGNONE
final public static String NAME_SWITCHROUTINGNONE(Code)
Specifies the name for the switchRoutingNone action.



NAME_SWITCHROUTINGPARALLEL
final public static String NAME_SWITCHROUTINGPARALLEL(Code)
Specifies the name for the switchRoutingParallel action.



NAME_SWITCHROUTINGPARALLELSPLINE
final public static String NAME_SWITCHROUTINGPARALLELSPLINE(Code)
Specifies the name for the switchRoutingParallelSpline action.



NAME_SWITCHROUTINGSIMPLE
final public static String NAME_SWITCHROUTINGSIMPLE(Code)
Specifies the name for the switchRoutingSimple action.



NAME_SWITCHSHAPECIRCLE
final public static String NAME_SWITCHSHAPECIRCLE(Code)
Specifies the name for the switchShapeCircle action.



NAME_SWITCHSHAPECYLINDER
final public static String NAME_SWITCHSHAPECYLINDER(Code)
Specifies the name for the switchShapeCylinder action.



NAME_SWITCHSHAPEDIAMOND
final public static String NAME_SWITCHSHAPEDIAMOND(Code)
Specifies the name for the switchShapeDiamond action.



NAME_SWITCHSHAPERECTANGLE
final public static String NAME_SWITCHSHAPERECTANGLE(Code)
Specifies the name for the switchShapeRectangle action.



NAME_SWITCHSHAPEROUNDED
final public static String NAME_SWITCHSHAPEROUNDED(Code)
Specifies the name for the switchShapeRounded action.



NAME_SWITCHSHAPETRIANGLE
final public static String NAME_SWITCHSHAPETRIANGLE(Code)
Specifies the name for the switchShapeTriangle action.



NAME_SWITCHSTYLEBEZIER
final public static String NAME_SWITCHSTYLEBEZIER(Code)
Specifies the name for the switchStyleBezier action.



NAME_SWITCHSTYLEORTHOGONAL
final public static String NAME_SWITCHSTYLEORTHOGONAL(Code)
Specifies the name for the switchStyleOrthogonal action.



NAME_SWITCHSTYLESPLINE
final public static String NAME_SWITCHSTYLESPLINE(Code)
Specifies the name for the switchStyleSpline action.



NAME_TOGGLEAUTOSIZE
final public static String NAME_TOGGLEAUTOSIZE(Code)
Specifies the name for the toggleAutoSize action.



NAME_TOGGLECELLEDITABLE
final public static String NAME_TOGGLECELLEDITABLE(Code)
Specifies the name for the toggleCellEditable action.



NAME_TOGGLECELLMOVEABLE
final public static String NAME_TOGGLECELLMOVEABLE(Code)
Specifies the name for the toggleCellMoveable action.



NAME_TOGGLECELLOPAQUE
final public static String NAME_TOGGLECELLOPAQUE(Code)
Specifies the name for the toggleCellOpaque action.



NAME_TOGGLECELLSIZEABLE
final public static String NAME_TOGGLECELLSIZEABLE(Code)
Specifies the name for the toggleCellSizeable action.



NAME_TOGGLECONNECTABLE
final public static String NAME_TOGGLECONNECTABLE(Code)
Specifies the name for the toggleConnectable action.



NAME_TOGGLECONSTRAINED
final public static String NAME_TOGGLECONSTRAINED(Code)
Specifies the name for the toggleConstrained action.



NAME_TOGGLEDISCONNECTABLE
final public static String NAME_TOGGLEDISCONNECTABLE(Code)
Specifies the name for the toggleDisconnectable action.



NAME_TOGGLEEDGEBENDABLE
final public static String NAME_TOGGLEEDGEBENDABLE(Code)
Specifies the name for the toggleEdgeBendable action.



NAME_TOGGLEGROUPOPAQUE
final public static String NAME_TOGGLEGROUPOPAQUE(Code)
Specifies the name for the toggleGroupOpaque action.



NAME_TOGGLEGROUPREPOSITION
final public static String NAME_TOGGLEGROUPREPOSITION(Code)
Specifies the name for the toggleCellMoveable action.



NAME_TOGGLELABELALONGEDGE
final public static String NAME_TOGGLELABELALONGEDGE(Code)
Specifies the name for the toggleLabelAlongEdge action.



NAME_TOGGLESTRETCHCELLIMAGE
final public static String NAME_TOGGLESTRETCHCELLIMAGE(Code)
Specifies the name for the toggleStretchCellImage action.



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




Constructor Detail
JGraphpadFormatAction
public JGraphpadFormatAction(String name)(Code)
Constructs a new format action for the specified name. If the action name starts with toggle 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.



doAskColorAttribute
protected void doAskColorAttribute(JGraph graph, String key)(Code)
Shortcut method that invokes JGraphpadFormatAction.doAskColorAttribute(JGraph,String,boolean) with setOpaque = false.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The key of the attribute to be changed.



doAskColorAttribute
protected void doAskColorAttribute(JGraph graph, String key, boolean setOpaque)(Code)
Displays a dialog to ask for a color and uses the color to set the attribute under key for the selected cells in graph. If setOpaque is true then the opaque attribute will be set to true.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The key of the attribute to be changed.
Parameters:
  setOpaque - Whether to make the affected cells opaque.



doAskFloatAttribute
protected void doAskFloatAttribute(JGraph graph, String key, float defaultValue)(Code)
Displays a dialog to ask for a number and uses the number to set the attribute under key for the selected cells in graph. The default value is used in the dialog.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The key of the attribute to be changed.
Parameters:
  defaultValue - The default value for the number dialog.



doAskImageAttribute
protected void doAskImageAttribute(JGraph graph, String key, boolean urlDialog) throws MalformedURLException, FileNotFoundException, IOException(Code)
Displays a dialog to ask for a file or URL depending on urlDialog and uses the filename to set the image attribute under key for the selected cells in graph.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The key of the attribute to be changed.
Parameters:
  urlDialog - Whether to ask for an URL instead of a filename.



doAskIntAttribute
protected void doAskIntAttribute(JGraph graph, String key, int defaultValue)(Code)
Displays a dialog to ask for a number and uses the number to set the attribute under key for the selected cells in graph. The default value is used in the dialog.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The key of the attribute to be changed.
Parameters:
  defaultValue - The default value for the number dialog.



doSetDashPattern
protected void doSetDashPattern(JGraph graph)(Code)
Changes the dash pattern in the selection edges of the specified graph by displaying a dialog to enter a dash sequence of the form [n[,n[,n]*]] where n is a number.
Parameters:
  graph - The graph to change the dash pattern in.



doSetFont
protected void doSetFont(Component component, Object change, boolean plain, int style, float size) throws BadLocationException(Code)
Changes the font on the specified component to change, which may be either a Font or Color object, changing the respective font property of either the selection cells in JGraph or the selection text in JTextPane .
Parameters:
  component - The component to change the font in.
Parameters:
  change - The value to change the font to.
throws:
  BadLocationException -



doSetHorizontalAlignment
protected void doSetHorizontalAlignment(Component component, int align)(Code)
Changes the horizontal alignment on the specified component to align, which may be one of SwingConstants.LEFT , SwingConstants.CENTER or SwingConstants.RIGHT . This implementation changes the horizontal aligment of either the selection cells in JGraph or the selection text in JTextPane , however, the alignment in textpanes is not persisted due to a bug in Swing (so end users should align cells, not selection rich text).
Parameters:
  component - The component to change the font in.
Parameters:
  align - The horizontal alignment to use.



doToggleAttribute
protected void doToggleAttribute(JGraph graph, String key, boolean defaultValue)(Code)
Displays a dialog to ask for a file or URL depending on urlDialog and uses the filename to set the image attribute under key for the selected cells in graph.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The key of the attribute to be changed.
Parameters:
  defaultValue - The default value to use.



fontDialog
public Font fontDialog(Component component, String title, Font font)(Code)
Displays a font dialog using JGraphpadDialogs.fontDialog(ComponentString) . This hook is overridden in the l2f plugin to provide a better dialog.
Parameters:
  component - The parent component for the dialog to be displayed.
Parameters:
  title - The title of the dialog to be displayed.
Parameters:
  font - The default font to use in the dialog. Returns the selected font.



getAttribute
public static Object getAttribute(JGraph graph, String key)(Code)
Returns the value of the attribute under key for the first selected cell in the specified graph as an Object or null if no such attribute exists.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The name of the attribute to look for. Returns the value of the key attribute.



getBooleanAttribute
public static boolean getBooleanAttribute(JGraph graph, String key, boolean defaultValue)(Code)
Returns the value of the attribute under key for the first selected cell in the specified graph as a boolean or defaultValue if no such attribute can be found.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The name of the attribute to look for.
Parameters:
  defaultValue - The default value to use. Returns the value of the key attribute.



getIntAttribute
public static int getIntAttribute(JGraph graph, String key, int defaultValue)(Code)
Returns the value of the attribute under key for the first selected cell in the specified graph as an int or defaultValue if no such attribute can be found.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The name of the attribute to look for.
Parameters:
  defaultValue - The default value to use. Returns the value of the key attribute.



setAttribute
protected void setAttribute(JGraph graph, String key, Object value)(Code)
Sets the value of the attribute under key to value for the selection cells in graph.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  key - The name of the attribute to set.
Parameters:
  value - The value of the attribute to set.



setAttributes
protected void setAttributes(JGraph graph, String[] keys, Object[] values, boolean all)(Code)
Sets the value of the attributes under keys to values for the selection or all cells in graph depending on all. For each key[i] the corresponding value[i] is assigned. If value[i] is null then this will add a GraphConstants.REMOVEATTRIBUTES entry to the nested map and remove the corresponding key. Note: Use only one value of null per array of values, as previous GraphConstants.REMOVEATTRIBUTES will be overwritten by later ones.
Parameters:
  graph - The graph to perform the operation in.
Parameters:
  keys - The names of the attributes to set.
Parameters:
  values - The values of the attributes to set.
Parameters:
  all - Whether to apply the change to all or only the selectioncells.



setRouting
protected void setRouting(JGraph graph, Edge.Routing routing)(Code)
Changes the font style on the specified component to style, which may be one of Font.BOLD , Font.ITALIC or JGraphpadFormatAction.FONT_UNDERLINE . This implementation changes the style of either the selection cells in JGraph or the selection text in JTextPane .
Parameters:
  graph - The graph to change the font in.
Parameters:
  routing - The routing to use.



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.