|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.graphics.heprep.HepRepFactory
public abstract class HepRepFactory
HepRepFactory interface.
Field Summary | |
---|---|
static String |
defaultFactoryName
Default HepRep factory classname. |
static String |
factoryName
Name of the interface for factory for HepRep. |
static String |
propertyFile
Properties filename to find out what factory to load for HepRep. |
Constructor Summary | |
---|---|
HepRepFactory()
|
Method Summary | |
---|---|
static HepRepFactory |
create()
Creates a heprep factory based on the content of heprep.properties file. |
abstract HepRep |
createHepRep()
Creates a HepRep. |
abstract HepRepAction |
createHepRepAction(String name,
String expression)
Creates a HepRepAction. |
abstract HepRepInstance |
createHepRepInstance(HepRepInstance parent,
HepRepType type)
Creates a HepRepInstance. |
abstract HepRepInstance |
createHepRepInstance(HepRepInstanceTree parent,
HepRepType type)
Creates a HepRepInstance. |
abstract HepRepInstanceTree |
createHepRepInstanceTree(String name,
String version,
HepRepTreeID typeTree)
Creates a HepRepInstanceTree. |
abstract HepRepPoint |
createHepRepPoint(HepRepInstance instance,
double x,
double y,
double z)
Creates a HepRepPoint. |
abstract HepRepReader |
createHepRepReader(InputStream in)
Creates a HepRepReader from a stream. |
abstract HepRepReader |
createHepRepReader(String inputFileName)
Creates a HepRepReader from a file name. |
HepRepTreeID |
createHepRepTreeID(String name,
String version)
Creates a HepRepTreeID. |
abstract HepRepTreeID |
createHepRepTreeID(String name,
String version,
String qualifier)
Creates a HepRepTreeID. |
abstract HepRepType |
createHepRepType(HepRepType parent,
String name)
Creates a HepRepType. |
abstract HepRepType |
createHepRepType(HepRepTypeTree parent,
String name)
Creates a HepRepType. |
abstract HepRepTypeTree |
createHepRepTypeTree(HepRepTreeID treeID)
Creates a HepRepTypeTree. |
abstract HepRepWriter |
createHepRepWriter(OutputStream out,
boolean randomAccess,
boolean compress)
Creates a HepRepWriter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String factoryName
public static final String propertyFile
public static final String defaultFactoryName
Constructor Detail |
---|
public HepRepFactory()
Method Detail |
---|
public static HepRepFactory create() throws ClassNotFoundException, IllegalAccessException, InstantiationException
ClassNotFoundException
- if the factory class cannot be found
IllegalAccessException
- if the factory class cannot be accessed
InstantiationException
- if the factory class cannot be instantiatedpublic abstract HepRepReader createHepRepReader(InputStream in) throws IOException
in
- input stream.
IOException
- in case of an IO problempublic abstract HepRepReader createHepRepReader(String inputFileName) throws IOException
inputFileName
- file name.
IOException
- in case of an IO problempublic abstract HepRepWriter createHepRepWriter(OutputStream out, boolean randomAccess, boolean compress) throws IOException
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).
IOException
- in case of an IO problempublic abstract HepRepPoint createHepRepPoint(HepRepInstance instance, double x, double y, double z)
instance
- to add the point to.x
- x coordinate of point.y
- y coordinate of point.z
- z coordinate of point.
public abstract HepRepInstance createHepRepInstance(HepRepInstance parent, HepRepType type)
parent
- to add the instance to.type
- type the associated type.
public abstract HepRepInstance createHepRepInstance(HepRepInstanceTree parent, HepRepType type)
parent
- to add the instance to.type
- type the associated type.
public HepRepTreeID createHepRepTreeID(String name, String version)
name
- of the treeID.version
- of the treeID.
public abstract HepRepTreeID createHepRepTreeID(String name, String version, String qualifier)
name
- of the treeID.version
- of the treeID.qualifier
- of the treeID.
public abstract HepRepAction createHepRepAction(String name, String expression)
name
- of the action.expression
- of the action.
public abstract HepRepInstanceTree createHepRepInstanceTree(String name, String version, HepRepTreeID typeTree)
The tree needs to be added to the HepRep.
name
- of the instancetree.version
- of the instancetree.typeTree
- associated typetree.
public abstract HepRepType createHepRepType(HepRepTypeTree parent, String name)
parent
- to add this type to.name
- of the type to create.
public abstract HepRepType createHepRepType(HepRepType parent, String name)
parent
- to add this type to.name
- of the type to create.
public abstract HepRepTypeTree createHepRepTypeTree(HepRepTreeID treeID)
The tree needs to be added to the HepRep.
treeID
- to name the tree being created.
public abstract HepRep createHepRep()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |