| |
|
| java.lang.Object org.jdesktop.j3dedit.scenegrapheditor.nodeeditors.EditorManager
EditorManager | public class EditorManager (Code) | | Control and monitor node being edited.
Ensures that changes are applied or reset before user swithces
between nodes.
author: Paul Byrne version: $Id% |
EditorManager | public EditorManager()(Code) | | |
EditorManager | public EditorManager(boolean readOnly)(Code) | | |
applyChanges | void applyChanges()(Code) | | Called by EditorFrame when apply button is pressed
|
clearEditorPanel | public void clearEditorPanel()(Code) | | Forgets any changes that are in progress
Clears the editorPanel by showing emptyEditorPanel
|
editComplete | public void editComplete()(Code) | | Called when user finishes editing the currentNode
This method is reponsible for applying any changes
and reseting the capability bits of the node
|
editInProgress | public boolean editInProgress()(Code) | | Returns true if a node is currently being edited
|
editNode | public void editNode(SGObject node)(Code) | | Edit the node if an editor is available
Set the correct capability bits depending on tool mode
Node can be live
|
getCurrentNode | public SGObject getCurrentNode()(Code) | | Get the node which is currently being edited
|
getEditorFrame | public EditorFrame getEditorFrame()(Code) | | Get the frame that contains the component editors
|
getReadOnly | public boolean getReadOnly()(Code) | | |
resetChanges | void resetChanges()(Code) | | Called by EditorFrame when cancel button is pressed
|
setActive | public void setActive(boolean active)(Code) | | |
setEditorCapabilities | public void setEditorCapabilities(SGObject node)(Code) | | Set the capabilities of this node to the correct values
depending on the Editor mode.
Node must not be live
The nodes original capabilites were stored by the SGObject when the
setJ3dNode was called.
|
setEditorClass | public void setEditorClass(String j3dNodeClassName, Class editorClass)(Code) | | Set the editor class used to edit the specified J3d node. This is called by
ConfigLoader
|
setReadOnly | public void setReadOnly(boolean readOnly)(Code) | | Set the editor windows to be read-only.
The user will be unable to make any changes
|
|
|
|