Package org.foray.fotree.fo

Examples of org.foray.fotree.fo.FoValue


    public FoValue getValue(final FoContext context, final FObj fobj) {
        if (value() instanceof DtString) {
            return FoValue.NOT_A_KEYWORD;
        }
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            if (keyword == FoValue.INHERIT) {
                return getValueNoInstance(context, fobj);
            }
            return keyword;
        }
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

     * @return The value of this property.
     */
    public boolean getValue(final FoContext context, final FObj fobj,
            final char character) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case TRUE: {
                return true;
            }
            case FALSE: {
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 context An object that knows how to resolve FO context issues.
     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    private int getKeywordValue(final FoContext context, final FObj fobj) {
        final FoValue foValue = this.convertValueToFoValue(value());
        final AbsoluteCompass direction = this.getAbsoluteCompass();
        switch (foValue) {
        case INHERIT: {
            final FObj effectiveParent = fobj.effectiveParent(context);
            if (direction == AbsoluteCompass.LEFT) {
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

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public AlignmentBaseline traitValue(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);
                return parent.getPropertyList().traitAlignmentBaseline(parent,
                        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

    public int getValue(final FObj fobj) {
        /* Null context is OK, because the object can't be inside a marker. */
        final FoContext context = null;
        final AbsoluteAxis axis = this.getAbsoluteAxis();
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                final FObj parent = fobj.getParent();
                if (parent == null) {
                    return getValueNoInstance(axis);
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) {
                return getValueNoInstance(context, fobj);
            }
            return keyword;
        }
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.