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

Examples of org.pentaho.reporting.engine.classic.core.metadata.ElementType.create()


    }

    try
    {
      final ElementType type = metaData.create();
      final Element visualElement = (Element) type.create();
      if (visualElement instanceof SubReport)
      {
        final Element rootBand = findRootBand(band);
        if (rootBand == null ||
            rootBand instanceof PageHeader ||
View Full Code Here


  protected Element createElement(final ElementMetaData elementMetaData,
                                  final String fieldName,
                                  final ReportDocumentContext context) throws InstantiationException
  {
    final ElementType type = elementMetaData.create();
    final Element visualElement = (Element) type.create();

    final ElementStyleSheet styleSheet = visualElement.getStyle();
    styleSheet.setStyleProperty(ElementStyleKeys.MIN_WIDTH, DEFAULT_WIDTH);
    styleSheet.setStyleProperty(ElementStyleKeys.MIN_HEIGHT, DEFAULT_HEIGHT);
View Full Code Here

  }

  protected Element createElement() throws ParseException {
    try {
      final ElementType elementTypeObj = metaData.create();
      return (Element) elementTypeObj.create();
    } catch (InstantiationException e) {
      // This should not happen at this point, as there is no way to instantiate the class if the
      // element is not there. But it could happen if the element is not registered, which indicates
      // a user error (Engine not booted).
      throw new ParseException("Unable to instantiate element for type '" + metaData.getName() + '"');
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.