Package org.axsl.fo.fo

Examples of org.axsl.fo.fo.CharacterSequence


     */
    private void init(final Area parentArea, final int backingOffset,
            final int backingSize, final int progressionDimensionUsed,
            final boolean hasDiscretionaryHyphen,
            final boolean hasFauxSmallCaps) {
        final CharacterSequence generatedBy = this.traitGeneratedBy();
        this.charSequence = new TextAreaCharSequence(generatedBy.getAreaTreeText(this),
                backingOffset, backingSize, hasDiscretionaryHyphen, hasFauxSmallCaps);
        this.resolvedLetterSpacing = this.traitLetterSpacingOpt();
        this.resolvedWordSpacing = this.traitWordSpacingOpt();
        final int computedPD = this.recomputeProgressionDimension();
        setProgressionDimension(computedPD);
View Full Code Here


    /**
     * {@inheritDoc}
     * Overrides the Area method because it needs to handle faux-small-caps.
     */
    public int traitFontSize() {
        final CharacterSequence generatedBy = this.traitGeneratedBy();
        final int nominalFontSize = generatedBy.traitFontSizeActual(this,
                this.getPrimaryFont().getFont());
        if (this.hasFauxSmallCaps()) {
            final FontUse fontUse = getPrimaryFont();
            return fontUse.smallCapsSize(nominalFontSize);
        }
View Full Code Here

     */
    public int traitHyphenationCharacter() {
        /* TODO: Clean this method up after we clean up the construction. */
        final Fo generatedBy = this.traitGeneratedBy();
        if (generatedBy instanceof CharacterSequence) {
            final CharacterSequence character = (CharacterSequence) generatedBy;
            return character.traitHyphenationCharacter(this);
        } else {
            final NormalBlockArea blockArea = this.ancestorNormalBlockArea();
            final Block block = blockArea.traitGeneratedBy();
            return block.traitHyphenationCharacter(blockArea);
        }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public int traitSpaceStartOptimum() {
        final CharacterSequence character = this.generatedByCharacter();
        if (character == null) {
            return 0;
        } else {
            return character.traitSpaceStartOptimum(this);
        }
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public int traitSpaceEndOptimum() {
        final CharacterSequence character = this.generatedByCharacter();
        if (character == null) {
            return 0;
        } else {
            return character.traitSpaceEndOptimum(this);
        }
    }
View Full Code Here

        final StringBuilder builder = new StringBuilder();
        final DescendantIterator iterator = this.getDescendantIterator();
        while (iterator.hasNext()) {
            final FObj fobj = iterator.next();
            if (fobj instanceof CharacterSequence) {
                final CharacterSequence text = (CharacterSequence) fobj;
                builder.append(text.getAreaTreeText(null));
            }
        }
        return builder.toString();
    }
View Full Code Here

        LineContentFactory factory = lineArea;
        if (this.areaStack.size() > 0) {
            factory = this.areaStack.peek();
        }
        if (textToUse instanceof CharacterSequence) {
            final CharacterSequence foText = (CharacterSequence) textToUse;
            factory.makeGlyphAreaSequence(foText, startOffset, sizeInChars,
                    sizeInline,
                    hasDiscretionaryHyphen, hasFauxSmallCaps, isLastItemOnLine,
                    graftingPoint);
        } else {
View Full Code Here

TOP

Related Classes of org.axsl.fo.fo.CharacterSequence

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.