Examples of drawRectangle()


Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawRectangle()

      float lineWidth = 1;
      composer.setLineWidth(lineWidth);
      composer.setFillColor(getBackColor());
      composer.setStrokeColor(getForeColor());
      Rectangle2D frame = new Rectangle2D.Double(lineWidth/2,lineWidth/2,size.getWidth()-lineWidth,size.getHeight()-lineWidth);
      composer.drawRectangle(frame,5);
      composer.fillStroke();
      composer.end();

      composer.beginLocalState();
      composer.drawRectangle(frame,5);
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawRectangle()

      composer.drawRectangle(frame,5);
      composer.fillStroke();
      composer.end();

      composer.beginLocalState();
      composer.drawRectangle(frame,5);
      composer.clip(); // Ensures that the visible content is clipped within the rounded frame.

      composer.beginMarkedContent(PdfName.Tx);
      composer.setFont(
        new StandardType1Font(
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawRectangle()

        templateSize.getHeight() - composer.getState().getFont().getAscent(composer.getState().getFontSize())
        )
      );

    // Drawing the side rectangle...
    composer.drawRectangle(
      new Rectangle2D.Double(
        templateSize.getWidth() - 50,
        0,
        50,
        templateSize.getHeight()
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawRectangle()

          // Drawing the arc frame...
          composer.beginLocalState();
          composer.setLineWidth(.25f);
          composer.setLineDash(3,5,5);
          composer.drawRectangle(arcFrame);
          composer.stroke();
          composer.end();

          // Draw the arc!
          composer.drawArc(arcFrame,startAngle,endAngle);
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawRectangle()

      // Drawing the circle frame...
      composer.beginLocalState();
      composer.setLineWidth(.25f);
      composer.setLineDash(3,5,5);
      composer.drawRectangle(arcFrame);
      composer.stroke();
      composer.end();

      // Drawing the circle...
      composer.setFillColor(new DeviceRGBColor(1,0,0));
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawRectangle()

      // Drawing the ellipse frame...
      composer.beginLocalState();
      composer.setLineWidth(.25f);
      composer.setLineDash(3,5,5);
      composer.drawRectangle(arcFrame);
      composer.stroke();
      composer.end();

      // Drawing the ellipse...
      composer.setFillColor(new DeviceRGBColor(0,1,0));
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawRectangle()

      // Drawing the ellipse frame...
      composer.beginLocalState();
      composer.setLineWidth(.25f);
      composer.setLineDash(3,5,5);
      composer.drawRectangle(arcFrame);
      composer.stroke();
      composer.end();

      // Drawing the ellipse...
      composer.setFillColor(new DeviceRGBColor(0,0,1));
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawRectangle()

      {
        composer.setLineDash(3,5,5);
      }

      composer.setFillColor(new DeviceRGBColor(1,x/500,x/500));
      composer.drawRectangle(
          new Rectangle2D.Double(x,250,150,100),
          radius // NOTE: radius parameter determines the rounded angle size.
          );
      composer.fillStroke();
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawRectangle()

      {
        if(alignmentIndex % 2 == 0)
        {
          composer.beginLocalState();
          composer.setFillColor(BackColor);
          composer.drawRectangle(
            new Rectangle2D.Double(
              0,
              y-step/2,
              pageSize.getWidth(),
              step
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawRectangle()

          blockComposer.end();

          composer.beginLocalState();
          composer.setLineWidth(.2f);
          composer.setLineDash(5,5,5);
          composer.drawRectangle(frame);
          composer.stroke();
          composer.end();
        }

        y+=step;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.