Package org.pdfclown.documents.interaction.annotations

Examples of org.pdfclown.documents.interaction.annotations.Line


   
    // 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));
View Full Code Here

TOP

Related Classes of org.pdfclown.documents.interaction.annotations.Line

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.