The base class for all actions in a JGraph editor kit. An action may be
toggleable, in which case the UI factory will create an element that displays
the action's selection state, and listen to changes of this state to update
the element. The enabled state will also be listened to and the UI elements
will be updated accordingly.
getFrame(ActionEvent event) Returns the frame for event if the even source is a
Component or the active frame.
Parameters: event - The event to get the frame from.
getParentGraph(Component component) Returns the parent diagram pane of the specified component, or the
component itself if it is a editor diagram pane.
Constructs a new action for the specified name
Parameters: name - The name of the new action.
JGraphEditorAction
public JGraphEditorAction(String name, boolean isToggleAction)(Code)
Constructs a new action for the specified name and
isToggleAction state.
Parameters: name - The name of the new action. Parameters: isToggleAction - Whether the action is a toggle action.
Returns the frame for event if the even source is a
Component or the active frame.
Parameters: event - The event to get the frame from. Returns the frame for event or the active frame. See Also:JGraphEditorAction.getActiveFrame()
Returns the parent diagram pane of the specified component, or the
component itself if it is a editor diagram pane.
Returns the parent editor diagram pane of component.
public static Component getPermanentFocusOwnerOrParent()(Code)
Returns the permanent focus owner or the parent scroll pane of it.
Returns the permanent focus owner or its parent scroll pane. See Also:KeyboardFocusManager.getPermanentFocusOwner