Package net.sf.jasperreports.engine.fill

Examples of net.sf.jasperreports.engine.fill.JRMeasuredText


        text,
        JRCommonText.MARKUP_STYLED_TEXT.equals(printText.getMarkup()),//FIXMEMARKUP only static styled text appears on preview. no other markup
        JRStyledTextAttributeSelector.getTextLocale(printText)
        );
   
    JRMeasuredText measuredText = textMeasurer.measure(
        styledText,
        0,
        0,
        false
        );
    printText.setTextHeight(measuredText.getTextHeight() < printText.getHeight() ? measuredText.getTextHeight() : printText.getHeight());
    //printText.setLeadingOffset(measuredText.getLeadingOffset());
    //printText.setLineSpacingFactor(measuredText.getLineSpacingFactor());
   
    int textEnd = measuredText.getTextOffset();
    String printedText;
    if (JRCommonText.MARKUP_STYLED_TEXT.equals(printText.getMarkup()))
    {
      printedText = JRStyledTextParser.getInstance().write(styledText, 0, textEnd);
    }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.fill.JRMeasuredText

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.