isParentSelected(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)
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.
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.
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.
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.
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