Package org.pentaho.reporting.engine.classic.core.elementfactory

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.MessageFieldElementFactory.createElement()


    MessageFieldElementFactory elementFactory = new MessageFieldElementFactory();
    elementFactory.setName(label);
    elementFactory.setNullString("");
    elementFactory.setFormatString(label);
    configureFactory(elementFactory, bold, fontSize, alignment, rectangle);
    return elementFactory.createElement();
  }

  protected Element textField(String text, boolean bold, Rectangle rectangle)
  {
    TextFieldElementFactory elementFactory = new TextFieldElementFactory();
View Full Code Here


    tfef.setFontSize(new Integer(12));
    tfef.setBold(Boolean.TRUE);
    tfef.setAbsolutePosition(new Point2D.Double(0.0, 38.0));
    tfef.setMinimumSize(new FloatDimension(PRINT_WIDTH, 14.0f));
    tfef.setHorizontalAlignment(ElementAlignment.CENTER);
    pageHeader.addElement(tfef.createElement());

    labelFactory.setAbsolutePosition(new Point2D.Double(X1, 58.0));
    labelFactory.setText(
        "Please note that the questions AND responses presented below were INVENTED for the the purpose of this demo report.  They are NOT real.");
    labelFactory.setFontName("Serif");
View Full Code Here

      tfef.setFontSize(new Integer(12));
      tfef.setBold(Boolean.TRUE);
      tfef.setAbsolutePosition(new Point2D.Double(0.0, 38.0));
      tfef.setMinimumSize(new FloatDimension(PRINT_WIDTH, 14.0f));
      tfef.setHorizontalAlignment(ElementAlignment.CENTER);
      pageHeader.addElement(tfef.createElement());

      labelFactory.setAbsolutePosition(new Point2D.Double(X1, 58.0));
      labelFactory.setText(
          "Please note that the questions AND responses presented below were INVENTED for the the purpose of this demo report.  They are NOT real.");
      labelFactory.setFontName("Serif");
View Full Code Here

    tfef.setFontSize(new Integer(12));
    tfef.setBold(Boolean.TRUE);
    tfef.setAbsolutePosition(new Point2D.Double(0.0, 38.0));
    tfef.setMinimumSize(new FloatDimension(PRINT_WIDTH, 14.0f));
    tfef.setHorizontalAlignment(ElementAlignment.CENTER);
    pageHeader.addElement(tfef.createElement());

    labelFactory.setAbsolutePosition(new Point2D.Double(X1, 58.0));
    labelFactory.setText(
        "Please note that the questions AND responses presented below were INVENTED for the the purpose of this demo report.  They are NOT real.");
    labelFactory.setFontName("Serif");
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.