T
- The type of the connection object.public abstract class ConnectionPlotComposite<T> extends PlotComposite implements IVizConnectionListener<T>
PlotComposite
specifically for rendering
visualizations over an IVizConnection
.Constructor and Description |
---|
ConnectionPlotComposite(org.eclipse.swt.widgets.Composite parent,
int style)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
connectionStateChanged(IVizConnection<T> connection,
ConnectionState state,
java.lang.String message)
Notifies the listener that the connection's state has changed.
|
boolean |
setConnectionPlot(ConnectionPlot<T> plot)
Sets the current plot associated with this plot composite.
|
boolean |
setPlot(IPlot plot)
Sets the current plot associated with this plot composite.
|
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 ConnectionPlotComposite(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 void connectionStateChanged(IVizConnection<T> connection, ConnectionState state, java.lang.String message)
IVizConnectionListener
connectionStateChanged
in interface IVizConnectionListener<T>
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 boolean setConnectionPlot(ConnectionPlot<T> plot)
Note: This method will not refresh the composite
automatically. If the plot changes, the calling code should call
PlotComposite.refresh()
afterward.
plot
- The new plot shown in this composite, or null
to clear
it.public boolean setPlot(IPlot plot)
PlotComposite
Note: This method will not refresh the composite
automatically. If the plot changes, the calling code should call
PlotComposite.refresh()
afterward.
setPlot
in class PlotComposite
plot
- The new plot shown in this composite, or null
to clear
it.