if (srl != null) {
ImageIcon ii = srl.getIcon("SFPPV-----*****",
new Dimension(100, 100));
if (ii != null) {
OMScalingIcon omsi = new OMScalingIcon(20f, -50f, ii);
omsi.setBaseScale(1000000);
omsi.setMinScale(1000000);
omsi.setMaxScale(5000000);
omsi.putAttribute(OMGraphicConstants.LABEL,
new OMTextLabeler("SFPPV-----*****", OMText.JUSTIFY_LEFT, OMTextLabeler.ANCHOR_RIGHT));
omList.add(omsi);
SymbolPart sp = srl.getSymbolPartForCode("SFPPV-----*****");
if (sp != null) {
omsi.putAttribute(OMGraphic.TOOLTIP, sp.getDescription());
}
} else {
Debug.output("DemoLayer: couldn't create symbol from SymbolReferenceLibrary");
}
}