public abstract class AbstractVizService extends java.lang.Object implements IVizService
IVizService
s and
includes helpful methods that are frequently used.
In particular this abstract class provides the following basic functionality:
createPlot(URI)
is called, this checks that the URI is not
null and that its extension is supported.Constructor and Description |
---|
AbstractVizService() |
Modifier and Type | Method and Description |
---|---|
IVizCanvas |
createCanvas(IController object)
Nothing to do for the basic implementation for creating a canvas.
|
IPlot |
createPlot(java.net.URI uri)
This class provides a basic implementation where an
IllegalArgumentException is thrown if the specified URI or its
associated file's extension is invalid. |
java.util.Set<java.lang.String> |
getSupportedExtensions()
Gets a set containing all supported file extensions for which an IPlot
can be created.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCanvas, getControllerProviderFactory, getName, getVersion
public IPlot createPlot(java.net.URI uri) throws java.lang.Exception
IllegalArgumentException
is thrown if the specified URI or its
associated file's extension is invalid.
It is recommended that sub-classes override this method but call it in
the first line. Sub-classes should also add supported extensions to the
set of supportedExtensions
at construction.
createPlot
in interface IVizService
uri
- The file from which the plot should be createdjava.lang.Exception
- An exception indicating that the IVizService could not create
a plot with the given file and giving the reason why.public IVizCanvas createCanvas(IController object) throws java.lang.Exception
createCanvas
in interface IVizService
object
- The input object which will be rendered in the new canvasjava.lang.Exception
- An exception indicating that the IVizService could not create
a canvas with the given object and giving the reason why.public java.util.Set<java.lang.String> getSupportedExtensions()
IVizService
getSupportedExtensions
in interface IVizService