Examples of beginLocalState()


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

      Rectangle2D widgetBox = widget.getBox();
      Dimension2D size = new Dimension(widgetBox.getWidth(),widgetBox.getHeight());
      normalAppearanceState.setSize(size);
      PrimitiveComposer composer = new PrimitiveComposer(normalAppearanceState);

      composer.beginLocalState();
      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);
View Full Code Here

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

      Rectangle2D widgetBox = widget.getBox();
      Dimension2D size = new Dimension(widgetBox.getWidth(),widgetBox.getHeight());
      normalAppearanceState.setSize(size);
      PrimitiveComposer composer = new PrimitiveComposer(normalAppearanceState);

      composer.beginLocalState();
      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);
View Full Code Here

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

      Rectangle2D widgetBox = widget.getBox();
      Dimension2D size = new Dimension(widgetBox.getWidth(),widgetBox.getHeight());
      normalAppearanceState.setSize(size);
      PrimitiveComposer composer = new PrimitiveComposer(normalAppearanceState);

      composer.beginLocalState();
      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);
View Full Code Here

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

      Rectangle2D widgetBox = widget.getBox();
      Dimension2D size = new Dimension(widgetBox.getWidth(),widgetBox.getHeight());
      normalAppearanceState.setSize(size);
      PrimitiveComposer composer = new PrimitiveComposer(normalAppearanceState);

      composer.beginLocalState();
      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);
View Full Code Here

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

      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);
      composer.clip(); // Ensures that the visible content is clipped within the rounded frame.

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

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

      );
    composer.fill();
    composer.end();

    // Showing the side text inside the common content stream...
    composer.beginLocalState();
    composer.setFont(
      new StandardType1Font(
        document,
        StandardType1Font.FamilyEnum.Helvetica,
        false,
View Full Code Here

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

      8
      );
    composer.setFillColor(
      new DeviceRGBColor(1,1,1)
      );
    composer.beginLocalState();
    composer.rotate(
      90,
      new Point2D.Double(
        templateSize.getWidth() - 50,
        templateSize.getHeight() - 25
View Full Code Here

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

    // Begin local state!
    /*
      NOTE: Local state is a powerful feature of PDF format as it lets you nest
      multiple graphics contexts on the graphics state stack.
    */
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText(" embedded latin OpenFont/TrueType and non-embedded Type 1 fonts");
    // End the innermost local state!
    composer.end();
    blockComposer.showText(" along with");
View Full Code Here

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

    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText(" embedded latin OpenFont/TrueType and non-embedded Type 1 fonts");
    // End the innermost local state!
    composer.end();
    blockComposer.showText(" along with");
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText(" paragraph construction facilities");
    composer.end();
    blockComposer.showText(" through the BlockComposer class."); blockComposer.showBreak(breakSize);
    blockComposer.showText("Since version 0.0.4 the content stream stack has been completed, providing ");
View Full Code Here

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

    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText(" paragraph construction facilities");
    composer.end();
    blockComposer.showText(" through the BlockComposer class."); blockComposer.showBreak(breakSize);
    blockComposer.showText("Since version 0.0.4 the content stream stack has been completed, providing ");
    composer.beginLocalState();
    composer.setFillColor(TextColor_Highlight);
    blockComposer.showText("fully object-oriented access to the graphics objects that describe the contents on a page.");
    composer.end();
    blockComposer.showText(" It's a great step towards a whole bunch of possibilities, such as text extraction/replacement, that next releases will progressively exploit."); blockComposer.showBreak(breakSize);
    blockComposer.showText("Since version 0.0.6 it has supported ");
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.