messageFormat.setFormatByArgumentIndex(0, dateFormat);
messageFormat.setFormatByArgumentIndex(1, PlotConstants.DECIMAL_FORMAT);
g2.setColor(TRANSLUCENT_WHITE);
g2.fillRect(mouseStartX, mouseStartY - fontMetrics.getHeight() - 2, fontMetrics.stringWidth(startPoint), fontMetrics.getHeight());
g2.setColor(START_POINT_FOREGROUND);
g2.drawChars(startPoint.toCharArray(), 0, startPoint.length(), mouseStartX, mouseStartY - 4);
p = convertPointToLogicalCoord(mouseEndX, mouseEndY);
String endPoint = messageFormat.format(new Object[]{p.getX(), p.getY()});
messageFormat.setFormatByArgumentIndex(0, dateFormat);
messageFormat.setFormatByArgumentIndex(1, PlotConstants.DECIMAL_FORMAT);