cage.viewer
Class ViewerFactory

java.lang.Object
  extended by cage.viewer.ViewerFactory

public class ViewerFactory
extends java.lang.Object


Constructor Summary
ViewerFactory()
           
 
Method Summary
static boolean checkAvailability(java.lang.String viewerName, int dimension)
          Returns whether the given type of viewer is available for the given dimension.
static CaGeViewer getCaGeViewer(java.lang.String viewerName, int dimension)
           
static java.lang.String lastErrorMessage()
          Returns the last error message created in the methode getCaGeViewer(java.lang.String, int).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewerFactory

public ViewerFactory()
Method Detail

getCaGeViewer

public static CaGeViewer getCaGeViewer(java.lang.String viewerName,
                                       int dimension)

lastErrorMessage

public static java.lang.String lastErrorMessage()
Returns the last error message created in the methode getCaGeViewer(java.lang.String, int).

Returns:
the last error message created in the methode getCaGeViewer(java.lang.String, int).

checkAvailability

public static boolean checkAvailability(java.lang.String viewerName,
                                        int dimension)
Returns whether the given type of viewer is available for the given dimension.

Parameters:
viewerName - A type of viewer
dimension - A dimension
Returns:
true if this type is available for the given dimension