Package com.volantis.styling.properties

Examples of com.volantis.styling.properties.StyleProperty


     * analyser
     */
    public boolean hasVisuallyImportantProperty(final Collection properties,
                                                final Element element) {
        for (Iterator iter = properties.iterator(); iter.hasNext(); ) {
            final StyleProperty property = (StyleProperty) iter.next();
            final Analyser analyser = (Analyser) ANALYSERS.get(property);
            if (analyser == null) {
                throw new IllegalArgumentException(EXCEPTION_LOCALIZER.format(
                    "unknown-style-property", property.getName()));
            }
            if (analyser.hasVisualEffect(element)) {
                return true;
            }
        }
View Full Code Here


    private void addHandlers(StyleProperty[] properties,
                            ValueHandler valueHandler,
                           PropertyUpdater propertyUpdater) {
        for (int i = 0; i < properties.length; i++) {
            StyleProperty property = properties[i];
            addHandler(property,  valueHandler, propertyUpdater);
        }
    }
View Full Code Here

        String backgroundComponentName = format.getBackgroundComponent();
        if (backgroundComponentName == null) {
            return;
        }

        StyleProperty property;
        if (backgroundComponentType.equals(
                FormatConstants.BACKGROUND_COMPONENT_TYPE_DYNAMIC_VISUAL)) {
            property = StylePropertyDetails.MCS_BACKGROUND_DYNAMIC_VISUAL;
        } else {
            property = StylePropertyDetails.BACKGROUND_IMAGE;
View Full Code Here

    protected void setEdgeValues(
            MutableStyleProperties styleProperties,
            StyleProperty[] properties,
            StyleValue value) {
        for (int i = 0; i < properties.length; i++) {
            StyleProperty property = properties[i];

            styleProperties.setStyleValue(property, value);
        }
    }
View Full Code Here

            PropertyValues propertyValues,
            StyleProperty[] properties,
            ValueChecker checker) {

        for (int i = 0; i < properties.length; i++) {
            StyleProperty property = properties[i];
            StyleValue value = propertyValues.getComputedValue(property);
            if (checker.isSignificant(value)) {
                return true;
            }
        }
View Full Code Here

            Styles styles = element.getStyles();
            if (styles != null) {
                MutablePropertyValues propertyValues = styles.getPropertyValues();
                for (int i = 0; i < PropertyGroups.PADDING_PROPERTIES.length; i++) {
                    StyleProperty property = PropertyGroups.PADDING_PROPERTIES[i];
                    StyleValue value = propertyValues.getComputedValue(property);
                    propertyUpdater.update(property, propertyValues);
                    int length = getPixelLength(value);
                    if (length >= 0) {
                        total += length;
View Full Code Here

TOP

Related Classes of com.volantis.styling.properties.StyleProperty

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.