|
||||||||||
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.Leaf
This class represents a leaf. A leaf have got a parent group but can't have children. It can be visible or not. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
private boolean |
visible_
the visible flag |
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 | |
Leaf()
Constructs and initializes a default leaf. |
Method Summary | |
Object |
clone()
Clones this leaf |
protected void |
createLeafList(Vector list)
Inserts this leaf to a given Vector. |
protected void |
createSubGroupList(Vector list)
Does nothing becarse this is a leaf |
protected void |
createSubNodeList(Vector list)
Inserts this leaf to a given Vector. |
protected void |
detach()
Sets the CHANGE_DELETED bit |
boolean |
getVisible()
Returns the visible flag. |
Enumeration |
searchDown(int type)
Search method which walks down the tree and searches by type. |
Node |
searchDown(int type,
int subType)
Search method which walks down the tree and searches by type and subtype. |
Enumeration |
searchDown(String group)
Search method which walks down the tree and searches by group. |
Node |
searchDown(String group,
String name)
Search method which walks down the tree and searches by group and name. |
protected void |
searchDownInserter(int type,
Vector result)
This method inserts all nodes with the given type into the result Vector. |
protected void |
searchDownInserter(String group,
Vector result)
This method inserts all nodes with the given group name into the result Vector. |
protected void |
setMutable(boolean m)
Sets the mutable flag. |
void |
setVisible(boolean v)
Sets the visible flag. |
Methods inherited from class de.fhg.igd.earth.model.graph.Node |
broadcastCreation, broadcastResetChanges, calcBoundingBox, 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, setColor, setHighLight, 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, getSubType, getSubTypeName, getTimeStamp, getTrace, getTraceable, getType, putInfo, resetChanges, 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 boolean visible_
Constructor Detail |
public Leaf()
Method Detail |
protected void detach()
detach
in class Node
public void setVisible(boolean v)
setVisible
in class Node
v
- New visible flagpublic boolean getVisible()
protected void setMutable(boolean m)
setMutable
in class ModelGraphObject
m
- New mutable flagpublic Node searchDown(String group, String name)
searchDown
in class Node
group
- The searched groupname
- The searched name
public Enumeration searchDown(String group)
searchDown
in class Node
group
- The searched group
protected void searchDownInserter(String group, Vector result)
searchDownInserter
in class Node
group
- The searched groupresult
- The Vector to insert intopublic Node searchDown(int type, int subType)
searchDown
in class Node
type
- The searched type
public Enumeration searchDown(int type)
searchDown
in class Node
protected void searchDownInserter(int type, Vector result)
searchDownInserter
in class Node
type
- The searched typeresult
- The Vector to insert intoprotected void createSubNodeList(Vector list)
createSubNodeList
in class Node
list
- Vector to add intoprotected void createSubGroupList(Vector list)
createSubGroupList
in class Node
list
- Vector to add intoprotected void createLeafList(Vector list)
createLeafList
in class Node
list
- Vector to add intopublic Object clone()
clone
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |