public class ChartEventViewer extends ChartDataViewer<DataEvent>
ChartDataViewer
displaying DataEvent
s.Constructor and Description |
---|
ChartEventViewer(org.eclipse.swt.widgets.Composite parent)
Creates a new
ChartEventViewer . |
Modifier and Type | Method and Description |
---|---|
protected void |
borderValuesChanged()
Handles a change in the minimal or maximal values that are to be drawn.
|
protected org.eclipse.swt.graphics.Rectangle[] |
calculateClipping(DataEvent data,
org.eclipse.swt.graphics.Point canvasSize)
Calculates the area to clip for given data to be drawn.
|
protected void |
drawValues(DataEvent data,
org.eclipse.swt.graphics.GC canvas,
org.eclipse.swt.graphics.Point canvasSize)
Draws given values on given
GC . |
protected void |
fillCaption(DataEvent data,
Caption caption)
Fills given
Caption with information gathered from given data. |
protected long |
getTime(DataEvent data)
Calculates the time from given data.
|
protected double[] |
isDataStillInBorderValues(DataEvent data)
Checks whether given data is still in range of upper and lower
border-values.
|
protected void |
reset()
Resets the canvas.
|
adjustBorderValues, calculatePositionsFor, draw, getLowerBorderValue, getTimeAtCanvasStart, getTimeElapsed, getTimeToDisplay, getUpperBorderValue
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
public ChartEventViewer(org.eclipse.swt.widgets.Composite parent)
ChartEventViewer
.parent
- Composite
in which the ChartEventViewer
is
displayed.protected void reset()
ChartDataViewer
reset
in class ChartDataViewer<DataEvent>
protected double[] isDataStillInBorderValues(DataEvent data)
ChartDataViewer
isDataStillInBorderValues
in class ChartDataViewer<DataEvent>
data
- to be checked for.protected long getTime(DataEvent data)
ChartDataViewer
getTime
in class ChartDataViewer<DataEvent>
data
- time is to be calculated for.protected org.eclipse.swt.graphics.Rectangle[] calculateClipping(DataEvent data, org.eclipse.swt.graphics.Point canvasSize)
ChartDataViewer
calculateClipping
in class ChartDataViewer<DataEvent>
data
- that is to be drawn.canvasSize
- the size of the canvas the data is to be drawn on.Rectangle
s representing the areas to clip.protected void drawValues(DataEvent data, org.eclipse.swt.graphics.GC canvas, org.eclipse.swt.graphics.Point canvasSize)
ChartDataViewer
GC
.drawValues
in class ChartDataViewer<DataEvent>
data
- to be drawn.canvas
- to be drawn on.canvasSize
- the size of the canvas to be drawn on.protected void borderValuesChanged()
ChartDataViewer
borderValuesChanged
in class ChartDataViewer<DataEvent>
protected void fillCaption(DataEvent data, Caption caption)
ChartDataViewer
Caption
with information gathered from given data.fillCaption
in class ChartDataViewer<DataEvent>
data
- to collect information from.caption
- to be filled with data.