Package org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper.RichTextFormat


    if (formatBufferStack.isEmpty())
    {
      return;
    }

    RichTextFormat rtf = formatBufferStack.peek();
    final RichTextFormat lastRtf = formatBuffer.get(formatBuffer.size() - 1);
    if (lastRtf.getFont().equals(rtf.getFont()) == false)
    {
      formatBuffer.add(new RichTextFormat(getTextLength(), rtf.getFont()));
    }
  }
View Full Code Here


    }

    final Color textColor = (Color) styleSheet.getStyleProperty(ElementStyleKeys.PAINT);
    final HSSFFontWrapper wrapper = new HSSFFontWrapper
        (styleSheet, colorProducer.getNearestColor(textColor));
    final RichTextFormat rtf = new RichTextFormat(getTextLength(), wrapper);

    // Check the style.
    if (formatBuffer.isEmpty())
    {
      formatBuffer.add(rtf);
    }
    else
    {
      int lastIndex = formatBuffer.size() - 1;
      final RichTextFormat lastRtf = formatBuffer.get(lastIndex);
      if (lastRtf.getPosition() == rtf.getPosition())
      {
        formatBuffer.set(lastIndex, rtf);
      }
      else if (lastRtf.getFont().equals(rtf.getFont()) == false)
      {
        formatBuffer.add(rtf);
      }
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper.RichTextFormat

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.