|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jgraph.pad.util.JGraphpadTreeModelAdapter
com.jgraph.pad.factory.JGraphpadPane.DocumentTracker
Utility class to establish a listener in a editor's document model and update an editor pane.
| Field Summary | |
protected JGraphpadPane |
pane
References the editor pane to be updated. |
| Constructor Summary | |
JGraphpadPane.DocumentTracker(JGraphpadPane pane)
Constructs a new diagram tracker for updating the specified pane. |
|
| Method Summary | |
void |
treeNodeInserted(TreeModel source,
Object object)
Calls JGraphpadPane.addFile(JGraphEditorFile) or
JGraphpadPane.addDiagram(JGraphEditorDiagram) recursively on
all inserted nodes of the respective type. |
void |
treeNodesChanged(TreeModelEvent event)
Calls JGraphpadPane.updateFileTitle(JGraphEditorFile) or
JGraphpadPane.updateDiagramTitle(JGraphEditorDiagram) on all
changed nodes of the respective type. |
void |
treeNodesInserted(TreeModelEvent arg0)
Calls treeNodeInserted(TreeModel, Object) with the last path
component of TreeModelEvent.getTreePath() as the root of the
resursion. |
void |
treeNodesRemoved(TreeModelEvent arg0)
Calls JGraphpadPane.removeFile(JGraphEditorFile) or
JGraphpadPane.removeDiagram(JGraphEditorFile, JGraphEditorDiagram)
on all removed nodes of the respective type. |
| Methods inherited from class com.jgraph.pad.util.JGraphpadTreeModelAdapter |
treeStructureChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected JGraphpadPane pane
| Constructor Detail |
public JGraphpadPane.DocumentTracker(JGraphpadPane pane)
pane - The pane to be updated on document model changes.| Method Detail |
public void treeNodesInserted(TreeModelEvent arg0)
treeNodeInserted(TreeModel, Object) with the last path
component of TreeModelEvent.getTreePath() as the root of the
resursion.
treeNodesInserted in interface TreeModelListenertreeNodesInserted in class JGraphpadTreeModelAdapterarg0 - The object that describes the event.
public void treeNodeInserted(TreeModel source,
Object object)
JGraphpadPane.addFile(JGraphEditorFile) or
JGraphpadPane.addDiagram(JGraphEditorDiagram) recursively on
all inserted nodes of the respective type.
source - The source tree model.object - The node that has been inserted.public void treeNodesChanged(TreeModelEvent event)
JGraphpadPane.updateFileTitle(JGraphEditorFile) or
JGraphpadPane.updateDiagramTitle(JGraphEditorDiagram) on all
changed nodes of the respective type.
treeNodesChanged in interface TreeModelListenertreeNodesChanged in class JGraphpadTreeModelAdapterevent - The object that describes the event.public void treeNodesRemoved(TreeModelEvent arg0)
JGraphpadPane.removeFile(JGraphEditorFile) or
JGraphpadPane.removeDiagram(JGraphEditorFile, JGraphEditorDiagram)
on all removed nodes of the respective type.
treeNodesRemoved in interface TreeModelListenertreeNodesRemoved in class JGraphpadTreeModelAdapterarg0 - The object that describes the event.
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||