|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jas.hist.FunctionRegistry
A class which maintains a list of functions which can be overlayed on a plot.
Method Summary | |
FunctionFactory |
createFunctionFactory(java.lang.Class c,
java.lang.String name)
Create a default function factory from a class and a name |
java.util.Enumeration |
elements()
Get an enumeration of all the FunctionFactories in the registry |
FunctionFactory |
find(java.lang.String name)
|
static FunctionRegistry |
instance()
Get the (unique) instance of FunctionRegistry |
void |
registerFunction(java.lang.Class c,
java.lang.String name)
Register a function given its class and name |
void |
registerFunction(FunctionFactory f)
Add a function by specifing a FunctionFactory |
void |
removeAllFunctions()
Clear the list |
void |
removeFunctionFactory(FunctionFactory f)
Remove a function factory from the list |
void |
setContents(java.util.Vector v)
Replace the contents of the list |
int |
size()
Get the size of the registry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FunctionRegistry instance()
public void registerFunction(java.lang.Class c, java.lang.String name)
c
- The class of the functionname
- The name of the functionpublic FunctionFactory createFunctionFactory(java.lang.Class c, java.lang.String name)
c
- The class of the functionname
- The name of the functionpublic void registerFunction(FunctionFactory f)
public void removeFunctionFactory(FunctionFactory f)
public void removeAllFunctions()
public java.util.Enumeration elements()
public int size()
public FunctionFactory find(java.lang.String name)
public void setContents(java.util.Vector v)
e
- An enumeration of function factories
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |