Method Summary |
|
public void | actionPerformed(ActionEvent event) Executes the action based on the action name. |
protected void | doAskColorAttribute(JGraph graph, String key) Shortcut method that invokes
JGraphpadFormatAction.doAskColorAttribute(JGraph,String,boolean) with setOpaque =
false. |
protected void | doAskColorAttribute(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 void | doAskFloatAttribute(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 void | doAskImageAttribute(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 void | doAskIntAttribute(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 void | doSetDashPattern(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 void | doSetFont(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 void | doSetHorizontalAlignment(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 void | doToggleAttribute(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 Font | fontDialog(Component component, String title, Font font) Displays a font dialog using
JGraphpadDialogs.fontDialog(ComponentString) . |
public static Object | getAttribute(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 boolean | getBooleanAttribute(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 int | getIntAttribute(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 void | setAttribute(JGraph graph, String key, Object value) Sets the value of the attribute under key to
value for the selection cells in graph . |
protected void | setAttributes(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 void | setRouting(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 . |