Package org.foray.fotree.fo

Examples of org.foray.fotree.fo.FoValue


     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public String getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    return parent.traitRole(context);
View Full Code Here


        if (value.canEvalLength()) {
            return this.convertValueToLength(value, fobj, context);
        }
        if (value.canEvalKeyword()) {
            final FoPropertyKeyword keyword = (FoPropertyKeyword) value;
            final FoValue keywordValue = keyword.getValue();
            switch (keywordValue) {
            case THIN: {
                return DtBorderWidth.BORDER_WIDTH_THIN;
            }
            case THICK: {
                return DtBorderWidth.BORDER_WIDTH_THICK;
            }
            case MEDIUM: {
                return DtBorderWidth.BORDER_WIDTH_MEDIUM;
            }
            default: {
                throw new IllegalStateException("Invalid keyword for "
                        + "border-width data type: " + keywordValue.toXslFo());
            }
            }
        }
        throw this.unexpectedRetrieval();
    }
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public FoValue getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            if (keyword == FoValue.INHERIT) {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    return getInheritedValue(context, parent);
                }
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public String[] getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    return parent.traitSourceDocument(context);
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public boolean getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                return getValueNoInstance(context, fobj);
            }
            case TRUE: {
View Full Code Here

     * criteria allows it to return true.
     * @see "XSL-FO Standard 1.0, Section 6.4.11."
     */
    public boolean matchesPositionCriteria(final boolean isFirstPage,
            final boolean isLastPage) {
        final FoValue pagePosition = traitPagePosition();
        if (pagePosition == FoValue.ANY) {
            return true;
        }
        if (pagePosition == FoValue.FIRST
                && isFirstPage) {
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public FoValue getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            if (keyword == FoValue.INHERIT) {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    return getInheritedValue(context, parent);
                }
View Full Code Here

    public short getValue(final FoContext context, final FObj fobj) {
        if (value() instanceof DtAngle) {
            return roundAngle();
        }
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case AUTO: {
                return Short.MIN_VALUE;
            }
            case INHERIT: {
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public int traitValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                return fobj.effectiveParent(context)
                        .traitHyphenationRemainCharacterCount(context);
            }
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public FoValue getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            if (keyword == FoValue.INHERIT) {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    return getInheritedValue(context, parent);
                }
View Full Code Here

TOP

Related Classes of org.foray.fotree.fo.FoValue

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.