// Arrow line.
composer.showText("Line annotation:", new Point(35,185));
composer.setFont(font,10);
composer.showText("Arrow:", new Point(50,200));
Line line = new Line(
page,
new Point(50, 260),
new Point(200,210)
);
line.setFillColor(new DeviceRGBColor(1,0,0));
line.setStartStyle(Line.LineEndStyleEnum.Circle);
line.setEndStyle(Line.LineEndStyleEnum.ClosedArrow);
line.setText("Arrow line annotation");
line.setCaptionVisible(true);
// Dimension line.
composer.showText("Dimension:", new Point(300,200));
line = new Line(
page,
new Point(300,220),
new Point(500,220)
);
line.setLeaderLineLength(20);
line.setLeaderLineExtensionLength(10);
line.setText("Dimension line annotation");
line.setCaptionVisible(true);
composer.end();
// Scribble.
composer.showText("Scribble annotation:", new Point(35,285));