Examples of restoreState()


Examples of com.lowagie.text.pdf.PdfContentByte.restoreState()

            tp.setGState(gs2);
            tp.sanityCheck();
            pictureCircles(0, 0, tp);
            tp.setGroup(group);
            cb.addTemplate(tp, 200 + 2 * gap, 500 - 200 - gap);
            cb.restoreState();

            cb.resetRGBColorFill();
            ColumnText ct = new ColumnText(cb);
            LwgPhrase ph = new LwgPhrase("Ungrouped objects\nObject opacity = 1.0");
            ct.setSimpleColumn(ph, gap, 0, gap + 200, 500, 18, LwgElement.ALIGN_CENTER);
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.restoreState()

        // draw a LwgRectangle around the page
        cb.setColorStroke(Color.orange);
        cb.setLineWidth(2);
        cb.rectangle(20, 20, document.getPageSize().getWidth() - 40, document.getPageSize().getHeight() - 40);
        cb.stroke();
        cb.restoreState();
        // starting on page 3, a watermark with an LwgImage that is made transparent
        if (writer.getPageNumber() >= 3) {
            cb.setGState(gstate);
            cb.setColorFill(Color.red);
            cb.beginText();
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.restoreState()

      cb.fill();
      cb.saveState();
      cb.setColorFill(Color.blue);
      cb.circle(260.0f, 500.0f, 150.0f);
      cb.fill();
      cb.restoreState();
      cb.circle(260.0f, 500.0f, 100.0f);
      cb.fill();
      cb.restoreState();
      cb.circle(260.0f, 500.0f, 50.0f);
      cb.fill();
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.restoreState()

      cb.circle(260.0f, 500.0f, 150.0f);
      cb.fill();
      cb.restoreState();
      cb.circle(260.0f, 500.0f, 100.0f);
      cb.fill();
      cb.restoreState();
      cb.circle(260.0f, 500.0f, 50.0f);
      cb.fill();
     
      cb.sanityCheck();
    } catch (DocumentException de) {
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.restoreState()

      cb.setFontAndSize(font.getBaseFont(), font.getSize());
      cb.beginText();
      cb.setTextMatrix(x , y);
      cb.showText(text);
      cb.endText();
      cb.restoreState();
  }
  /**
   *
   * @param table
   * @param content
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.restoreState()

      cb.rectangle(recFooter.getLeft(), recFooter.getBottom(), recFooter.getWidth(), recFooter.getHeight());
      cb.setLineWidth(/*0.5f*/0f);
      //cb.stroke();
    }

    cb.restoreState();

  }

  public void onCloseDocument(PdfWriter writer, Document document) {

View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.restoreState()

        seitex.setFontAndSize(bf, fontsize);
        seitex.setTextMatrix(m1, m2, m3, m4, xoff + recc.width() / 2,
                             yoff + recc.height() / 2);
        seitex.showText(text);
        seitex.endText();
        seitex.restoreState();
      }
      stamp.close();
    }
    catch (Exception e) {
      JOptionPane.showMessageDialog(internalFrame, e.getMessage(), e
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.restoreState()

        cb.saveState();
        // draw a Rectangle around the page
        cb.setLineWidth(1);
        cb.rectangle(30, 30, document.getPageSize().width() - 60, document.getPageSize().height() - 60);
        cb.stroke();
        cb.restoreState();
    }

    /**
     * @see com.lowagie.text.pdf.PdfPageEventHelper#onCloseDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)
     */
 
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.restoreState()

    try {
      cb.addImage(image);
    } catch (DocumentException e) {
      e.printStackTrace();
    }
    cb.restoreState();
  }

  /**
   * Set where the image can be found.
   *
 
View Full Code Here

Examples of com.sun.faces.application.MethodBindingMethodExpressionAdapter.restoreState()

  }

  private MethodBindingMethodExpressionAdapter saveRestoreState(
      MethodBindingMethodExpressionAdapter adaptor) {
    MethodBindingMethodExpressionAdapter restoredAdaptor = new MethodBindingMethodExpressionAdapter();
    restoredAdaptor.restoreState(facesContext, adaptor
        .saveState(facesContext));
    return restoredAdaptor;
  }

  private MethodBindingMethodExpressionAdapter serializeDeserialize(
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.