Package org.foray.fotree.fo

Examples of org.foray.fotree.fo.FoValue


        }
        if (value().canEvalLength()) {
            return this.convertValueToLength(value(), fobj, context);
        }
        if (value().canEvalKeyword()) {
            final FoValue keyword = ((FoPropertyKeyword) value()).getValue();
            switch (keyword) {
            case INHERIT: {
                return getValueNoInstance(context, subProperty, fobj);
            }
            case NORMAL: {
View Full Code Here


    public String traitValue(final FoContext context, final FObj fobj) {
        if (value() instanceof DtURI) {
            return ((DtURI) value()).getValue();
        }
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                return fobj.effectiveParent(context).traitSrc(context);
            }
            default: {
View Full Code Here

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

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

            /*
             * TODO: I'm not sure we have enough information here yet. We may
             * need to know the writing mode of the reference-area. If so,
             * add it to the parameters of the method.
             */
            final FoValue condition = lengthConditional.getConditionality();
            /* If the condition is discard and this is *not* the outer edge,
             * then the border should have a width of zero.
             */
            if (condition == FoValue.DISCARD) {
                if (! isOuterEdge(context, fobj)) {
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 FoValue getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = ((FoPropertyKeyword) value()).getValue();
            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 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 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

     * @return The value of this property.
     */
    public int getValue(final FoContext context, final LengthRange rangeID,
            final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case NORMAL: {
                return getValueNoInstance(context, fobj);
            }
            case INHERIT: {
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.