public class FXVizCanvas extends java.lang.Object implements IVizCanvas
A generic JavaFX visualization canvas.
Constructor and Description |
---|
FXVizCanvas(Geometry geometry)
Creates a canvas for the supplied geometry.
|
FXVizCanvas(IController geometry)
Creates a canvas for the supplied geometry.
|
Modifier and Type | Method and Description |
---|---|
void |
addRoot(Geometry part)
Adds a geometry to the canvas.
|
org.eclipse.swt.widgets.Composite |
draw(org.eclipse.swt.widgets.Composite parent)
This operation draws the canvas contents onto the given parent Composite.
|
java.net.URI |
getDataSource()
This operation returns the data source that is plotted/drawn by this
IPlot.
|
int |
getNumberOfAxes()
This operation returns the number of axes of the plot.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
This operation returns properties of this IPlot that can be safely
modified and/or tuned by the client.
|
IRenderElementHolder |
getRenderElementHolder(Geometry geometry)
Get the list of render elements used to display the given geometry in
this canvas.
|
java.lang.String |
getSourceHost()
This operation retrieves the hostname for this IPlot's data source.
|
BasicViewer |
getViewer()
Returns the underlying GeometryViewer.
|
boolean |
isSourceRemote()
This operation signifies whether or not the IPlot's host is local or
remote.
|
void |
redraw()
This operation directs the IPlot to redraw its contents.
|
void |
removeRoot(Geometry part)
Removes a geoemtry from the canvas.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> props)
This operation updates the properties of the plot based on client-side
modifications.
|
public FXVizCanvas(IController geometry)
geometry
- EAVP Geometry instance to visualize in the canvas.public FXVizCanvas(Geometry geometry)
geometry
- EAVP Geometry instance to visualize in the canvas.public org.eclipse.swt.widgets.Composite draw(org.eclipse.swt.widgets.Composite parent) throws java.lang.Exception
IVizCanvas
draw
in interface IVizCanvas
java.lang.Exception
IVizCanvas.draw(Composite)
public void addRoot(Geometry part)
part
- The part to be addedpublic void removeRoot(Geometry part)
part
- The part to be removedpublic BasicViewer getViewer()
Returns the underlying GeometryViewer.
public java.net.URI getDataSource()
IVizCanvas
getDataSource
in interface IVizCanvas
IVizCanvas.getDataSource()
public int getNumberOfAxes()
IVizCanvas
getNumberOfAxes
in interface IVizCanvas
IVizCanvas.getNumberOfAxes()
public java.util.Map<java.lang.String,java.lang.String> getProperties()
IVizCanvas
getProperties
in interface IVizCanvas
IVizCanvas.getProperties()
public java.lang.String getSourceHost()
IVizCanvas
getSourceHost
in interface IVizCanvas
IVizCanvas.getSourceHost()
public boolean isSourceRemote()
IVizCanvas
isSourceRemote
in interface IVizCanvas
IVizCanvas.isSourceRemote()
public void redraw()
IVizCanvas
redraw
in interface IVizCanvas
IVizCanvas.redraw()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> props) throws java.lang.Exception
IVizCanvas
setProperties
in interface IVizCanvas
props
- The updated propertiesjava.lang.Exception
- This exception indicates that the IPlot could not update its
properties or redraw itself.IVizCanvas#setProperties()
public IRenderElementHolder getRenderElementHolder(Geometry geometry)
IVizCanvas
getRenderElementHolder
in interface IVizCanvas
geometry
- The geometry whose corresponding IRenderElements are sought.