public boolean setMarkers(double x, boolean isLeft) {
    	xMarker.clearLabels(false);
        if (x < 0 || x >= logDataTable.getRowCount())
        	return false;
        XYSeries series = null;
    	if (isLeft) {
    		xMarker.setLabelAnchor(RectangleAnchor.TOP_RIGHT);
    		xMarker.setLabelTextAnchor(TextAnchor.TOP_LEFT);
    	}
    	else {
    		xMarker.setLabelAnchor(RectangleAnchor.TOP_LEFT);
    		xMarker.setLabelTextAnchor(TextAnchor.TOP_RIGHT);
    	}
        if (rpmDataset.getSeriesCount() > 0 && rpmPlotRenderer.isSeriesVisible(0)) {
        	series = rpmDataset.getSeries(0);
            xMarker.addLabel(series.getDescription() + ": " + series.getY((int)x), rpmPlotRenderer.getSeriesPaint(0), false);
        }
        for (int i = 0; i < dataset.getSeriesCount(); ++i) {
	        if (plotRenderer.isSeriesVisible(i)) {
	        	series = dataset.getSeries(i);
	            xMarker.addLabel(series.getDescription() + ": " + series.getY((int)x), plotRenderer.getSeriesPaint(i), false);
	        }
        }
        xMarker.setValue(x);
		return (series != null);
    }