/**
* OMGraphicHandlerLayer method, get the OMGraphics from the data
* in the file.
*/
public OMGraphicList prepare() {
OMGraphicList g = getList();
if (g == null) {
try {
E00Parser parser = new E00Parser(E00File);
parser.setPaints(ArcColors,
LabColors,
Tx7Color,
SelectTx7Color,
SelectLabColor,
SelectArcColor,
LabTextColor);
parser.setLabMarker(LabMarker);
parser.setFonts(LabFont, Tx7Font);
g = parser.getOMGraphics();
arcs = parser.getArcList();
labs = parser.getLabList();
tx7 = parser.getTx7List();
setListVisibility();
} catch (Exception ex) {
ex.printStackTrace(System.out);
Debug.error("E00Layer|" + getName() + ".prepare(): "
+ ex.getMessage());
}
}
Projection proj = getProjection();
if (proj != null && g != null) {
g.generate(proj);
}
return g;
}