public class VisItPlotComposite extends ConnectionPlotComposite<gov.lbnl.visit.swt.VisItSwtConnection> implements IPlotListener
VisItPlot
.Constructor and Description |
---|
VisItPlotComposite(org.eclipse.swt.widgets.Composite parent,
int style)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
gov.lbnl.visit.swt.VisItSwtWidget |
getWidget()
Getter method for the canvas widget.
|
void |
plotUpdated(IPlot plot,
java.lang.String key,
java.lang.String value)
Notifies the listener that the plot has been updated along with state
information that the listener may be able to use.
|
void |
resetWidget()
Reset the composite's displayed widget to its original camera position.
|
boolean |
setConnectionPlot(ConnectionPlot<gov.lbnl.visit.swt.VisItSwtConnection> plot)
Sets the current plot associated with this plot composite.
|
void |
zoomWidget(java.lang.String direction)
Zoom the composite's displayed widget in or out, according to the input
string.
|
connectionStateChanged, setPlot
refresh
changed, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
public VisItPlotComposite(org.eclipse.swt.widgets.Composite parent, int style)
parent
- a widget which will be the parent of the new instance (cannot
be null)style
- the style of widget to constructpublic gov.lbnl.visit.swt.VisItSwtWidget getWidget()
public void resetWidget()
public void zoomWidget(java.lang.String direction)
direction
- Zoom the widget in if equal to "in" or out if equal to "out".
Method will do nothing if direction is any other value.public void plotUpdated(IPlot plot, java.lang.String key, java.lang.String value)
IPlotListener
plotUpdated
in interface IPlotListener
plot
- The plot that was updated.key
- The key for the update event that occurred.value
- An associated value for the update event that occurred.public boolean setConnectionPlot(ConnectionPlot<gov.lbnl.visit.swt.VisItSwtConnection> plot)
ConnectionPlotComposite
Note: This method will not refresh the composite
automatically. If the plot changes, the calling code should call
PlotComposite.refresh()
afterward.
setConnectionPlot
in class ConnectionPlotComposite<gov.lbnl.visit.swt.VisItSwtConnection>
plot
- The new plot shown in this composite, or null
to clear
it.