public class ParaViewPlot extends ConnectionPlot<IParaViewWebClient>
Composite
s.
Instances of this class should not be created manually. Instead, a plot
should be created via ConnectionVizService.createPlot(URI)
.
ParaViewVizService
DEFAULT_CATEGORY
Constructor and Description |
---|
ParaViewPlot(ParaViewVizService vizService)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
connectionStateChanged(IVizConnection<IParaViewWebClient> connection,
ConnectionState state,
java.lang.String message)
Notifies the listener that the connection's state has changed.
|
java.lang.String |
createAdditionalPage(org.eclipse.ui.part.MultiPageEditorPart parent,
org.eclipse.ui.IFileEditorInput file,
int pageNum)
Directs the service to draw one of its additional pages and add it to the
MultiPageEditorPart.
|
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.
|
int |
getNumAdditionalPages()
Gets the number of pages this service will display in the plot editor in
addition to the main canvas.
|
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<IParaViewWebClient> 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, getDataSource, getIndependentSeries, getNumberOfAxes, getPlotTitle, getProperties, getSourceHost, isSourceRemote, redraw, removePlotListener, save, saveAs, setPlotTitle, setProperties
public ParaViewPlot(ParaViewVizService vizService)
vizService
- The service used to create this plot.public void connectionStateChanged(IVizConnection<IParaViewWebClient> connection, ConnectionState state, java.lang.String message)
IVizConnectionListener
connectionStateChanged
in interface IVizConnectionListener<IParaViewWebClient>
connectionStateChanged
in class ConnectionPlot<IParaViewWebClient>
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.List<ISeries> getDependentSeries(java.lang.String category)
IPlot
getDependentSeries
in interface IPlot
getDependentSeries
in class AbstractPlot
public boolean isLoaded()
public boolean setConnection(IVizConnection<IParaViewWebClient> connection) throws java.lang.Exception
ConnectionPlot
setConnection
in class ConnectionPlot<IParaViewWebClient>
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<IParaViewWebClient>
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 java.lang.String createAdditionalPage(org.eclipse.ui.part.MultiPageEditorPart parent, org.eclipse.ui.IFileEditorInput file, int pageNum)
IPlot
createAdditionalPage
in interface IPlot
createAdditionalPage
in class AbstractPlot
parent
- The part which the page will be added to.file
- The file to use as input for the page.pageNum
- The id of the page to be drawn.public java.util.ArrayList<org.eclipse.jface.action.Action> getCustomActions()
IPlot
getCustomActions
in interface IPlot
getCustomActions
in class AbstractPlot
public int getNumAdditionalPages()
IPlot
getNumAdditionalPages
in interface IPlot
getNumAdditionalPages
in class AbstractPlot
public IRenderElementHolder getRenderElementHolder(Geometry geometry)
IVizCanvas
getRenderElementHolder
in interface IVizCanvas
getRenderElementHolder
in class AbstractPlot
geometry
- The geometry whose corresponding IRenderElements are sought.