} else if (scale == 50000f){ rect.setLinePaint(TLMColor); if (fillRects) rect.setFillPaint(TLMColor);
} else if (scale == 50000f) { if (colors != null && colors.length >= 2) { rect.setLinePaint(colors[1]); if (fillRects) rect.setFillPaint(colors[1]); }
    protected Vector getCatalogCoverage(float ullat, float ullon,                                         float lrlat, float lrlon,                                        Projection proj, String chartSeries){        Debug.message("rpfcov",                       "RpfCoverageManager: Getting catalog coverage from RpfFrameProvider");        if (proj == null || frameProvider == null) {            return new Vector();        }        CADRG cadrg;        if (proj instanceof CADRG){            cadrg = (CADRG)proj;        } else {            cadrg = new CADRG(proj.getCenter(), proj.getScale(),                               proj.getWidth(), proj.getHeight());        }        Vector[] hemisphereData;        if (ullon > 0 && lrlon < 0 || (Math.abs(ullon - lrlon) < .001)){            hemisphereData = new Vector[2];            hemisphereData[0] = frameProvider.getCatalogCoverage(ullat, ullon,                                                                  lrlat, 180f, cadrg,                                                                  chartSeries);            hemisphereData[1] = frameProvider.getCatalogCoverage(ullat, -180f,                                                                  lrlat, lrlon, cadrg,                                                                  chartSeries);        } else {            hemisphereData = new Vector[1];            hemisphereData[0] = frameProvider.getCatalogCoverage(ullat, ullon,                                                                  lrlat, lrlon, cadrg,                                                                  chartSeries);        }        omGraphics.removeAllElements();                        currentLineType = OMGraphic.LINETYPE_RHUMB;//      if (proj instanceof Cylindrical) {//          currentLineType = OMGraphic.LINETYPE_STRAIGHT;//      }                OMGraphicList cgs = new OMGraphicList();        OMGraphicList tlms = new OMGraphicList();        OMGraphicList jogs = new OMGraphicList();        OMGraphicList tpcs = new OMGraphicList();        OMGraphicList oncs = new OMGraphicList();        OMGraphicList jncs = new OMGraphicList();        OMGraphicList gncs = new OMGraphicList();        OMGraphicList cib10s = new OMGraphicList();        OMGraphicList cib5s = new OMGraphicList();        OMGraphicList miscs = new OMGraphicList();        omGraphics.addElement(cgs);        omGraphics.addElement(cib5s);        omGraphics.addElement(tlms);        omGraphics.addElement(cib10s);        omGraphics.addElement(jogs);        omGraphics.addElement(miscs);        omGraphics.addElement(tpcs);        omGraphics.addElement(oncs);        omGraphics.addElement(jncs);        omGraphics.addElement(gncs);        OMRect rect;        for (int j = 0; j < hemisphereData.length; j++){            if (hemisphereData[j] == null){                Debug.message("rpfcov", "RpfCoverageManager. vector " + j + " is null");                continue;            }            int size = hemisphereData[j].size();            for (int i = 0; i < size; i++){                RpfCoverageBox box = (RpfCoverageBox) hemisphereData[j].elementAt(i);                rect = new OMRect((float) box.nw_lat, (float) box.nw_lon,                                   (float) box.se_lat, (float) box.se_lon,                                   currentLineType);                            float scale = RpfProductInfo.get(box.chartCode).scale;                if (scale < 15000f){                    rect.setLinePaint(CGColor);                    if (fillRects) rect.setFillPaint(CGColor);                    cgs.add(rect);                } else if (scale == 50000f){                    rect.setLinePaint(TLMColor);                    if (fillRects) rect.setFillPaint(TLMColor);                    tlms.add(rect);                } else if (scale == 250000f){                    rect.setLinePaint(JOGColor);                    if (fillRects) rect.setFillPaint(JOGColor);                    jogs.add(rect);                } else if (scale == 500000f){                    rect.setLinePaint(TPCColor);                    if (fillRects) rect.setFillPaint(TPCColor);                    tpcs.add(rect);                } else if (scale == 1000000f){                    rect.setLinePaint(ONCColor);                    if (fillRects) rect.setFillPaint(ONCColor);                    oncs.add(rect);                } else if (scale == 2000000f){                    rect.setLinePaint(JNCColor);                    if (fillRects) rect.setFillPaint(JNCColor);                    jncs.add(rect);                } else if (scale == 5000000f){                    rect.setLinePaint(GNCColor);                    if (fillRects) rect.setFillPaint(GNCColor);                    gncs.add(rect);                } else if (scale == 66666f){                    rect.setLinePaint(CIB10Color);                    if (fillRects) rect.setFillPaint(CIB10Color);                    cib10s.add(rect);                } else if (scale == 33333f){                    rect.setLinePaint(CIB5Color);                    if (fillRects) rect.setFillPaint(CIB5Color);                    cib5s.add(rect);                } else if (scale == RpfConstants.Various){                    // Don't show it, because we don't know how to                    // display it anyway.  Don't bother projecting it.                    continue;                } else {                    rect.setLinePaint(MISCColor);                    if (fillRects) rect.setFillPaint(MISCColor);                    miscs.add(rect);                }                rect.generate(proj);            }        }        return omGraphics;    }