public class PlotGridComposite
extends org.eclipse.swt.widgets.Composite
Constructor and Description |
---|
PlotGridComposite(org.eclipse.swt.widgets.Composite parent,
int style)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
addPlot(java.net.URI uri)
Adds a plot to be drawn inside the plot grid.
|
boolean |
contains(java.net.URI uri)
Return true if the given URI has already been
plotted and thus is contained in this PlotGridComposite.
|
void |
dispose() |
void |
refreshPlots(java.net.URI uri)
Refreshes any plots that may be associated with the specified URI.
|
int |
removeAllPlots()
Removes all plots from the grid.
|
boolean |
removePlot(int index)
Removes the plot with the specified index.
|
int |
removePlots(java.net.URI uri)
Removes any plot for the associated URI.
|
void |
setBackground(org.eclipse.swt.graphics.Color color) |
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, 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 PlotGridComposite(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 int addPlot(java.net.URI uri)
uri
- The URI of the file to be opened as a plot in the grid.java.lang.Exception
- An exception is thrown if the IPlot
implementation
cannot be rendered.public void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
public void refreshPlots(java.net.URI uri)
uri
- The data file.public int removeAllPlots()
public boolean removePlot(int index)
index
- The index of the plot to remove.public int removePlots(java.net.URI uri)
uri
- The URI for which all plots will be removed.public void setBackground(org.eclipse.swt.graphics.Color color)
setBackground
in class org.eclipse.swt.widgets.Control
public boolean contains(java.net.URI uri)
uri
-