public class VisitPlotViewer extends org.eclipse.ui.part.ViewPart implements IDeletePlotActionViewPart, IVizUpdateableListener, org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.jface.viewers.IDoubleClickListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
The ID for this view
|
component
Constructor and Description |
---|
VisitPlotViewer()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlot(VizEntry entry)
Adds a plot to the current set of VisIt plots.
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Creates the widgets and controls for the PlotViewer.
|
void |
doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
This method is used to draw plots whenever a TreeItem in the
plotTreeViewer is double-clicked.
|
void |
drawPlot(VizEntry entry)
This method draws the plot for the specified entry if it is one of the
selected plots.
|
void |
drawSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
Draws all plots selected in
plotTreeViewer . |
IResource |
getResource()
Gets the current VisIt-compatible ICEResource that is being used by this
PlotViewer.
|
VizResourceComponent |
getResourceComponent()
This operation retrieves the active ResourceComponent of this view or
null if the component does not exist.
|
void |
removePlot(VizEntry entry)
Removes a plot from the current set of VisIt plots.
|
void |
removeSelection()
Removes all plots selected in
plotTreeViewer . |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
This method is used to draw plots whenever a TreeItem in the
plotTreeViewer is selected.
|
void |
setEntryMap()
This method fills in the entryMap based on the current resource.
|
void |
setFocus()
Does nothing yet.
|
void |
setResource(IVizResource inResource)
This method is called when the selection in the VizFileViewer has
changed.
|
void |
setResourceComponent(VizResourceComponent component)
This operation sets the ResourceComponent that should be used by this
view.
|
void |
update(IVizUpdateable component)
Updates the PlotViewer (specifically, the
plotTreeViewer ) when
the associated Component is updated. |
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 update(IVizUpdateable component)
plotTreeViewer
) when
the associated Component is updated.update
in interface IVizUpdateableListener
component
- The Component that was just updated.public void setResourceComponent(VizResourceComponent component)
component
- The ResourceComponentpublic VizResourceComponent getResourceComponent()
public IResource getResource()
public void addPlot(VizEntry entry)
entry
- The Entry for the plot that is to be added.public void removePlot(VizEntry entry)
entry
- The Entry for the plot that is to be removed.public void drawPlot(VizEntry entry)
entry
- The entry to draw with the VisIt widget.public void removeSelection()
plotTreeViewer
.removeSelection
in interface IDeletePlotActionViewPart
public void drawSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
plotTreeViewer
.public void setEntryMap()
public void setResource(IVizResource 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 void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
doubleClick
in interface org.eclipse.jface.viewers.IDoubleClickListener
event
- The DoubleClickEvent that fired this method.