Package org.praxislive.ide.pxr.graph
Class GraphEditor
java.lang.Object
org.praxislive.ide.pxr.graph.GraphEditor
- All Implemented Interfaces:
RootEditor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.praxislive.ide.pxr.spi.RootEditor
RootEditor.Context, RootEditor.Provider, RootEditor.ToolAction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidHook called when the containing top component is activated.voiddispose()Hook called when the editor component is being uninstalled and disposed of.Get a list of action to be added to the top component toolbar.Acquire the main editor component.org.openide.util.LookupGet the editor lookup.booleanRequest focus of the editor component.Return the set of tool actions this editor wishes to support.voidsync()Hook called to ensure any data in the editor is synced to the underlying model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.praxislive.ide.pxr.spi.RootEditor
componentDeactivated, componentHidden, componentShowing, getUndoRedo
-
Constructor Details
-
GraphEditor
-
-
Method Details
-
componentActivated
public void componentActivated()Description copied from interface:RootEditorHook called when the containing top component is activated. SeeTopComponent.componentActivated().The default implementation does nothing.
- Specified by:
componentActivatedin interfaceRootEditor
-
dispose
public void dispose()Description copied from interface:RootEditorHook called when the editor component is being uninstalled and disposed of.The default implementation does nothing.
- Specified by:
disposein interfaceRootEditor
-
getEditorComponent
Description copied from interface:RootEditorAcquire the main editor component. This component will be installed in the central pane of the root editor top component. This method should always return the same instance.- Specified by:
getEditorComponentin interfaceRootEditor- Returns:
- main editor component
-
getLookup
public org.openide.util.Lookup getLookup()Description copied from interface:RootEditorGet the editor lookup. This lookup will be merged into the top component lookup.The top component lookup will already reflect the main context explorer manager from
RootEditor.Context.explorerManager().The default implementation returns an empty lookup.
- Specified by:
getLookupin interfaceRootEditor- Returns:
- editor lookup
-
getActions
Description copied from interface:RootEditorGet a list of action to be added to the top component toolbar.The default implementation returns an empty list.
- Specified by:
getActionsin interfaceRootEditor- Returns:
- list of toolbar actions
-
requestFocus
public boolean requestFocus()Description copied from interface:RootEditorRequest focus of the editor component. This method is called by the default implementation ofRootEditor.componentActivated(). This method will also be called while the component is activated to return focus to the RootEditor component (eg. from tool actions). The default implementation callsJComponent.requestFocusInWindow()on the editor component.- Specified by:
requestFocusin interfaceRootEditor- Returns:
falseif the request is guaranteed to fail,trueif it is likely to succeed.
-
supportedToolActions
Description copied from interface:RootEditorReturn the set of tool actions this editor wishes to support. The default implementation returnsEnumSet.noneOf(ToolAction.class). To install all default tool actions, returnEnumSet.allOf(ToolActions.class)or otherwise filter the returned set.- Specified by:
supportedToolActionsin interfaceRootEditor- Returns:
- support tool actions
-
sync
public void sync()Description copied from interface:RootEditorHook called to ensure any data in the editor is synced to the underlying model. Will be called prior to saving, and any other time the model needs to be up-to-date.The default implementation does nothing.
- Specified by:
syncin interfaceRootEditor
-