|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.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.SwitchGroup
This class represents a SwitchGroup. The children can switched switched on or off controlled by the childMask (BitSet) and the witchChild value. If the witchChild value is set to CHILD_MASK the projector filters the children with the childMask. This class is used to realizes the LOD-Groups Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
static int |
CHILD_ALL
show all children |
static int |
CHILD_MASK
show only the childMask filtered children |
static int |
CHILD_NONE
don't show any children |
private BitSet |
childMask_
childMask |
private int |
witchChild_
main filter (NONE,ALL,MASK) |
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 | |
SwitchGroup()
Creates an instance of this class. |
|
SwitchGroup(int wc)
Creates an instance of this class and set witchChild. |
|
SwitchGroup(int wc,
BitSet cm)
Creates an instance of this class and set witchChild, childMask. |
Method Summary | |
protected void |
childAddedEvent(int index)
This method can be overwritten by subclasses. |
protected void |
childRemovedEvent(int index)
This method can be overwritten by subclasses. |
Object |
clone()
Clones the SwitchGroup |
BitSet |
getChildMask()
Returns the childMask |
int |
getWitchChild()
Returns the witchChild value |
void |
setChildMask(BitSet cm)
Sets the childMask. |
void |
setWitchChild(int wc)
Sets the witchChild value. |
Methods inherited from class de.fhg.igd.earth.model.graph.Group |
addChild, allowChildAddEvent, calcBoundingBox, createLeafList, createSubGroupList, createSubNodeList, detach, detachedEvent, getAllChildren, getChild, getErasedChildren, getSubType, getType, numChildren, removeAllChildren, 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 |
public static final int CHILD_NONE
public static final int CHILD_ALL
public static final int CHILD_MASK
private BitSet childMask_
private int witchChild_
Constructor Detail |
public SwitchGroup()
public SwitchGroup(int wc)
wc
- witchChildpublic SwitchGroup(int wc, BitSet cm)
wc
- witchChildcm
- childMaskMethod Detail |
public BitSet getChildMask()
public void setChildMask(BitSet cm)
public int getWitchChild()
public void setWitchChild(int wc)
protected void childAddedEvent(int index)
childAddedEvent
in class Group
index
- Index of the new nodeprotected void childRemovedEvent(int index)
childRemovedEvent
in class Group
public Object clone()
clone
in class Group
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |