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) {
if (colors != null && colors.length >= 1) {
rect.setLinePaint(colors[0]);
if (fillRects)
rect.setFillPaint(colors[0]);
}
cgs.add(rect);
} else if (scale == 50000f) {
if (colors != null && colors.length >= 2) {
rect.setLinePaint(colors[1]);
if (fillRects)
rect.setFillPaint(colors[1]);
}
tlms.add(rect);
} else if (scale == 250000f) {
if (colors != null && colors.length >= 3) {
rect.setLinePaint(colors[2]);
if (fillRects)
rect.setFillPaint(colors[2]);
}
jogs.add(rect);
} else if (scale == 500000f) {
if (colors != null && colors.length >= 4) {
rect.setLinePaint(colors[3]);
if (fillRects)
rect.setFillPaint(colors[3]);
}
tpcs.add(rect);
} else if (scale == 1000000f) {
if (colors != null && colors.length >= 5) {
rect.setLinePaint(colors[4]);
if (fillRects)
rect.setFillPaint(colors[4]);
}
oncs.add(rect);
} else if (scale == 2000000f) {
if (colors != null && colors.length >= 6) {
rect.setLinePaint(colors[5]);
if (fillRects)
rect.setFillPaint(colors[5]);
}
jncs.add(rect);
} else if (scale == 5000000f) {
if (colors != null && colors.length >= 7) {
rect.setLinePaint(colors[6]);
if (fillRects)
rect.setFillPaint(colors[6]);
}
gncs.add(rect);
} else if (scale == 66666f) {
if (colors != null && colors.length >= 8) {
rect.setLinePaint(colors[7]);
if (fillRects)
rect.setFillPaint(colors[7]);
}
cib10s.add(rect);
} else if (scale == 33333f) {
if (colors != null && colors.length >= 9) {
rect.setLinePaint(colors[8]);
if (fillRects)
rect.setFillPaint(colors[8]);
}
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 {
if (colors != null && colors.length >= 10) {
rect.setLinePaint(colors[9]);
if (fillRects)
rect.setFillPaint(colors[9]);
}
miscs.add(rect);
}
rect.generate(proj);
}
}
return omGraphics;
}