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

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.TextElementFactory


   */
  protected void startParsing(final PropertyAttributes atts)
      throws SAXException
  {
    super.startParsing(atts);
    final TextElementFactory factory = getTextElementFactory();
    factory.setVerticalTextAlignment(ReportParserUtil.parseVerticalTextElementAlignment
        (atts.getValue(getUri(), "vertical-text-alignment"), getLocator()));
    factory.setBold(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractElementReadHandler.FS_BOLD), getLocator()));
    factory.setEmbedFont(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractElementReadHandler.FS_EMBEDDED), getLocator()));
    factory.setWrapText(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractTextElementReadHandler.EXCEL_WRAP_TEXT), getLocator()));
    factory.setEncoding(atts.getValue(getUri(), AbstractElementReadHandler.FS_ENCODING));
    factory.setFontName(atts.getValue(getUri(), AbstractElementReadHandler.FONT_NAME_ATT));
    factory.setFontSize(ReportParserUtil.parseInteger
        (atts.getValue(getUri(), AbstractElementReadHandler.FONT_SIZE_ATT), getLocator()));
    factory.setItalic(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractElementReadHandler.FS_ITALIC), getLocator()));
    factory.setLineHeight(ReportParserUtil.parseFloat
        (atts.getValue(getUri(), AbstractElementReadHandler.LINEHEIGHT), getLocator()));
    factory.setStrikethrough(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractElementReadHandler.FS_STRIKETHR), getLocator()));
    factory.setUnderline(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractElementReadHandler.FS_UNDERLINE), getLocator()));
    factory.setReservedLiteral(atts.getValue(getUri(), AbstractTextElementReadHandler.RESERVED_LITERAL_ATT));
    factory.setTrimTextContent(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractTextElementReadHandler.TRIM_TEXT_CONTENT_ATT), getLocator()));
    parseSimpleFontStyle(atts.getValue(getUri(), AbstractElementReadHandler.FONT_STYLE_ATT), factory);

    factory.setWhitespaceCollapse(parseWhitespaceCollapse(atts.getValue(getUri(), "whitespace-collapse")));
    factory.setVerticalTextAlignment(parseVerticalTextAlign(atts.getValue(getUri(), "vertical-text-alignment")));
    factory.setWrap(parseTextWrap(atts.getValue(getUri(), "wrap")));
    factory.setFontSmooth(parseFontSmooth(atts.getValue(getUri(), "fontsmooth")));

    final String minLetterSpacing = atts.getValue(getUri(), "minimum-letter-spacing");
    if (minLetterSpacing != null)
    {
      factory.setMinimumLetterSpacing(ReportParserUtil.parseFloat(minLetterSpacing, getLocator()));
    }

    final String maxLetterSpacing = atts.getValue(getUri(), "maximum-letter-spacing");
    if (maxLetterSpacing != null)
    {
      factory.setMaximumLetterSpacing(ReportParserUtil.parseFloat(maxLetterSpacing, getLocator()));
    }

    final String optLetterSpacing = atts.getValue(getUri(), "optimum-letter-spacing");
    if (optLetterSpacing != null)
    {
      factory.setOptimumLetterSpacing(ReportParserUtil.parseFloat(optLetterSpacing, getLocator()));
    }
  }
View Full Code Here


   */
  protected void startParsing(final PropertyAttributes atts)
      throws SAXException
  {
    super.startParsing(atts);
    final TextElementFactory factory = getTextElementFactory();
    factory.setVerticalTextAlignment(ReportParserUtil.parseVerticalTextElementAlignment
        (atts.getValue(getUri(), "vertical-text-alignment"), getLocator()));
    factory.setBold(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractElementReadHandler.FS_BOLD), getLocator()));
    factory.setEmbedFont(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractElementReadHandler.FS_EMBEDDED), getLocator()));
    factory.setWrapText(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractTextElementReadHandler.EXCEL_WRAP_TEXT), getLocator()));
    factory.setEncoding(atts.getValue(getUri(), AbstractElementReadHandler.FS_ENCODING));
    factory.setFontName(atts.getValue(getUri(), AbstractElementReadHandler.FONT_NAME_ATT));
    factory.setFontSize(ReportParserUtil.parseInteger
        (atts.getValue(getUri(), AbstractElementReadHandler.FONT_SIZE_ATT), getLocator()));
    factory.setItalic(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractElementReadHandler.FS_ITALIC), getLocator()));
    factory.setLineHeight(ReportParserUtil.parseFloat
        (atts.getValue(getUri(), AbstractElementReadHandler.LINEHEIGHT), getLocator()));
    factory.setStrikethrough(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractElementReadHandler.FS_STRIKETHR), getLocator()));
    factory.setUnderline(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractElementReadHandler.FS_UNDERLINE), getLocator()));
    factory.setReservedLiteral(atts.getValue(getUri(), AbstractTextElementReadHandler.RESERVED_LITERAL_ATT));
    factory.setTrimTextContent(ParserUtil.parseBoolean
        (atts.getValue(getUri(), AbstractTextElementReadHandler.TRIM_TEXT_CONTENT_ATT), getLocator()));
    parseSimpleFontStyle(atts.getValue(getUri(), AbstractElementReadHandler.FONT_STYLE_ATT), factory);

    factory.setWhitespaceCollapse(parseWhitespaceCollapse(atts.getValue(getUri(), "whitespace-collapse")));
    factory.setVerticalTextAlignment(parseVerticalTextAlign(atts.getValue(getUri(), "vertical-text-alignment")));
    factory.setWrap(parseTextWrap(atts.getValue(getUri(), "wrap")));
    factory.setFontSmooth(parseFontSmooth(atts.getValue(getUri(), "fontsmooth")));

    final String minLetterSpacing = atts.getValue(getUri(), "minimum-letter-spacing");
    if (minLetterSpacing != null)
    {
      factory.setMinimumLetterSpacing(ReportParserUtil.parseFloat(minLetterSpacing, getLocator()));
    }

    final String maxLetterSpacing = atts.getValue(getUri(), "maximum-letter-spacing");
    if (maxLetterSpacing != null)
    {
      factory.setMaximumLetterSpacing(ReportParserUtil.parseFloat(maxLetterSpacing, getLocator()));
    }

    final String optLetterSpacing = atts.getValue(getUri(), "optimum-letter-spacing");
    if (optLetterSpacing != null)
    {
      factory.setOptimumLetterSpacing(ReportParserUtil.parseFloat(optLetterSpacing, getLocator()));
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.elementfactory.TextElementFactory

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.