trans.setDeviceOrgX(10.0);
trans.setDeviceOrgY(20.0);
trans.setDeviceExtX(50.0);
trans.setDeviceExtY(-100.0);
PrecisionRectangle rectWorld = new PrecisionRectangle();
rectWorld.preciseX = 12.0;
rectWorld.preciseY = -25.0;
rectWorld.preciseWidth = 150.0;
rectWorld.preciseHeight = 150.0;
PrecisionPoint pointWorld =
new PrecisionPoint(rectWorld.preciseX, rectWorld.preciseY);
PrecisionDimension dimWorld =
new PrecisionDimension(rectWorld.preciseWidth, rectWorld.preciseHeight);
PrecisionPoint pointDevice = trans.transformPoint(pointWorld);
PrecisionDimension dimDevice = trans.transformDimension(dimWorld);
PrecisionRectangle rectDevice = trans.transformRect(rectWorld);
// The transformed location & dimension should be (16,70) & (75,-300)
}