Examples of StyleDefinitionWriter


Examples of org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.StyleDefinitionWriter

    try
    {
      // Save the report to the specified file
      logger.debug("Saving report in filename [" + target.getAbsolutePath() + "]");// NON-NLS
      final StyleDefinitionWriter writer = new StyleDefinitionWriter();
      writer.write(target, activeContext.getStyleDefinition());
      return true;
    }
    catch (Exception e1)
    {
      UncaughtExceptionsModel.getInstance().addException
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.StyleDefinitionWriter

    rule.setStyleProperty(TextStyleKeys.ITALIC, Boolean.TRUE);

    final ByteArrayOutputStream bout = new ByteArrayOutputStream();

    final StyleDefinitionWriter writer = new StyleDefinitionWriter();
    writer.write(bout, style);

    Resource parsed = mgr.createDirectly(bout.toByteArray(), ElementStyleDefinition.class);
    final ElementStyleDefinition parsedStyle = (ElementStyleDefinition) parsed.getResource();

    assertEquals(1, parsedStyle.getRuleCount());
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.