Examples of createElement()


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

      elementFactory.setMinimumHeight(new Float(bounds.getHeight()));
      elementFactory.setContent(transformedShape);
      elementFactory.setScale(Boolean.TRUE);
      elementFactory.setKeepAspectRatio(Boolean.FALSE);
      elementFactory.setShouldDraw(Boolean.TRUE);
      element = elementFactory.createElement();
    }

  }

  private float computePosition(final String name, final float x1, final float x2)

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

      elementFactory.setMinimumWidth(new Float(bounds.getWidth()));
      elementFactory.setMinimumHeight(new Float(bounds.getHeight()));
      elementFactory.setScale(Boolean.TRUE);
      elementFactory.setKeepAspectRatio(Boolean.FALSE);
      elementFactory.setShouldDraw(Boolean.TRUE);
      element = elementFactory.createElement();
    }
    else
    {
      // here comes the magic - we transform the line into the absolute space;
      // this should preserve the general appearance. Heck, and if not, then

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

      elementFactory.setMinimumHeight(new Float(shapeBounds.getHeight()));
      elementFactory.setContent(transformedShape);
      elementFactory.setScale(Boolean.TRUE);
      elementFactory.setKeepAspectRatio(Boolean.FALSE);
      elementFactory.setShouldDraw(Boolean.TRUE);
      element = elementFactory.createElement();
    }
  }


  private Stroke readStroke(final PropertyAttributes atts)

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

  protected Element label(String text, boolean bold, ElementAlignment alignment, Rectangle rectangle)
  {
    LabelElementFactory elementFactory = new LabelElementFactory();
    elementFactory.setText(text);
    configureFactory(elementFactory, bold, FONTSIZE, alignment, rectangle);
    return elementFactory.createElement();
  }

  private void configureFactory(TextElementFactory elementFactory, boolean bold, int fontSize,
                                ElementAlignment alignment, Rectangle rectangle)
  {

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

    LabelElementFactory labelFactory = new LabelElementFactory();
    labelFactory.setAbsolutePosition(new Point2D.Float(0, 0));
    labelFactory.setMinimumSize(new FloatDimension(160, 12));
    labelFactory.setText("Crew:");
    group.getHeader().addElement(labelFactory.createElement());

    TextFieldElementFactory textFieldFactory = new TextFieldElementFactory();
    textFieldFactory.setFieldname("crew");
    textFieldFactory.setAbsolutePosition(new Point2D.Float(50, 0));
    textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));

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

    labelFactory = new LabelElementFactory();
    labelFactory.setAbsolutePosition(new Point2D.Float(100, 0));
    labelFactory.setMinimumSize(new FloatDimension(160, 12));
    labelFactory.setText("Trial:");
    group.getHeader().addElement(labelFactory.createElement());

    textFieldFactory = new TextFieldElementFactory();
    textFieldFactory.setFieldname("trial");
    textFieldFactory.setAbsolutePosition(new Point2D.Float(150, 0));
    textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));

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

    labelFactory = new LabelElementFactory();
    labelFactory.setAbsolutePosition(new Point2D.Float(200, 0));
    labelFactory.setMinimumSize(new FloatDimension(160, 12));
    labelFactory.setText("Run:");
    group.getHeader().addElement(labelFactory.createElement());

    textFieldFactory = new TextFieldElementFactory();
    textFieldFactory.setFieldname("run");
    textFieldFactory.setAbsolutePosition(new Point2D.Float(250, 0));
    textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));

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();

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

    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");

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

    elementFactory.setNullString("");
    elementFactory.setName(filedName);
    elementFactory.setFieldname(filedName);
    elementFactory.setFormatString(numberFormat);
    configureFactory(elementFactory, bold, FONTSIZE, ElementAlignment.RIGHT, rectangle);
    return elementFactory.createElement();
  }

  protected Element label(String text, boolean bold, ElementAlignment alignment, Rectangle rectangle)
  {
    LabelElementFactory elementFactory = new LabelElementFactory();
TOP
Copyright © 2015 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.