Color[] colors = new Color[10]; int opa = opaqueness << 24; colors[0] = ColorFactory.createColor(((CGColor.getRGB() & 0x00FFFFFF) | opa), true); colors[1] = ColorFactory.createColor(((TLMColor.getRGB() & 0x00FFFFFF) | opa), true); colors[2] = ColorFactory.createColor(((JOGColor.getRGB() & 0x00FFFFFF) | opa), true); colors[3] = ColorFactory.createColor(((TPCColor.getRGB() & 0x00FFFFFF) | opa), true); colors[4] = ColorFactory.createColor(((ONCColor.getRGB() & 0x00FFFFFF) | opa), true); colors[5] = ColorFactory.createColor(((JNCColor.getRGB() & 0x00FFFFFF) | opa), true); colors[6] = ColorFactory.createColor(((GNCColor.getRGB() & 0x00FFFFFF) | opa), true); colors[7] = ColorFactory.createColor(((CIB10Color.getRGB() & 0x00FFFFFF) | opa), true); colors[8] = ColorFactory.createColor(((CIB5Color.getRGB() & 0x00FFFFFF) | opa), true); colors[9] =ColorFactory.createColor(((MISCColor.getRGB() & 0x00FFFFFF) | opa), true) ; coverageManager.setColors(colors, opaqueness, fillRects);
    public void prepare(RpfFrameProvider frameProvider,                        Projection projection, String chartSeries) {        float ullat = 90f;        float ullon = -180f;        float lrlat = -90f;        float lrlon = 180f;        if (projection != null) {            ullat = projection.getUpperLeft().getLatitude();            ullon = projection.getUpperLeft().getLongitude();            lrlat = projection.getLowerRight().getLatitude();            lrlon = projection.getLowerRight().getLongitude();        }                Debug.message("basic","RpfCoverage.prepare(): doing it");        // Setting the OMGraphicsList for this layer.  Remember, the        // OMGraphicList is made up of OMGraphics, which are generated        // (projected) when the graphics are added to the list.  So,        // after this call, the list is ready for painting.        // IF the data arrays have not been set up yet, do it!        if (coverageManager == null) {            coverageManager = new RpfCoverageManager(frameProvider);            Color[] colors = new Color[10];            int opa = opaqueness << 24;            colors[0] = ColorFactory.createColor(((CGColor.getRGB() & 0x00FFFFFF) | opa), true);            colors[1] = ColorFactory.createColor(((TLMColor.getRGB() & 0x00FFFFFF) | opa), true);            colors[2] = ColorFactory.createColor(((JOGColor.getRGB() & 0x00FFFFFF) | opa), true);            colors[3] = ColorFactory.createColor(((TPCColor.getRGB() & 0x00FFFFFF) | opa), true);            colors[4] = ColorFactory.createColor(((ONCColor.getRGB() & 0x00FFFFFF) | opa), true);            colors[5] = ColorFactory.createColor(((JNCColor.getRGB() & 0x00FFFFFF) | opa), true);            colors[6] = ColorFactory.createColor(((GNCColor.getRGB() & 0x00FFFFFF) | opa), true);            colors[7] = ColorFactory.createColor(((CIB10Color.getRGB() & 0x00FFFFFF) | opa), true);            colors[8] = ColorFactory.createColor(((CIB5Color.getRGB() & 0x00FFFFFF) | opa), true);            colors[9] =ColorFactory.createColor(((MISCColor.getRGB() & 0x00FFFFFF) | opa), true) ;            coverageManager.setColors(colors, opaqueness, fillRects);        }                setGraphicLists(coverageManager.getCatalogCoverage(ullat, ullon, lrlat, lrlon,                                                           projection, chartSeries));    }