Package org.axsl.text.line

Examples of org.axsl.text.line.EagerLineBreaker


        FoContext foContext = lineArea;
        if (graftingPoint != null) {
            foContext = new OverrideGraftingContext(lineArea,
                    graftingPoint);
        }
        EagerLineBreaker lb = this.layout.getLineBreaker();
        if (lb == null) {
            final AreaTree areaTree = lineArea.getAreaTree();
            final TextServer textServer = areaTree.getTextServer();
            final FontConsumer fontConsumer = areaTree.getFontConsumer();
            lb = textServer.provideEagerLineBreaker(null, this.layout,
                    fontConsumer);
        }
        int status = 0;
        final FoLineText contextAware = lineText.getContextWrapper(
                foContext);
        try {
            status = lb.processLineContent(contextAware, start, end, lineArea);
        } catch (final TextException e) {
            final Fo generatedBy = lineArea.traitGeneratedBy();
            throw new AreaTreeException("Error in text layout:\n"
                    + generatedBy.getContextMessage(), e);
        }
View Full Code Here


     * @throws AreaTreeException For errors during layout.
     */
    protected int addNonTextItemToLine(final LineArea lineArea,
            final FoLineNonText nonText, final FoContext foContext)
            throws AreaTreeException {
        EagerLineBreaker lb = this.layout.getLineBreaker();
        if (lb == null) {
            final AreaTree areaTree = lineArea.getAreaTree();
            final TextServer textServer = areaTree.getTextServer();
            final FontConsumer fontConsumer = areaTree.getFontConsumer();
            lb = textServer.provideEagerLineBreaker(null,
                    this.layout, fontConsumer);
        }
        int status = 0;
        final FoLineNonText contextAware = nonText.getContextWrapper(
                foContext);
        try {
            status = lb.processLineContent(contextAware, -1, -1, lineArea);
        } catch (final TextException e) {
            final Fo generatedBy = lineArea.traitGeneratedBy();
            throw new AreaTreeException("Error in non-text layout:\n"
                    + generatedBy.getContextMessage());
        }
View Full Code Here

TOP

Related Classes of org.axsl.text.line.EagerLineBreaker

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.