kcl.waterloo.graphics.transforms
Class Services
- java.lang.Object
-
- kcl.waterloo.graphics.transforms.Services
-
public class Services extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description Services()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidaddClass(java.lang.Class clz)Adds a user specified class to the list of available transforms.static java.util.LinkedHashMap<java.lang.String,GJDataTransformInterface>getAvailable()Returns a list of the available data transformsstatic GJDataTransformInterfacegetInstanceForName(java.lang.String name)Returns an instance of the named transform
-
-
-
Method Detail
-
addClass
public static void addClass(java.lang.Class clz)
Adds a user specified class to the list of available transforms. The class must implement the GJDataTransformInterface or be an immediate subclass of a class that does. Note: classes should be added before any calls to getAvailable as programmer's can, and are likely to , call that just once in any JVM session and maintain the result in a static final property.- Parameters:
clz- the class to add
-
getAvailable
public static java.util.LinkedHashMap<java.lang.String,GJDataTransformInterface> getAvailable()
Returns a list of the available data transforms- Returns:
- a list of transforms classes in the kcl.waterloo.graphics.transforms package together with any transforms added with a call to addTransform
-
getInstanceForName
public static GJDataTransformInterface getInstanceForName(java.lang.String name)
Returns an instance of the named transform- Parameters:
name-- Returns:
- the GJDataTransformInterface
-
-
DMelt 3.0 © DataMelt by jWork.ORG