private static final int SCREENSHOT_SELECTED_LINE_WIDTH = 2;
private static final int SCREENSHOT_BORDER_LINE_WIDTH = 1;
- private static final int SCREENSHOT_DOT_WIDTH = 8;
+ private static final int SCREENSHOT_DOT_WIDTH = 12;
private static final int MULTI_CHECK_BAR_WIDTH = 2;
for(DAChartSeriesItem seriesItem : seriesItems) {
int pixelX = plot.getXPixelFromX(seriesItem.getX()) - SCREENSHOT_DOT_WIDTH;
- int pixelY = DAChartBoard.DEFAULT_ITEM_HEIGHT / 2 - SCREENSHOT_DOT_WIDTH;
+ int pixelY = (DAChartBoard.DEFAULT_ITEM_HEIGHT - SCREENSHOT_DOT_WIDTH) / 2;
gc.setForeground(ColorResources.SCREENSHOT_CHART_DOT);
gc.setBackground(ColorResources.SCREENSHOT_CHART_DOT);
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseMoveListener;
+import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Canvas;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.tizen.dynamicanalyzer.common.AnalyzerManager;
import org.tizen.dynamicanalyzer.common.DASelectionData;
protected static final int SELECTION_MARKER_INDEX = 0;
- private static final int SCREENSHOT_DOT_WIDTH = 8;
+ private static final int SCREENSHOT_DOT_WIDTH = 12;
public TimelineChartMouseEventListener(DAPopupMenu menu, DATimeline timeline, String pageID) {
this.menu = menu;
}
if (plot instanceof DAScreenshotChartPlot) {
-// ((DAScreenshotChartPlot) plot).setHighlightedImageIndex(getHighlightedImageIndex(e));
-// chart.redraw();
+ if(getPointedScreenshotImage(e) != null) {
+ Display.getCurrent().getCursorControl().setCursor(new Cursor(Display.getCurrent(), SWT.CURSOR_HAND));
+ } else {
+ Display.getCurrent().getCursorControl().setCursor(null);
+ }
} else if (plot instanceof DAUIEventChartPlot) {
DAUIEventChartPlot uiEventChartPlot = (DAUIEventChartPlot) plot;
int seriesIndex = (int) (newYPosRatio * chart.getSeriesList().size());
int index = -1;
for(DAChartSeriesItem item : series.getSeriesItemList()) {
- if(e.x >= plot.getXPixelFromX(item.getX()) - SCREENSHOT_DOT_WIDTH / 2 &&
- e.x <= plot.getXPixelFromX(item.getX()) + SCREENSHOT_DOT_WIDTH / 2 &&
+ if(e.x >= plot.getXPixelFromX(item.getX()) - SCREENSHOT_DOT_WIDTH &&
+ e.x <= plot.getXPixelFromX(item.getX()) &&
e.y >= (DAChartBoard.DEFAULT_ITEM_HEIGHT - SCREENSHOT_DOT_WIDTH) / 2 &&
e.y <= (DAChartBoard.DEFAULT_ITEM_HEIGHT + SCREENSHOT_DOT_WIDTH) / 2) {
index = series.getSeriesItemList().indexOf(item);
int index = -1;
for(DAChartSeriesItem item : series.getSeriesItemList()) {
- if(e.x >= plot.getXPixelFromX(item.getX()) - SCREENSHOT_DOT_WIDTH / 2 &&
- e.x <= plot.getXPixelFromX(item.getX()) + SCREENSHOT_DOT_WIDTH / 2 &&
+ if(e.x >= plot.getXPixelFromX(item.getX()) - SCREENSHOT_DOT_WIDTH &&
+ e.x <= plot.getXPixelFromX(item.getX()) &&
e.y >= (DAChartBoard.DEFAULT_ITEM_HEIGHT - SCREENSHOT_DOT_WIDTH) / 2 &&
e.y <= (DAChartBoard.DEFAULT_ITEM_HEIGHT + SCREENSHOT_DOT_WIDTH) / 2) {
index = series.getSeriesItemList().indexOf(item);