Package org.axsl.text

Examples of org.axsl.text.TextException


            factory.makeGlyphAreaSequence(foText, startOffset, sizeInChars,
                    sizeInline,
                    hasDiscretionaryHyphen, hasFauxSmallCaps, isLastItemOnLine,
                    graftingPoint);
        } else {
            throw new TextException("Returned LineText is an unknown type.");
        }
    }
View Full Code Here


        } else if (nonTextToUse instanceof Leader) {
            final Leader leader = (Leader) nonTextToUse;
            try {
                factory.makeLeaderArea(leader, sizeInline, graftingPoint);
            } catch (final AreaTreeException e) {
                throw new TextException(e);
            }
        } else if (nonTextToUse instanceof PageNumberCitation) {
            final PageNumberCitation citation = (PageNumberCitation)
                    nonTextToUse;
            factory.makePageNumberCitationArea(citation, sizeInline,
View Full Code Here

     * {@link LineArea}.
     */
    private void checkLayoutTarget(final LineOutput lineOutput)
            throws TextException {
        if (! (lineOutput instanceof LineArea)) {
            throw new TextException("Line-breaking layout target must be "
                    + "a LineArea.");
        }
    }
View Full Code Here

            this.setInLowerCase(false);
            status = processLineText(lineText, start, end);
        } else if (lineContent instanceof LineNonText) {
            status = processLineNonText((LineNonText) lineContent);
        } else {
            throw new TextException("Invalid LineContent.");
        }
        return status;
    }
View Full Code Here

     * @throws TextException If either the input or output are null.
     */
    private void validateEagerContent(final LineContent contentItem,
            final LineOutput output) throws TextException {
        if (contentItem == null) {
            throw new TextException("Null LineContent.");
        }
        if (output == null) {
            throw new TextException("Null LineOutput.");
        }
    }
View Full Code Here

TOP

Related Classes of org.axsl.text.TextException

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.