Examples of FoValue


Examples of org.foray.fotree.fo.FoValue

     * Returns the value of this property.
     * @return The value of this property.
     */
    public FoValue getValue() {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            return keyword;
        }
        throw this.unexpectedRetrieval();
    }
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

    public int getValue(final FObj fobj) {
        /* Null context is OK. The objects for these cannot be inside a
         * marker.*/
        final FoContext context = null;
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                final FObj parent = fobj.getParent();
                if (parent == null) {
                    return getValueNoInstance();
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public Graphic 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.traitBackgroundImage(context);
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

     * @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

Examples of org.foray.fotree.fo.FoValue

     * @return The scaling factor implied or stated by this property.
     */
    public float getValue(final FoContext context, final FObj fobj,
            final FObjScaled fobjScaled) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                final FObj parent = fobj.effectiveParent(context);
                if (parent == null) {
                    return getValueNoInstance();
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

     * {@link #getValue(FoContext, FObj, FObjScaled)} to return a useful
     * amount.
     */
    public boolean dependsOnPd(final FObj fobj, final FoContext context) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                final AbstractContentDimension inheritedProperty =
                    (AbstractContentDimension) fobj.ancestorProperty(
                            this.getPropertyType());
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

     * @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

Examples of org.foray.fotree.fo.FoValue

     * @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

Examples of org.foray.fotree.fo.FoValue

     * @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

Examples of org.foray.fotree.fo.FoValue

     * @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
Copyright © 2018 www.massapi.com. 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.