public class InteractiveChart extends Chart implements org.eclipse.swt.events.PaintListener
| Modifier and Type | Field and Description |
|---|---|
private long |
clickedTime
the clicked time in milliseconds
|
private static java.lang.String[] |
EXTENSIONS
the filter extensions
|
private PropertiesResources |
resources
the resources created with properties dialog
|
protected SelectionRectangle |
selection
the selection rectangle for zoom in/out
|
| Constructor and Description |
|---|
InteractiveChart(org.eclipse.swt.widgets.Composite parent,
int style)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
createMenuItems()
Creates menu items.
|
void |
dispose() |
private IAxis[] |
getAxes(int orientation)
Gets the axes for given orientation.
|
void |
handleEvent(org.eclipse.swt.widgets.Event event) |
private void |
handleKeyDownEvent(org.eclipse.swt.widgets.Event event)
Handles the key down event.
|
private void |
handleMouseDownEvent(org.eclipse.swt.widgets.Event event)
Handles the mouse down event.
|
private void |
handleMouseMoveEvent(org.eclipse.swt.widgets.Event event)
Handles mouse move event.
|
private void |
handleMouseUpEvent(org.eclipse.swt.widgets.Event event)
Handles the mouse up event.
|
private void |
handleMouseWheel(org.eclipse.swt.widgets.Event event)
Handles mouse wheel event.
|
private void |
handleSelectionEvent(org.eclipse.swt.widgets.Event event)
Handles the selection event.
|
private void |
init()
Initializes.
|
private void |
openPropertiesDialog()
Opens the properties dialog.
|
private void |
openSaveAsDialog()
Opens the Save As dialog.
|
void |
paintControl(org.eclipse.swt.events.PaintEvent e) |
private void |
setRange(org.eclipse.swt.graphics.Point range,
IAxis axis)
Sets the axis range.
|
enableCompress, getAxisSet, getBackgroundInPlotArea, getLegend, getOrientation, getPlotArea, getSeriesSet, getTitle, isCompressEnabled, isUpdateSuspended, redraw, renderOffscreenImage, save, setBackground, setBackgroundInPlotArea, setOrientation, suspendUpdate, update, updateLayoutchanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBaraddControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, 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, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverseaddDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toStringprivate static final java.lang.String[] EXTENSIONS
protected SelectionRectangle selection
private long clickedTime
private PropertiesResources resources
public InteractiveChart(org.eclipse.swt.widgets.Composite parent,
int style)
parent - the parent compositestyle - the styleprivate void init()
private void createMenuItems()
public void paintControl(org.eclipse.swt.events.PaintEvent e)
paintControl in interface org.eclipse.swt.events.PaintListenerpublic void handleEvent(org.eclipse.swt.widgets.Event event)
handleEvent in interface org.eclipse.swt.widgets.ListenerhandleEvent in class Chartprivate void handleMouseMoveEvent(org.eclipse.swt.widgets.Event event)
event - the mouse move eventprivate void handleMouseDownEvent(org.eclipse.swt.widgets.Event event)
event - the mouse down eventprivate void handleMouseUpEvent(org.eclipse.swt.widgets.Event event)
event - the mouse up eventprivate void handleMouseWheel(org.eclipse.swt.widgets.Event event)
event - the mouse wheel eventprivate void handleKeyDownEvent(org.eclipse.swt.widgets.Event event)
event - the key down eventprivate IAxis[] getAxes(int orientation)
orientation - the orientationprivate void handleSelectionEvent(org.eclipse.swt.widgets.Event event)
event - the eventprivate void openSaveAsDialog()
private void openPropertiesDialog()
private void setRange(org.eclipse.swt.graphics.Point range,
IAxis axis)
range - the axis range in pixelsaxis - the axis to set range