Using Point object to draw circles. Changing text direction and kerning

PDF pdf = new PDF();
Font f1 = new Font(pdf, "Helvetica");
// Please note:
// All font and image objects must be
// created before the first page object.

Page page = new Page(pdf, Letter.PORTRAIT);

TextLine text = new TextLine(
        f1, "             Hello, World.");
text.setPosition(300.0, 300.0);
for (int i = 0; i < 360; i += 15) {
    text.setTextDirection(i);
    text.drawOn(page);
}

Point point = new Point(300.0, 300.0);
point.setShape(Point.CIRCLE);
point.setFillShape(true);
point.setColor(RGB.BLUE);
point.setRadius(37.0);
point.drawOn(page);

point.setRadius(25.0);
point.setColor(RGB.WHITE);
point.drawOn(page);

pdf.wrap();
pdf.save("Example_05.pdf");
Example_05.java Example_05.pdf

© 2007 Innovatics Inc.