Package org.axsl.fo.fo

Examples of org.axsl.fo.fo.Block


        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


        final Area overflowArea = ancestorArea().getOverflowArea(this);
        // If parent SpanArea can create another column
        if (overflowArea instanceof NormalFlowRA) {
            final NormalFlowRA nf = (NormalFlowRA) overflowArea;
            /* TODO: This cast is suspicious. */
            final Block block = (Block) childRequesting.traitGeneratedBy();
            return nf.makeNormalBlockArea(block,
                    childRequesting.getGraftingPoint());
        }
        // If a new page was created
        if (overflowArea instanceof MainRA) {
View Full Code Here

        if (! (overflow instanceof BlockContentFactory)) {
            throw new AreaTreeException("NormalBlockArea overflow parent "
                    + "expected to be a BlockContentFactory.");
        }
        final BlockContentFactory bcFactory = (BlockContentFactory) overflow;
        final Block block = this.traitGeneratedBy();
        final org.axsl.area.NormalBlockArea nbArea
                = bcFactory.makeNormalBlockArea(block,
                        this.getGraftingPoint());
        return (NormalBlockArea) nbArea;
    }
View Full Code Here

     * Returns the whitespace-treatment trait for this area.
     * @return The whitespace-treatment trait for this area.
     */
    public WhiteSpaceTreatment traitWhiteSpaceTreatment() {
        final NormalBlockArea nearestBlockArea = this.nearestNormalBlockArea();
        final Block block = nearestBlockArea.traitGeneratedBy();
        return block.traitWhiteSpaceTreatment(nearestBlockArea);
    }
View Full Code Here

     * the cardinal values (START, END, CENTER, JUSTIFY).
     * @return One of the following TraitEnumeration constants: START, END,
     * CENTER, JUSTIFY.
     */
    public TextAlign traitTextAlign() {
        final Block generatedBy = traitGeneratedBy();
        TextAlign textAlign = generatedBy.traitTextAlign(this);
        if (this.textAlignLastApplies()) {
            final TextAlignLast textAlignLast = generatedBy.traitTextAlignLast(
                    this);
            if (textAlignLast == TextAlignLast.RELATIVE) {
                if (textAlign == TextAlign.JUSTIFY) {
                    return TextAlign.START;
                }
View Full Code Here

TOP

Related Classes of org.axsl.fo.fo.Block

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.