half = new PercentageXCoordinateValue(50.0);
}
public void testGetX() throws Exception
{
assertEquals(10, dime.getX(0, new Box(0, 0, 100, 100)));
assertEquals(15, dime.getX(0, new Box(5, 0, 100, 100)));
assertEquals(50, dime.getX(0, new Box(0, 0, 500, 100)));
assertEquals(50, half.getX(0, new Box(0, 0, 100, 100)));
assertEquals(55, half.getX(0, new Box(5, 0, 100, 100)));
assertEquals(250, half.getX(0, new Box(0, 0, 500, 100)));
}