Package org.axsl.area

Examples of org.axsl.area.AreaTreeException


        /* This cannot be fully validated during FO parsing because percentages
         * cannot be resolved entirely there, so we validate it here. */
        if (newLeaderArea.traitLeaderLengthMin()
                > newLeaderArea.traitLeaderLengthOpt()) {
            throw new AreaTreeException("leader-length.minimum may not "
                    + "exceed leader-length.optimum");
        }
        if (newLeaderArea.traitLeaderLengthOpt()
                > newLeaderArea.traitLeaderLengthMax()) {
            throw new AreaTreeException("leader-length.optimum may not "
                    + "exceed leader-length.maximum");
        }
    }
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public void setParent(final AreaNode node) throws AreaTreeException {
        throw new AreaTreeException("The AreaTree has no parent.");
    }
View Full Code Here

     */
    public void setParent(final AreaNode node) throws AreaTreeException {
        if (node instanceof PageCollection) {
            this.parent = (PageCollection) node;
        } else {
            throw new AreaTreeException("Parent of PageRA must be a "
                    + "PageCollection");
        }
    }
View Full Code Here

     */
    public void setParent(final AreaNode node) throws AreaTreeException {
        if (node instanceof AbstractTablePartContainer) {
            this.parent = (AbstractTablePartContainer) node;
        } else {
            throw new AreaTreeException("Parent of TableRowContainer must "
                    + "be an AbstractTableContainer");
        }
    }
View Full Code Here

        final PageSequence pageSeq = getPageSequence();
        SimplePageMaster spm = null;
        try {
            spm = this.pageMasterResolver.getNextPageMaster(isBlank);
        } catch (final FoTreeException e) {
            throw new AreaTreeException(e);
        }
        final PageRA newPage = PageRA.makePageArea(spm, this);
        this.children.add(newPage);
        final int newPageNumber = getCurrentPageNumber();
        newPage.setNumber(newPageNumber);
View Full Code Here

     */
    public void setParent(final AreaNode node) throws AreaTreeException {
        if (node instanceof AreaTree) {
            this.parent = (AreaTree) node;
        } else {
            throw new AreaTreeException("Parent of PageCollection must be "
                    + "an AreaTree instance.");
        }

    }
View Full Code Here

     */
    public void setParent(final AreaNode node) throws AreaTreeException {
        if (node instanceof ListItemArea) {
            this.parent = (ListItemArea) node;
        } else {
            throw new AreaTreeException("Parent of "
                    + this.getClass().getName()
                    + "must be a " + ListItemArea.class.getName());
        }
    }
View Full Code Here

        }
        // If a new page was created
        if (overflowArea instanceof MainRA) {
            return overflowArea;
        }
        throw new AreaTreeException("ColumnRA overflow failed.");
    }
View Full Code Here

     */
    public void setParent(final AreaNode node) throws AreaTreeException {
        if (node instanceof SpanRA) {
            this.parent = (SpanRA) node;
        } else {
            throw new AreaTreeException("Parent of NormalFlowRA must be a "
                    + "SpanRA");
        }
    }
View Full Code Here

                factory = lineArea;
            }
        } else if (areaNode instanceof LineContentFactory) {
            factory = (LineContentFactory) areaNode;
        } else {
            throw new AreaTreeException("AreaNode " + areaNode.getAreaName()
                    + " cannot create an InlineArea.");
        }
        return factory;
    }
View Full Code Here

TOP

Related Classes of org.axsl.area.AreaTreeException

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.