Examples of createElement()


Examples of org.openoffice.xforms.Instance.createElement()

        // create a simple structure in the DOM tree: an element with two attributes
        String[] modelNames = m_document.getXFormModelNames();
        m_defaultModel = m_document.getXFormModel( modelNames[0] );
        Instance defaultInstance = m_defaultModel.getDefaultInstance();
        XNode stringElement = defaultInstance.createElement( "stringElement" );
        XNode booleanAttrib = defaultInstance.createAttribute( stringElement, "booleanAttribute", "true" );
        XNode dateAttrib = defaultInstance.createAttribute( stringElement, "dateAttribute" );

        assure( "booleanAttrib's parent is wrong",
            UnoRuntime.areSame( stringElement, booleanAttrib.getParentNode() ) );

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.ContentElementFactory.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.ContentElementFactory.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.ContentFieldElementFactory.createElement()

    final ItemBand itemBand = report.getItemBand();
    final ContentFieldElementFactory cfef = new ContentFieldElementFactory();
    cfef.setFieldname("field");
    cfef.setMinimumWidth(new Float(500));
    cfef.setMinimumHeight(new Float(200));
    itemBand.addElement(cfef.createElement());

    final DefaultTableModel tableModel = new DefaultTableModel(new String[]{"field"}, 2000);
    for (int row = 0; row < tableModel.getRowCount(); row++)
    {
      tableModel.setValueAt(new JLabel("Value row = " + row), row, 0);

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

    {
      tfFactory.setMinimumSize(new FloatDimension(columnWidth[i] - 4,
          cellHeight));
      tfFactory.setAbsolutePosition(new Point2D.Float(columnPos[i] + 2, 0));
      tfFactory.setFieldname(tm.getColumnName(i));
      items.addElement(tfFactory.createElement());
    }
    return report;
  }

  public void testAndShowCustomReport() throws ReportDataFactoryException

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

    cfef.setFieldname("CreateComponent");
    cfef.setMinimumSize(new FloatDimension(400, 400));
    cfef.setAbsolutePosition(new Point2D.Float(0, 0));

    final ReportFooter footer = new ReportFooter();
    footer.addElement(cfef.createElement());

    final MasterReport report = new MasterReport();
    report.setReportHeader(header);
    report.setReportFooter(footer);
    report.setName("Band in Band stacking");

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

    final ContentFieldElementFactory factory = new ContentFieldElementFactory();
    factory.setName("drawable-field");
    factory.setAbsolutePosition(new Point2D.Float(7, 7));
    factory.setMinimumSize(new FloatDimension(400, 250));
    factory.setFieldname("Chart");
    report.getItemBand().addElement(factory.createElement());
    report.setDataFactory(new TableDataFactory("default", data));
    return report;
  }

  public URL getDemoDescriptionSource()

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

    elementFactory.setMinimumSize(new FloatDimension(-50, -100));
    elementFactory.setVerticalAlignment(ElementAlignment.MIDDLE);
    elementFactory.setHorizontalAlignment(ElementAlignment.RIGHT);
    elementFactory.setFormatString("d-MMM-yyyy");
    elementFactory.setFieldname("report.date");
    pageHeader.addElement(elementFactory.createElement());
  }

  private void configurePageFooter()
  {
    final PageFooter pageFooter = report.getPageFooter();

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

      elementFactory.setX(new Float(0));
      elementFactory.setY(new Float(y2));
      elementFactory.setMinimumWidth(new Float(-100));
      elementFactory.setMinimumHeight(new Float(0));
      elementFactory.setShouldDraw(Boolean.TRUE);
      element = elementFactory.createElement();
      return;
    }


    final boolean relativeSizes = (x1 < 0) || (y1 < 0) || (x2 < 0) || (y2 < 0);

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
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.