Package org.apache.fop.fo

Examples of org.apache.fop.fo.FObj


        case CONTAINING_BOX:
            // depends on property?? inline-progression vs block-progression
            return parentFO.getContentWidth();
        case CONTAINING_REFAREA:    // example: start-indent, end-indent
         {
            FObj fo;
            for (fo = parentFO; fo != null &&!fo.generatesReferenceAreas();
                    fo = fo.getParent());
            return (fo != null ? fo.getContentWidth() : 0);
        }
        case CUSTOM_BASE:
            MessageHandler.errorln("!!! LengthBase.getBaseLength() called on CUSTOM_BASE type !!!");
            return 0;
        default:
View Full Code Here


     * Set default precedence according to the parent FObj
     *
     * @see PropertyMaker#compute(PropertyList)
     */
    public Property make(PropertyList propertyList) throws PropertyException {
        FObj fo = propertyList.getFObj();
        switch (fo.getNameId()) {
        case Constants.FO_TABLE:
            return num6;
        case Constants.FO_TABLE_CELL:
            return num5;
        case Constants.FO_TABLE_COLUMN:
View Full Code Here

    public Property get(int subpropId, PropertyList propertyList,
                        boolean tryInherit, boolean tryDefault)
            throws PropertyException {
       
        Property p = super.get(0, propertyList, tryInherit, tryDefault);   
        FObj fo = propertyList.getFObj();
        String fallbackValue = (propId == Constants.PR_PAGE_HEIGHT)
            ? fo.getFOEventHandler().getUserAgent().getPageHeight()
                    : fo.getFOEventHandler().getUserAgent().getPageWidth();
       
        if (p.getEnum() == Constants.EN_INDEFINITE) {
            int otherId = (propId == Constants.PR_PAGE_HEIGHT)
                ? Constants.PR_PAGE_WIDTH : Constants.PR_PAGE_HEIGHT;
            int writingMode = propertyList.get(Constants.PR_WRITING_MODE).getEnum();
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public Property make(PropertyList propertyList)
            throws PropertyException {
        FObj fo = propertyList.getFObj();

        if (fo.getNameId() == Constants.FO_TABLE_CELL
                || fo.getNameId() == Constants.FO_TABLE_COLUMN) {
            if (fo.getNameId() == Constants.FO_TABLE_CELL
                    && fo.getParent().getNameId() != Constants.FO_TABLE_ROW
                    && (propertyList.get(Constants.PR_STARTS_ROW).getEnum()
                            == Constants.EN_TRUE)) {
                TableBody parent = (TableBody) fo.getParent();
                if (!parent.previousCellEndedRow()) {
                    parent.resetColumnIndex();
                }
            }
        }
        return NumberProperty.getInstance(
                ((TableFObj) fo.getParent()).getCurrentColumnIndex());
    }
View Full Code Here

    /**
     * @see org.apache.fop.fo.FONode#clone(FONode, boolean)
     */
    public FONode clone(FONode parent, boolean removeChildren)
        throws FOPException {
        FObj fobj = (FObj) super.clone(parent, removeChildren);
        if (removeChildren) {
            Table t = (Table) fobj;
            t.columns = null;
            t.tableHeader = null;
            t.tableFooter = null;
View Full Code Here

    public Property eval(Property[] args,
                         PropertyInfo pInfo) throws PropertyException {
        Numeric distance =
            pInfo.getPropertyList().get("provisional-distance-between-starts").getNumeric();

        FObj item = pInfo.getFO();
        while (item != null &&!(item instanceof ListItem)) {
            item = item.getParent();
        }
        if (item == null) {
            throw new PropertyException("body-start() called from outside an fo:list-item");
        }
View Full Code Here

        Length distance =
            pInfo.getPropertyList().get("provisional-distance-between-starts").getLength();
        Length separation =
            pInfo.getPropertyList().getNearestSpecified("provisional-label-separation").getLength();

        FObj item = pInfo.getFO();
        while (item != null &&!(item instanceof ListItem)) {
            item = item.getParent();
        }
        if (item == null) {
            throw new PropertyException("label-end() called from outside an fo:list-item");
        }
        Length startIndent = item.properties.get("start-indent").getLength();
View Full Code Here

        case CONTAINING_BOX:
            // depends on property?? inline-progression vs block-progression
            return parentFO.getContentWidth();
        case CONTAINING_REFAREA:    // example: start-indent, end-indent
         {
            FObj fo;
            for (fo = parentFO; fo != null &&!fo.generatesReferenceAreas();
                    fo = fo.getParent());
            return (fo != null ? fo.getContentWidth() : 0);
        }
        case CUSTOM_BASE:
            MessageHandler.errorln("!!! LengthBase.getBaseLength() called on CUSTOM_BASE type !!!");
            return 0;
        default:
View Full Code Here

    public Property eval(Property[] args,
                         PropertyInfo pInfo) throws PropertyException {
        Numeric distance =
            pInfo.getPropertyList().get("provisional-distance-between-starts").getNumeric();

        FObj item = pInfo.getFO();
        while (item != null &&!(item instanceof ListItem)) {
            item = item.getParent();
        }
        if (item == null) {
            throw new PropertyException("body-start() called from outside an fo:list-item");
        }
View Full Code Here

        Length distance =
            pInfo.getPropertyList().get("provisional-distance-between-starts").getLength();
        Length separation =
            pInfo.getPropertyList().getNearestSpecified("provisional-label-separation").getLength();

        FObj item = pInfo.getFO();
        while (item != null &&!(item instanceof ListItem)) {
            item = item.getParent();
        }
        if (item == null) {
            throw new PropertyException("label-end() called from outside an fo:list-item");
        }
        Length startIndent = item.properties.get("start-indent").getLength();
View Full Code Here

TOP

Related Classes of org.apache.fop.fo.FObj

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.