public class FakeVizService extends java.lang.Object implements IVizService
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name
The name of the fake service
|
Constructor and Description |
---|
FakeVizService(java.lang.String name)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
IVizCanvas |
createCanvas(Geometry geometry)
This operation directs the IVizService to create a new canvas displaying
the given Geometry and to return a handle to that canvas to the caller so
that it may modify the canvas.
|
IVizCanvas |
createCanvas(IController object)
This operation directs the IVizService to create a new canvas using the
given VizObject and to return a handle to that canvas to the caller so
that it may modify the canvas.
|
IPlot |
createPlot(java.net.URI file)
This operation directs the IVizService to create a new plot using the
specified file and to return a handle to that plot to the caller so that
it may modify the plot.
|
IControllerProviderFactory |
getControllerProviderFactory()
Returns a factory which will create views and controllers for model parts
specific to the service's rendering program.
|
java.lang.String |
getName()
This operation returns the name of the service.
|
java.util.Set<java.lang.String> |
getSupportedExtensions()
Gets a set containing all supported file extensions for which an IPlot
can be created.
|
java.lang.String |
getVersion()
This operation returns a version number for the service.
|
public FakeVizService(java.lang.String name)
name
- The name of the fake servicepublic java.lang.String getName()
IVizService
getName
in interface IVizService
public java.lang.String getVersion()
IVizService
getVersion
in interface IVizService
public IPlot createPlot(java.net.URI file) throws java.lang.Exception
IVizService
createPlot
in interface IVizService
file
- 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 java.util.Set<java.lang.String> getSupportedExtensions()
IVizService
getSupportedExtensions
in interface IVizService
public IVizCanvas createCanvas(IController object) throws java.lang.Exception
IVizService
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 IControllerProviderFactory getControllerProviderFactory()
IVizService
getControllerProviderFactory
in interface IVizService
public IVizCanvas createCanvas(Geometry geometry) throws java.lang.Exception
IVizService
createCanvas
in interface IVizService
geometry
- The input object which will be rendered in the new canvas.java.lang.Exception
- An exception indicating that the IVizService could not create
a canvas with the given object and giving the reason why.