Package com.volantis.mcs.themes

Examples of com.volantis.mcs.themes.StyleColorPercentages


                return VDXMLColorValue.WHITE;
            } else {
                return null;
            }
        } else if (color instanceof StyleColorPercentages) {
            StyleColorPercentages colorPercentages = (StyleColorPercentages) color;
            // Basics of this ripped off from EmulatorStyleColorRenderer
            // Might be worth factoring the percent to byte conversion out.
            int red = convertPercentageToByte(colorPercentages.getRed());
            int green = convertPercentageToByte(colorPercentages.getGreen());
            int blue = convertPercentageToByte(colorPercentages.getBlue());
            int percentRgb =
                    (red & 0x0000ff) << 16 |
                    (green & 0x0000ff) << 8 |
                    (blue & 0x0000ff);
            return getColorForRGB(percentRgb);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.themes.StyleColorPercentages

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.