|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.tree.DefaultTreeModel
|
+--flatscape.FSceneGraph
The class represents the scene graph of the view. It holds a lookup table for lookup of glyphs by uform id. It maintains the child/parent relations of the scenegraph tree.
Copyright (c) 2001 Rutgers, The State University of New Jersey
MutableTreeNode,
Serialized Form| Field Summary |
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
asksAllowsChildren, listenerList, root |
| Constructor Summary | |
FSceneGraph()
Constructor |
|
| Method Summary | |
void |
documentAdded(java.lang.String name,
org.w3c.dom.Document document)
Called by the repository when a document is added. |
void |
documentRemoved(java.lang.String name,
org.w3c.dom.Document document)
Called by the repository when a document is removed |
Glyph |
getActiveTime()
|
java.lang.String |
getDefaultRootType()
Gets the default root uform type for automatic root detection |
Glyph |
getGlyph(org.w3c.dom.Element model)
Gets the glyph corresponding to the id |
Glyph |
getRootGlyph()
Gets the root glyph of the scenegraph |
void |
nodeAdded(org.w3c.dom.Node node)
Called by the repository when a subtree is added |
void |
nodeRemoved(org.w3c.dom.Node node)
Called by the repository when a subtree is delete |
void |
nodeValueSet(org.w3c.dom.Node node,
java.lang.String value,
java.lang.String oldValue)
Called by the repository when a node value is set (added or changed) |
void |
putGlyph(org.w3c.dom.Element model,
Glyph glyph)
Sets the glyph corresponding to the id - updates child/parent relations |
Glyph |
removeGlyph(org.w3c.dom.Element model)
Removes the glyph corresponding to the id - updates child/parent relations |
void |
setActiveTime(Glyph overlay)
Sets the active time overlay. |
void |
setDefaultRootType(java.lang.String rootType)
Sets the default root uform type for automatic root detection |
void |
setRootGlyph(Glyph root)
Sets the root glyph of the scenegraph |
| Methods inherited from class javax.swing.tree.DefaultTreeModel |
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FSceneGraph()
| Method Detail |
public void setRootGlyph(Glyph root)
setRootGlyph in interface SceneGraphpublic Glyph getRootGlyph()
getRootGlyph in interface SceneGraphpublic void setDefaultRootType(java.lang.String rootType)
public java.lang.String getDefaultRootType()
public void setActiveTime(Glyph overlay)
overlay - the active time overlaypublic Glyph getActiveTime()
public Glyph getGlyph(org.w3c.dom.Element model)
getGlyph in interface SceneGraph
public void putGlyph(org.w3c.dom.Element model,
Glyph glyph)
putGlyph in interface SceneGraphpublic Glyph removeGlyph(org.w3c.dom.Element model)
removeGlyph in interface SceneGraphpublic void nodeAdded(org.w3c.dom.Node node)
nodeAdded in interface ElementListenernode - public void nodeRemoved(org.w3c.dom.Node node)
nodeRemoved in interface ElementListener
public void nodeValueSet(org.w3c.dom.Node node,
java.lang.String value,
java.lang.String oldValue)
nodeValueSet in interface ElementListener
public void documentAdded(java.lang.String name,
org.w3c.dom.Document document)
documentAdded in interface DocumentListener
public void documentRemoved(java.lang.String name,
org.w3c.dom.Document document)
documentRemoved in interface DocumentListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||