Package org.pentaho.reporting.engine.classic.extensions.parsers.reportdesigner.converter

Examples of org.pentaho.reporting.engine.classic.extensions.parsers.reportdesigner.converter.FontConverter


    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.NULL_VALUE, nullString);

    final String fontString = result.getProperty("font");
    if (fontString != null)
    {
      final Font font = (Font) new FontConverter().convertFromString(fontString, getLocator());
      element.getStyle().setStyleProperty(TextStyleKeys.BOLD, (font.isBold()) ? Boolean.TRUE : Boolean.FALSE);
      element.getStyle().setStyleProperty(TextStyleKeys.ITALIC, (font.isItalic()) ? Boolean.TRUE : Boolean.FALSE);
      element.getStyle().setStyleProperty(TextStyleKeys.FONT, font.getName());
      element.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, IntegerCache.getInteger(font.getSize()));
    }
View Full Code Here


    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.NULL_VALUE, nullString);

    final String fontString = result.getProperty("font");
    if (fontString != null)
    {
      final Font font = (Font) new FontConverter().convertFromString(fontString, getLocator());
      element.getStyle().setStyleProperty(TextStyleKeys.BOLD, (font.isBold()) ? Boolean.TRUE : Boolean.FALSE);
      element.getStyle().setStyleProperty(TextStyleKeys.ITALIC, (font.isItalic()) ? Boolean.TRUE : Boolean.FALSE);
      element.getStyle().setStyleProperty(TextStyleKeys.FONT, font.getName());
      element.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, IntegerCache.getInteger(font.getSize()));
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.extensions.parsers.reportdesigner.converter.FontConverter

Copyright © 2018 www.massapicom. 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.