Examples of VDXMLColorValue


Examples of com.volantis.mcs.protocols.vdxml.style.values.VDXMLColorValue

                // Background Color
                StyleValue backgroundValue = propertyValues.getComputedValue(
                                        StylePropertyDetails.BACKGROUND_COLOR);
                if (backgroundValue instanceof StyleColor) {
                    VDXMLColorValue backgroundColor = getColor(
                            (StyleColor)backgroundValue);
                    if (backgroundColor != null) {
                        result = allocate(result);
                        result.setBackgroundColor(
                            new VDXMLBackgroundColorProperty(backgroundColor));
                    }
                }

                // Underline
                if (underline != null) {
                    result = allocate(result);
                    result.setUnderline(
                            new VDXMLUnderlineStyleProperty(underline));
                }

                //
                // Character Display
                //

                // Font Size
                VDXMLFontSizeValue fontSize = getCharacterSize(propertyValues);
                if (fontSize != null) {
                    result = allocate(result);
                    result.setFontSize(
                            new VDXMLFontSizeProperty(fontSize));
                }

                // Background Color
                VDXMLColorValue fontColor = getColor(
                        (StyleColor)propertyValues.getComputedValue(
                                StylePropertyDetails.COLOR));
                if (fontColor != null) {
                    result = allocate(result);
                    result.setFontColor(
View Full Code Here

Examples of com.volantis.mcs.protocols.vdxml.style.values.VDXMLColorValue

     * @param colour the colour to be converted
     * @return the VDXML colour name equivalent to the given colour. Could be
     *         null
     */
    private String convertToColourName(StyleColor colour) {
        final VDXMLColorValue color = styleFactory.getColor(colour);
        String result = null;

        if (color != null) {
            result = color.toString();
        }

        return result;
    }
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.