RectangleConstraint constraint = new RectangleConstraint(
10.0, new Range(10.0, 10.0), LengthConstraintType.FIXED,
0.0, new Range(0.0, 0.0), LengthConstraintType.NONE
);
BlockContainer container = new BlockContainer(new BorderArrangement());
BufferedImage image = new BufferedImage(
200, 100, BufferedImage.TYPE_INT_RGB
);
Graphics2D g2 = image.createGraphics();