FreeHEP API
Version v1.2.2

hep.graphics.heprep.ref
Class DefaultHepRepFactory

java.lang.Object
  |
  +--hep.graphics.heprep.HepRepFactory
        |
        +--hep.graphics.heprep.ref.DefaultHepRepFactory
Direct Known Subclasses:
XMLHepRepFactory

public class DefaultHepRepFactory
extends HepRepFactory

Version:
$Id: DefaultHepRepFactory.java,v 1.11 2003/06/28 20:45:39 duns Exp $
Author:
Mark Donszelmann

Field Summary
static String cvsId
           
 
Fields inherited from class hep.graphics.heprep.HepRepFactory
defaultFactoryName, factoryName, propertyFile
 
Constructor Summary
DefaultHepRepFactory()
           
 
Method Summary
 HepRep createHepRep()
          Creates a HepRep.
 HepRepAction createHepRepAction(String name, String expression)
          Creates a HepRepAction.
 HepRepInstance createHepRepInstance(HepRepInstance parent, HepRepType type)
          Creates a HepRepInstance.
 HepRepInstance createHepRepInstance(HepRepInstanceTree parent, HepRepType type)
          Creates a HepRepInstance.
 HepRepInstanceTree createHepRepInstanceTree(String name, String version, HepRepTreeID typeTree)
          Creates a HepRepInstanceTree.
 HepRepPoint createHepRepPoint(HepRepInstance instance, double x, double y, double z)
          Creates a HepRepPoint.
 HepRepReader createHepRepReader(InputStream in)
          Creates a HepRepReader from a stream.
 HepRepReader createHepRepReader(String inputFileName)
          Creates a HepRepReader from a file name.
 HepRepTreeID createHepRepTreeID(String name, String version, String qualifier)
          Creates a HepRepTreeID.
 HepRepType createHepRepType(HepRepType parent, String name)
          Creates a HepRepType.
 HepRepTypeTree createHepRepTypeTree(HepRepTreeID treeID)
          Creates a HepRepTypeTree.
 HepRepWriter createHepRepWriter(OutputStream out, boolean randomAccess, boolean compress)
          Creates a HepRepWriter.
 
Methods inherited from class hep.graphics.heprep.HepRepFactory
create, createHepRepTreeID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsId

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

DefaultHepRepFactory

public DefaultHepRepFactory()
Method Detail

createHepRepReader

public HepRepReader createHepRepReader(InputStream in)
                                throws IOException
Description copied from class: HepRepFactory
Creates a HepRepReader from a stream.

Specified by:
createHepRepReader in class HepRepFactory
Parameters:
in - input stream.
Throws:
IOException - in case of problems with the stream.

createHepRepReader

public HepRepReader createHepRepReader(String inputFileName)
                                throws IOException
Description copied from class: HepRepFactory
Creates a HepRepReader from a file name.

Specified by:
createHepRepReader in class HepRepFactory
Parameters:
inputFileName - file name.
Throws:
IOException - in case of problems with the stream.

createHepRepWriter

public HepRepWriter createHepRepWriter(OutputStream out,
                                       boolean randomAccess,
                                       boolean compress)
                                throws IOException
Description copied from class: HepRepFactory
Creates a HepRepWriter.

Specified by:
createHepRepWriter in class HepRepFactory
Parameters:
out - output stream.
randomAccess - create a writer in a format that will allow random access (may be ignored).
compress - create a writer that uses compression (may be ignored).
Throws:
IOException - in case of problems with the stream.

createHepRepPoint

public HepRepPoint createHepRepPoint(HepRepInstance instance,
                                     double x,
                                     double y,
                                     double z)
Description copied from class: HepRepFactory
Creates a HepRepPoint.

Specified by:
createHepRepPoint in class HepRepFactory
Parameters:
instance - to add the point to.
x - x coordinate of point.
y - y coordinate of point.
z - z coordinate of point.

createHepRepInstance

public HepRepInstance createHepRepInstance(HepRepInstance parent,
                                           HepRepType type)
Description copied from class: HepRepFactory
Creates a HepRepInstance.

Specified by:
createHepRepInstance in class HepRepFactory

createHepRepInstance

public HepRepInstance createHepRepInstance(HepRepInstanceTree parent,
                                           HepRepType type)
Description copied from class: HepRepFactory
Creates a HepRepInstance.

Specified by:
createHepRepInstance in class HepRepFactory

createHepRepTreeID

public HepRepTreeID createHepRepTreeID(String name,
                                       String version,
                                       String qualifier)
Description copied from class: HepRepFactory
Creates a HepRepTreeID.

Specified by:
createHepRepTreeID in class HepRepFactory
Parameters:
name - of the treeID.
version - of the treeID.
qualifier - of the treeID.

createHepRepAction

public HepRepAction createHepRepAction(String name,
                                       String expression)
Description copied from class: HepRepFactory
Creates a HepRepAction.

Specified by:
createHepRepAction in class HepRepFactory
Parameters:
name - of the action.
expression - of the action.

createHepRepInstanceTree

public HepRepInstanceTree createHepRepInstanceTree(String name,
                                                   String version,
                                                   HepRepTreeID typeTree)
Description copied from class: HepRepFactory
Creates a HepRepInstanceTree.

The tree needs to be added to the HepRep.

Specified by:
createHepRepInstanceTree in class HepRepFactory
Parameters:
name - of the instancetree.
version - of the instancetree.
typeTree - associated typetree.

createHepRepType

public HepRepType createHepRepType(HepRepType parent,
                                   String name)
Description copied from class: HepRepFactory
Creates a HepRepType.

Specified by:
createHepRepType in class HepRepFactory
Parameters:
parent - to add this type to.
name - of the type to create.

createHepRepTypeTree

public HepRepTypeTree createHepRepTypeTree(HepRepTreeID treeID)
Description copied from class: HepRepFactory
Creates a HepRepTypeTree.

The tree needs to be added to the HepRep.

Specified by:
createHepRepTypeTree in class HepRepFactory
Parameters:
treeID - to name the tree being created.

createHepRep

public HepRep createHepRep()
Description copied from class: HepRepFactory
Creates a HepRep.

Specified by:
createHepRep in class HepRepFactory

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.