|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.earth.model.graph.ProjectorObject de.fhg.igd.earth.model.graph.ModelGraphObject de.fhg.igd.earth.model.graph.Node de.fhg.igd.earth.model.graph.Group de.fhg.igd.earth.model.graph.ModelGraph
This class represents a ModelGraph. A ModelGraph is the root node of the model tree. It includes the focus and the WireBoxGroup. The focus is a link to a node which is focused. It can be null. The WireBoxGroup stores the bounding box shape of the focused object. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
private Node |
focus_
The node witch is focused |
private WireBoxGroup |
wireBoxGroup_
This stores the bounding box shape. |
Fields inherited from class de.fhg.igd.earth.model.graph.Group |
maxNumChildren_ |
Fields inherited from class de.fhg.igd.earth.model.graph.Node |
boundless_, collidable_, icon_, parent_, pickable_ |
Fields inherited from class de.fhg.igd.earth.model.graph.ProjectorObject |
projectorObject_ |
Constructor Summary | |
ModelGraph()
Creates an instance of this class. |
Method Summary | |
protected boolean |
allowChildAddEvent(Node n)
Overwrites the group class method. |
Object |
clone()
Clones this ModelGraph |
BranchGroup |
getBranchGroup(int index)
Returns the BranchGroup[index]. |
Node |
getFocus()
Returns the focus node. |
int |
getSubType()
Returns SUBTYPE_ModelGraph. |
int |
getType()
Returns TYPE_Group. |
boolean |
removeAllChildren()
Removes all children. |
void |
reset()
Resets the model after parsing by the projectors |
void |
setFocus(Node node)
Sets the focus to a given node |
void |
update()
Updates all mutable parts of this class |
private void |
updateFocus()
Calculates the focus an the wireBoxGroup |
Methods inherited from class de.fhg.igd.earth.model.graph.Group |
addChild, calcBoundingBox, childAddedEvent, childRemovedEvent, createLeafList, createSubGroupList, createSubNodeList, detach, detachedEvent, getAllChildren, getChild, getErasedChildren, numChildren, removeChild, removeChild, resetChanges, searchDown, searchDown, searchDown, searchDown, searchDownInserter, searchDownInserter, setChildAt, setColor, setHighLight, setMutable, setVisible |
Methods inherited from class de.fhg.igd.earth.model.graph.Node |
broadcastCreation, broadcastResetChanges, createParentGroupList, delete, delete, getBoundingBox, getBoundless, getBranchGroup, getCollidable, getGroup, getIcon, getLeafList, getModelGraph, getParent, getParentGroupList, getPickable, getSubGroupList, getSubNodeList, isFocused, move, move, moveTo, publishChanges, resetProjectorObject, searchUp, searchUp, searchUp, searchUp, setBoundless, setCollidable, setIcon, setParent, setPickable |
Methods inherited from class de.fhg.igd.earth.model.graph.ModelGraphObject |
anyChanges, anySubChanges, getChanges, getChanges, getInfoTable, getInfoTableElements, getInfoTableKeys, getInfoTableSize, getInfoTableValues, getMutable, getName, getSubChanges, getSubChanges, getSubTypeName, getTimeStamp, getTrace, getTraceable, putInfo, setChanges, setInfoTable, setName, setSubChanges, setTrace, VectorClone |
Methods inherited from class de.fhg.igd.earth.model.graph.ProjectorObject |
getProjectorObject, setProjectorObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Node focus_
private WireBoxGroup wireBoxGroup_
Constructor Detail |
public ModelGraph()
Method Detail |
public int getType()
getType
in class Group
public int getSubType()
getSubType
in class Group
public void setFocus(Node node)
node
- Node to be focusedpublic Node getFocus()
public void update()
private void updateFocus()
public BranchGroup getBranchGroup(int index)
index
- BranchGroup index
public boolean removeAllChildren()
removeAllChildren
in class Group
true
on successpublic void reset()
protected boolean allowChildAddEvent(Node n)
allowChildAddEvent
in class Group
n
- Node
public Object clone()
clone
in class Group
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |