public class VisItPlot extends ConnectionPlot<gov.lbnl.visit.swt.VisItSwtConnection>
DEFAULT_CATEGORY
Constructor and Description |
---|
VisItPlot()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
connectionStateChanged(IVizConnection<gov.lbnl.visit.swt.VisItSwtConnection> connection,
ConnectionState state,
java.lang.String message)
Notifies the listener that the connection's state has changed.
|
java.util.List<java.lang.String> |
getCategories()
Gets all of the categories currently associated with this plot.
|
java.util.ArrayList<org.eclipse.jface.action.Action> |
getCustomActions()
Get the list of Actions available to this plot.
|
java.util.List<ISeries> |
getDependentSeries(java.lang.String category)
Gets all of the dependent series specified for this IPlot, as a list, for
the specified category.
|
IRenderElementHolder |
getRenderElementHolder(Geometry geometry)
Get the list of render elements used to display the given geometry in
this canvas.
|
boolean |
isLoaded()
Gets whether or not data has been loaded from the data source.
|
boolean |
setConnection(IVizConnection<gov.lbnl.visit.swt.VisItSwtConnection> connection)
Sets the connection for this plot.
|
boolean |
setDataSource(java.net.URI uri)
Sets the URI for this plot.
|
void |
setIndependentSeries(ISeries series)
Sets the series that will be on the independent axis for this plot.
|
draw
addPlotListener, createAdditionalPage, getDataSource, getIndependentSeries, getNumAdditionalPages, getNumberOfAxes, getPlotTitle, getProperties, getSourceHost, isSourceRemote, redraw, removePlotListener, save, saveAs, setPlotTitle, setProperties
public void connectionStateChanged(IVizConnection<gov.lbnl.visit.swt.VisItSwtConnection> connection, ConnectionState state, java.lang.String message)
IVizConnectionListener
connectionStateChanged
in interface IVizConnectionListener<gov.lbnl.visit.swt.VisItSwtConnection>
connectionStateChanged
in class ConnectionPlot<gov.lbnl.visit.swt.VisItSwtConnection>
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 java.util.List<java.lang.String> getCategories()
IPlot
getCategories
in interface IPlot
getCategories
in class AbstractPlot
public java.util.ArrayList<org.eclipse.jface.action.Action> getCustomActions()
IPlot
getCustomActions
in interface IPlot
getCustomActions
in class AbstractPlot
public java.util.List<ISeries> getDependentSeries(java.lang.String category)
IPlot
getDependentSeries
in interface IPlot
getDependentSeries
in class AbstractPlot
public boolean isLoaded()
public boolean setConnection(IVizConnection<gov.lbnl.visit.swt.VisItSwtConnection> connection) throws java.lang.Exception
ConnectionPlot
setConnection
in class ConnectionPlot<gov.lbnl.visit.swt.VisItSwtConnection>
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 ConnectionPlot<gov.lbnl.visit.swt.VisItSwtConnection>
uri
- The new data source URI.java.lang.Exception
- If there was an error setting the data source.public void setIndependentSeries(ISeries series)
IPlot
setIndependentSeries
in interface IPlot
setIndependentSeries
in class AbstractPlot
series
- The independent series, used to plot the other independent
seriespublic IRenderElementHolder getRenderElementHolder(Geometry geometry)
IVizCanvas
getRenderElementHolder
in interface IVizCanvas
getRenderElementHolder
in class AbstractPlot
geometry
- The geometry whose corresponding IRenderElements are sought.