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 multiplier specified.
     */
    public float getValueMultiplier(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case NORMAL: {
                return getValueMultiplierNoInstance(context, fobj);
            }
            case INHERIT: {
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();
            }
            case TRUE: {
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public Font.Stretch getValue(final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case ULTRA_CONDENSED: {
                return Font.Stretch.ULTRA_CONDENSED;
            }
            case EXTRA_CONDENSED: {
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 padding should be zero.
             */
            if (condition == FoValue.DISCARD) {
                if (! isOuterEdge(context, fobj)) {
View Full Code Here

    public double getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalNumeric()) {
            return value().evalNumeric();
        }
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                return getValueNoInstance(context, fobj);
            }
            case X_SLOW: {
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

     * @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());
            switch (keyword) {
            case INHERIT: {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    return parent.getPropertyList().getForcePageCount(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

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.