/**
* Test the translation of Java2D values to data values.
*/
public void testTranslateJava2DToValue() {
LogAxis axis = new LogAxis();
axis.setRange(50.0, 100.0);
Rectangle2D dataArea = new Rectangle2D.Double(10.0, 50.0, 400.0, 300.0);
double y1 = axis.java2DToValue(75.0, dataArea, RectangleEdge.LEFT);
assertEquals(94.3874312681693, y1, EPSILON);
double y2 = axis.java2DToValue(75.0, dataArea, RectangleEdge.RIGHT);
assertEquals(94.3874312681693, y2, EPSILON);
double x1 = axis.java2DToValue(75.0, dataArea, RectangleEdge.TOP);
assertEquals(55.961246381405, x1, EPSILON);
double x2 = axis.java2DToValue(75.0, dataArea, RectangleEdge.BOTTOM);
assertEquals(55.961246381405, x2, EPSILON);
axis.setInverted(true);
double y3 = axis.java2DToValue(75.0, dataArea, RectangleEdge.LEFT);
assertEquals(52.9731547179647, y3, EPSILON);
double y4 = axis.java2DToValue(75.0, dataArea, RectangleEdge.RIGHT);
assertEquals(52.9731547179647, y4, EPSILON);
double x3 = axis.java2DToValue(75.0, dataArea, RectangleEdge.TOP);
assertEquals(89.3475453695651, x3, EPSILON);
double x4 = axis.java2DToValue(75.0, dataArea, RectangleEdge.BOTTOM);
assertEquals(89.3475453695651, x4, EPSILON);
}