FreeHEP API
Version current

hep.graphics.heprep
Interface HepRepInstanceTree

All Superinterfaces:
HepRepTreeID
All Known Implementing Classes:
DefaultHepRepInstanceTree, HepRepInstanceTreeAdapter, HepRepInstanceTreeAdapter

public interface HepRepInstanceTree
extends HepRepTreeID

Source Code:
HepRepInstanceTree.java

Method Summary
 void addInstance(HepRepInstance instance)
          Adds an instance to this instancetree.
 void addInstanceTree(HepRepTreeID instanceTree)
          Adds a related instance tree to this instancetree.
 HepRepInstanceTree copy(HepRepTypeTree typeTree)
          Returns a deep copy of this instancetree.
 HepRepInstanceTree copy(HepRepTypeTree typeTree, HepRepSelectFilter filter)
          Returns a deep copy of this instancetree.
 List getInstances()
          Returns a collection of instances.
 List getInstanceTreeList()
          Returns a collection of associated instance trees.
 Set getInstanceTrees()
          Deprecated. use getInstanveTreeList()
 HepRepTreeID getTypeTree()
          Returns the associated typetree.
 void overlay(HepRepInstanceTree instanceTree)
          Overlays the instance tree on the current tree.
 void removeInstance(HepRepInstance instance)
          Removes an instance from this instancetree.
 
Methods inherited from interface hep.graphics.heprep.HepRepTreeID
getName, getQualifier, getVersion, setQualifier
 

Method Detail

overlay

public void overlay(HepRepInstanceTree instanceTree)
Overlays the instance tree on the current tree. The list of instances of the instanceTree has to be the same as the current tree.


addInstance

public void addInstance(HepRepInstance instance)
Adds an instance to this instancetree.

Parameters:
instance - to be added.

removeInstance

public void removeInstance(HepRepInstance instance)
Removes an instance from this instancetree.

Parameters:
instance - to be removed.

getInstances

public List getInstances()
Returns a collection of instances.

Returns:
collection of HepRepInstances.

addInstanceTree

public void addInstanceTree(HepRepTreeID instanceTree)
Adds a related instance tree to this instancetree.

Parameters:
instanceTree - related instancetree.

getInstanceTrees

public Set getInstanceTrees()
Deprecated. use getInstanveTreeList()

Returns a collection of associated instance trees.

Returns:
collection of HepRepTreeIDs.

getInstanceTreeList

public List getInstanceTreeList()
Returns a collection of associated instance trees.

Returns:
collection of HepRepTreeIDs.

getTypeTree

public HepRepTreeID getTypeTree()
Returns the associated typetree.

Returns:
TreeID of the associated typetree.

copy

public HepRepInstanceTree copy(HepRepTypeTree typeTree)
                        throws CloneNotSupportedException
Returns a deep copy of this instancetree.

Returns:
copy of this instancetree.
Throws:
CloneNotSupportedException - if copying is not possible.

copy

public HepRepInstanceTree copy(HepRepTypeTree typeTree,
                               HepRepSelectFilter filter)
                        throws CloneNotSupportedException
Returns a deep copy of this instancetree.

Parameters:
filter - to filter the instances.
Returns:
copy of this instancetree.
Throws:
CloneNotSupportedException - if copying is not possible.

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.