T
- The type of the connection object.public abstract class ConnectionPlot<T> extends AbstractPlot implements IVizConnectionListener<T>
IPlot
whose content
depends on a local or remote connection (an IVizConnection
).DEFAULT_CATEGORY
Constructor and Description |
---|
ConnectionPlot() |
Modifier and Type | Method and Description |
---|---|
void |
connectionStateChanged(IVizConnection<T> connection,
ConnectionState state,
java.lang.String message)
Notifies the listener that the connection's state has changed.
|
org.eclipse.swt.widgets.Composite |
draw(org.eclipse.swt.widgets.Composite parent)
This operation draws the canvas contents onto the given parent Composite.
|
boolean |
setConnection(IVizConnection<T> connection)
Sets the connection for this plot.
|
boolean |
setDataSource(java.net.URI uri)
Sets the URI for this plot.
|
addPlotListener, createAdditionalPage, getCategories, getCustomActions, getDataSource, getDependentSeries, getIndependentSeries, getNumAdditionalPages, getNumberOfAxes, getPlotTitle, getProperties, getRenderElementHolder, getSourceHost, isSourceRemote, redraw, removePlotListener, save, saveAs, setIndependentSeries, setPlotTitle, setProperties
public void connectionStateChanged(IVizConnection<T> connection, ConnectionState state, java.lang.String message)
IVizConnectionListener
connectionStateChanged
in interface IVizConnectionListener<T>
connection
- The connection whose state changed.state
- The new state of the connection.message
- A descriptive message to go along with the state change. This
is particularly useful if the connection failed.public org.eclipse.swt.widgets.Composite draw(org.eclipse.swt.widgets.Composite parent) throws java.lang.Exception
IVizCanvas
draw
in interface IVizCanvas
draw
in class AbstractPlot
java.lang.Exception
public boolean setConnection(IVizConnection<T> connection) throws java.lang.Exception
connection
- The new connection.java.lang.Exception
- If the data source URI is set and the connection host does
not match the URI's host.public boolean setDataSource(java.net.URI uri) throws java.lang.Exception
AbstractPlot
setDataSource
in class AbstractPlot
uri
- The new data source URI.java.lang.Exception
- If there was an error setting the data source.