Examples of OMColor


Examples of com.bbn.openmap.omGraphics.OMColor

     *        java.awt.Color supports it
     * @return Color or OMColor that has an ARGB value
     */
    public static Color createColor(int value, boolean forceAlpha) {
        if (!OMColor.nativeAlpha) {
            return (forceAlpha) ? new OMColor(value) : new Color(value);
        }
        // alpha is supported by the Java VM.
        try {
            // we prefer the generic Java 2 solution (supports alpha)
            return (Color) OMColor.alphaValueConstructor.newInstance(new Object[] {
                    new Integer(value), new Boolean(true) });
        } catch (Exception e) {
            System.err.println("ColorFactory.parseColor(): internal error...");
            return (forceAlpha) ? new OMColor(value) : new Color(value);
        }
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMColor

            RpfIndexedImageData riid = new RpfIndexedImageData();
            riid.imageData = ri.imagedata;
            riid.colortable = new OMColor[ri.colortable.length];

            for (int i = 0; i < riid.colortable.length; i++) {
                riid.colortable[i] = new OMColor(ri.colortable[i]);
            }
            return riid;

        } catch (org.omg.CORBA.SystemException e) {
            handleCORBAError(e);
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.