Package com.volantis.mcs.themes

Examples of com.volantis.mcs.themes.StyleValue.visit()


                // Process any resets before any increments.
                StyleValue reset = values.getComputedValue(
                        StylePropertyDetails.COUNTER_RESET);
                if (reset != null) {
                    reset.visit(counterResetter, null);
                }
                StyleValue increment = values.getComputedValue(
                        StylePropertyDetails.COUNTER_INCREMENT);
                if (increment != null) {
                    increment.visit(counterIncrementer, null);
View Full Code Here


                    reset.visit(counterResetter, null);
                }
                StyleValue increment = values.getComputedValue(
                        StylePropertyDetails.COUNTER_INCREMENT);
                if (increment != null) {
                    increment.visit(counterIncrementer, null);
                }
            }
        }
    }
View Full Code Here

        // Iterate over the elements of the list.
        List list = value.getList();
        for (int i = 0; i < list.size(); i++) {
            StyleValue styleValue = (StyleValue) list.get(i);
            styleValue.visit(this, null);
        }
    }

    // Javadoc inherited.
    public void visit(StylePair value, Object object) {
View Full Code Here

       
        CharacterSizeBuilder builder = new CharacterSizeBuilder();
        StyleValue fontSize = propertyValues.getComputedValue(
                StylePropertyDetails.FONT_SIZE);
        if (fontSize != null) {
            fontSize.visit(FONT_SIZE_COLLECTOR, builder);
        }
        StyleValue fontStretch = propertyValues.getComputedValue(
                StylePropertyDetails.FONT_STRETCH);
        if (fontStretch != null) {
            fontStretch.visit(FONT_STRETCH_COLLECTOR, builder);
View Full Code Here

            fontSize.visit(FONT_SIZE_COLLECTOR, builder);
        }
        StyleValue fontStretch = propertyValues.getComputedValue(
                StylePropertyDetails.FONT_STRETCH);
        if (fontStretch != null) {
            fontStretch.visit(FONT_STRETCH_COLLECTOR, builder);
        }
        return builder.getCharacterSize();
    }

    /**
 
View Full Code Here

    // Javadoc inherited.
    public void visit(StyleList value, Object object) {
        List list = value.getList();
        for (int i = 0; i < list.size(); i++) {
            StyleValue styleValue = (StyleValue) list.get(i);
            styleValue.visit(this, null);
        }
    }

    // Javadoc inherited.
    public void visit(StyleString value, Object object) {
View Full Code Here

        StyleValue styleValue = propertyValues.getComputedValue(
                StylePropertyDetails.BORDER_SPACING);
        count = 0;
        total = 0;
        if (styleValue != null) {
            styleValue.visit(this, null);
        }

        return count > 0 ? (total / count) : 0;
    }
View Full Code Here

    // Javadoc inherited.
    public void visit(StylePair value, Object object) {
        StyleValue first = value.getFirst();
        if (first != null) {
            first.visit(this, null);
        }
        StyleValue second = value.getSecond();
        if (second != null) {
            second.visit(this, null);
        }
View Full Code Here

        if (first != null) {
            first.visit(this, null);
        }
        StyleValue second = value.getSecond();
        if (second != null) {
            second.visit(this, null);
        }
    }
}

/*
 
View Full Code Here

    public void visit(StylePair value, Object object) {
        StyleValue first = value.getFirst();
        StyleValue second = value.getSecond();

        first.visit(this, object);
        second.visit(this, object);
    }
}

/*
===========================================================================
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.