public class CSVPlotViewer extends PlayableViewPart implements IDeletePlotActionViewPart, IUpdateableListener, org.eclipse.jface.viewers.ISelectionChangedListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
The ID for this view
|
component
Constructor and Description |
---|
CSVPlotViewer()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlot(PlotProvider newPlotProvider)
Adds a plot to the current set of CSV plots.
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Creates the widgets and controls for the PlotViewer.
|
void |
drawPlot(PlotProvider newPlotProvider)
This method draws the plot for the specified entry if it is one of the
selected plots.
|
void |
drawSelection()
Draws all plots selected in
plotTreeViewer . |
VizResource |
getResource()
Gets the current VizResource wrapping the CSV file that is being used by
this PlotViewer.
|
ResourceComponent |
getResourceComponent()
This operation retrieves the active ResourceComponent of this view or
null if the component does not exist.
|
PlotProvider |
getSelection()
Public method for retrieving the selection in this view.
|
void |
removePlot(PlotProvider newPlotProvider)
Removes a plot from the current set of CSV plots.
|
void |
removeSelection()
Removes all plots selected in
plotTreeViewer . |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
This method is called when the selection in the PlotViewer has changed.
|
void |
setFocus()
Does nothing yet.
|
void |
setResource(VizResource inResource)
This method is called when the selection in the VizFileViewer has
changed.
|
void |
setResourceComponent(ResourceComponent component)
This operation sets the ResourceComponent that should be used by this
view.
|
void |
setToNextResource()
This function is called by the NextAction and PlayAction to set the
selection to the next element in the list.
|
void |
setToPreviousResource()
This function is called by the PreviousAction to set the selection to the
previous action in the list.
|
void |
update(IUpdateable component)
Updates the PlotViewer (specifically, the
plotTreeViewer ) when
the associated Component is updated. |
isPlayable
getViewSite, init, init, saveState, setInitializationData
addPartPropertyListener, addPropertyListener, dispose, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String ID
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
plotTreeViewer
.createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
parent
- The parent Composite that will contain this PlotViewer.WorkbenchPart.createPartControl(Composite)
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
WorkbenchPart.setFocus()
public void setToNextResource()
setToNextResource
in class PlayableViewPart
PlayableViewPart.setToNextResource()
public void setToPreviousResource()
setToPreviousResource
in class PlayableViewPart
PlayableViewPart.setToPreviousResource()
public void update(IUpdateable component)
plotTreeViewer
) when
the associated Component is updated.update
in interface IUpdateableListener
component
- The Component that was just updated.public void setResourceComponent(ResourceComponent component)
component
- The ResourceComponentpublic ResourceComponent getResourceComponent()
public VizResource getResource()
public void addPlot(PlotProvider newPlotProvider)
newPlotProvider
- The PlotProvider for the plot that is to be added.public void removePlot(PlotProvider newPlotProvider)
newPlotProvider
- The PlotProvider for the plot that is to be removed.public void drawPlot(PlotProvider newPlotProvider)
newPlotProvider
- The PlotProvider to draw.public void removeSelection()
plotTreeViewer
.removeSelection
in interface IDeletePlotActionViewPart
public void drawSelection()
plotTreeViewer
.public void setResource(VizResource inResource)
VizFileViewer
.inResource
- The VizResource in the VizFileViewer to set this object's
resource
to.public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged
in interface org.eclipse.jface.viewers.ISelectionChangedListener
event
- The SelectionChangedEvent that fired this method.public PlotProvider getSelection()