FreeHEP API
Version v1.1

hep.graphics.heprep.streamer
Class StreamerHepRepInstance

java.lang.Object
  |
  +--hep.graphics.heprep.streamer.StreamerHepRepAttribute
        |
        +--hep.graphics.heprep.streamer.StreamerHepRepInstance
All Implemented Interfaces:
HepRepAttribute, HepRepConstants, HepRepInstance

public class StreamerHepRepInstance
extends StreamerHepRepAttribute
implements HepRepInstance

Version:
$Id: StreamerHepRepInstance.java,v 1.1 2002/09/18 23:59:58 duns Exp $
Author:
M.Donszelmann

Field Summary
static String cvsId
           
 
Fields inherited from interface hep.graphics.heprep.HepRepConstants
SHOW_DESC, SHOW_EXTRA, SHOW_NAME, SHOW_NONE, SHOW_VALUE, TYPE_BOOLEAN, TYPE_COLOR, TYPE_DOUBLE, TYPE_INT, TYPE_LONG, TYPE_STRING, TYPE_UNKNOWN
 
Constructor Summary
StreamerHepRepInstance(HepRepWriter streamer, HepRepInstance parent, HepRepType type)
           
StreamerHepRepInstance(HepRepWriter streamer, HepRepInstanceTree parent, HepRepType type)
           
 
Method Summary
 void addInstance(HepRepInstance instance)
          Adds an sub-instance to this instance.
 void addPoint(HepRepPoint point)
          Adds a point to this instance.
 HepRepInstance copy(HepRep heprep, HepRepInstance parent)
          Returns a deep copy of this instance.
 HepRepInstance copy(HepRep heprep, HepRepInstance parent, HepRepSelectFilter filter)
          Returns a deep copy of this instance.
 HepRepInstance copy(HepRep heprep, HepRepInstanceTree parent)
          Returns a deep copy of this instance.
 HepRepInstance copy(HepRep heprep, HepRepInstanceTree parent, HepRepSelectFilter filter)
          Returns a deep copy of this instance.
 HepRepAttValue getAttValue(String name)
          search for attribute on node, then search on type
 Collection getInstances()
          Returns a collection of all sub-instances this instance keeps.
 Collection getPoints()
          Returns a collection of all points this instance keeps.
 HepRepType getType()
          Returns the associated type for this instance.
 Object getUserObject()
          Returns a user object previously set on this instance.
 void removeInstance(HepRepInstance instance)
          Removes a sub-instance from this instance.
 void setUserObject(Object object)
          Sets a User Object on this instance.
 String toString()
           
 
Methods inherited from class hep.graphics.heprep.streamer.StreamerHepRepAttribute
addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, getAttValueFromNode, getAttValuesFromNode, removeAttValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hep.graphics.heprep.HepRepAttribute
addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, getAttValueFromNode, getAttValuesFromNode, removeAttValue
 

Field Detail

cvsId

public static final String cvsId
See Also:
Constant Field Values
Constructor Detail

StreamerHepRepInstance

public StreamerHepRepInstance(HepRepWriter streamer,
                              HepRepInstance parent,
                              HepRepType type)
                       throws IOException

StreamerHepRepInstance

public StreamerHepRepInstance(HepRepWriter streamer,
                              HepRepInstanceTree parent,
                              HepRepType type)
                       throws IOException
Method Detail

copy

public HepRepInstance copy(HepRep heprep,
                           HepRepInstance parent)
                    throws CloneNotSupportedException
Description copied from interface: HepRepInstance
Returns a deep copy of this instance.

Specified by:
copy in interface HepRepInstance
Parameters:
heprep - needed to find the associated type.
parent - to which the copy is added.
Returns:
copy of this instance.
Throws:
CloneNotSupportedException - if copying is not possible.

copy

public HepRepInstance copy(HepRep heprep,
                           HepRepInstanceTree parent)
                    throws CloneNotSupportedException
Description copied from interface: HepRepInstance
Returns a deep copy of this instance.

Specified by:
copy in interface HepRepInstance
Parameters:
heprep - needed to find the associated type.
parent - to which the copy is added.
Returns:
copy of this instance.
Throws:
CloneNotSupportedException - if copying is not possible.

copy

public HepRepInstance copy(HepRep heprep,
                           HepRepInstance parent,
                           HepRepSelectFilter filter)
                    throws CloneNotSupportedException
Description copied from interface: HepRepInstance
Returns a deep copy of this instance.

Specified by:
copy in interface HepRepInstance
Parameters:
heprep - needed to find the associated type.
parent - to which the copy is added.
filter - run on all instances before copying.
Returns:
copy of this instance.
Throws:
CloneNotSupportedException - if copying is not possible.

copy

public HepRepInstance copy(HepRep heprep,
                           HepRepInstanceTree parent,
                           HepRepSelectFilter filter)
                    throws CloneNotSupportedException
Description copied from interface: HepRepInstance
Returns a deep copy of this instance.

Specified by:
copy in interface HepRepInstance
Parameters:
heprep - needed to find the associated type.
parent - to which the copy is added.
filter - run on all instances before copying.
Returns:
copy of this instance.
Throws:
CloneNotSupportedException - if copying is not possible.

setUserObject

public void setUserObject(Object object)
Description copied from interface: HepRepInstance
Sets a User Object on this instance.

Specified by:
setUserObject in interface HepRepInstance
Parameters:
object - User Object.

getUserObject

public Object getUserObject()
Description copied from interface: HepRepInstance
Returns a user object previously set on this instance.

Specified by:
getUserObject in interface HepRepInstance
Returns:
User Object.

getType

public HepRepType getType()
Description copied from interface: HepRepInstance
Returns the associated type for this instance.

Specified by:
getType in interface HepRepInstance
Returns:
associated HepRepType.

addPoint

public void addPoint(HepRepPoint point)
              throws IOException
Description copied from interface: HepRepInstance
Adds a point to this instance.

Specified by:
addPoint in interface HepRepInstance
Parameters:
point - to be added.
Throws:
IOException - only if written immediately to a stream.

getPoints

public Collection getPoints()
Description copied from interface: HepRepInstance
Returns a collection of all points this instance keeps.

Specified by:
getPoints in interface HepRepInstance
Returns:
collection of HepRepPoints.

addInstance

public void addInstance(HepRepInstance instance)
                 throws IOException
Description copied from interface: HepRepInstance
Adds an sub-instance to this instance.

Specified by:
addInstance in interface HepRepInstance
Parameters:
instance - sub-instance.
Throws:
IOException - only if written immediately to a stream.

removeInstance

public void removeInstance(HepRepInstance instance)
Description copied from interface: HepRepInstance
Removes a sub-instance from this instance.

Specified by:
removeInstance in interface HepRepInstance
Parameters:
instance - sub-instance.

getInstances

public Collection getInstances()
Description copied from interface: HepRepInstance
Returns a collection of all sub-instances this instance keeps.

Specified by:
getInstances in interface HepRepInstance
Returns:
collection of HepRepInstances.

getAttValue

public HepRepAttValue getAttValue(String name)
search for attribute on node, then search on type

Specified by:
getAttValue in interface HepRepAttribute
Specified by:
getAttValue in class StreamerHepRepAttribute
Parameters:
name - of attribute value.
Returns:
attribute value.

toString

public String toString()
Overrides:
toString in class Object

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.