Package org.foray.fotree

Examples of org.foray.fotree.PropertyList


    /**
     * {@inheritDoc}
     */
    protected PropertyList createNewPropertyList(final Attributes attlist) {
        return new PropertyList(attlist.getLength());
    }
View Full Code Here


    /**
     * {@inheritDoc}
     */
    protected PropertyList createNewPropertyList(final Attributes attlist) {
        return new PropertyList(attlist.getLength());
    }
View Full Code Here

            if (foValue == FoValue.INHERIT) {
                final FObj parent = fobj.getParent();
                if (parent == null) {
                    return true;
                }
                final PropertyList parentProperties = parent.getPropertyList();
                return parentProperties.isIpdAuto(parent);
            }
        }
        return false;
    }
View Full Code Here

        if (this.lastTableCell != null
                && this.lastTableCell.traitEndsRow(null)) {
            newRowNeeded = true;
        }
        if (newRowNeeded) {
            final PropertyList propertyList = new PropertyList(0);
            this.currentPseudoTableRow = new TableRow(this, propertyList, true);
            this.children.add(this.currentPseudoTableRow);
        }
        this.lastTableCell = tableCell;
        return this.currentPseudoTableRow;
View Full Code Here

        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            if (keyword == FoValue.INHERIT) {
                final FObj parent = fobj.getParent();
                if (parent != null) {
                    final PropertyList propertyList = parent.getPropertyList();
                    return propertyList.getRawInitialPageNumber(parent);
                }
                return getRawValueNoInstance();
            }
            return keyword;
        }
View Full Code Here

     */
    public org.axsl.common.value.BorderStyle getValue(final FoContext context,
            final Compass direction, final FObj fobj) {
        if (this.isKeywordInherit(this.value)) {
            final FObj effectiveParent = fobj.effectiveParent(context);
            final PropertyList propertyList = effectiveParent.getPropertyList();
            return propertyList.getBorderStyle(effectiveParent, context,
                    direction);
        }
        if (this.canEvalBorderStyle(this.value)) {
            return this.evalBorderStyle(this.value);
        }
View Full Code Here

     * @param propertyType The integral identifier for the desired property.
     * @return The Property instance, or null if it does not exist.
     */
    private static Property getProperty(final FObj fobj,
            final FoProperty propertyType) {
        final PropertyList propertyList = fobj.getPropertyList();
        return propertyList.getProperty(propertyType);
    }
View Full Code Here

        /* The source part. */
        final FlowSourceList sourceList = new FlowSourceList(assignment,
                PropertyList.emptyPropertyList());
        assignment.addChild(sourceList);

        PropertyList propertyList = new PropertyList(1);
        final FlowNameSpecifier flowNameSpecifier = new FlowNameSpecifier(
                sourceList, propertyList);
        sourceList.addChild(flowNameSpecifier);
        Property property = new PdFlowNameReference(flowNameSpecifier,
                    FoProperty.FLOW_NAME_REFERENCE.toXslFo(), impliedName);
        propertyList.addProperty(flowNameSpecifier, property);

        /* The target part. */
        final FlowTargetList targetList = new FlowTargetList(assignment,
                PropertyList.emptyPropertyList());
        assignment.addChild(targetList);

        propertyList = new PropertyList(1);
        final RegionNameSpecifier regionNameSpecifier = new RegionNameSpecifier(
                targetList, propertyList);
        targetList.addChild(regionNameSpecifier);
        property = new PdRegionNameReference(regionNameSpecifier,
                FoProperty.REGION_NAME_REFERENCE.toXslFo(), impliedName);
        propertyList.addProperty(regionNameSpecifier, property);
    }
View Full Code Here

            return getCollectionValue(context, direction, fobj);
        }
        final FoValue keyword = this.convertValueToFoValue(value());
        if (keyword == FoValue.INHERIT) {
            final FObj effectiveParent = fobj.effectiveParent(context);
            final PropertyList propertyList = effectiveParent.getPropertyList();
            return propertyList.getBorderStyle(effectiveParent, context,
                    direction);
        }
        throw this.unexpectedRetrieval();
    }
View Full Code Here

     * @throws PropertyException For errors during parsing.
     */
    @Test
    public void testLength() throws PropertyException {
        final FObj fobj = makeTestFObj();
        final PropertyList propertyList = fobj.getPropertyList();
        final PdLineHeight lh = new PdLineHeight(fobj, "", "3.7cm");
        propertyList.addProperty(fobj, lh);
        final int halfLeadingMax = fobj.traitHalfLeadingMax(STD_FO_CONTEXT);
        /* D = Distance between baselines = 3.7cm = 104,882 millipoints.
         * L = Leading = D - the default font size of 12,000 = 92,882
         * millipoints.
         * HL = L / 2 = 46,441 millipoints. */
 
View Full Code Here

TOP

Related Classes of org.foray.fotree.PropertyList

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.