// ----
if (objEvt instanceof GfrEvtMdlIdDatAddedLloVarWmsLyrLeaf)
{
// ATTN: forcing to be a layer, terrain not yet handled
GfrEvtMdlIdDatAddedLloVarWmsLyrLeaf evt = (GfrEvtMdlIdDatAddedLloVarWmsLyrLeaf) objEvt;
String strId = evt.getId();
String strIdParent = evt.getIdParent();
GfrWMSCapabilities caps = GfrCapWms.getInstance().get(strIdParent);
AVList params = new AVListImplChildWms(
evt.getValueLayerNames(),
evt.getValueDisplayName(),
evt.getValueLayerAbstract(),
evt.getValueStyleNames()) {};
Object objLayerLeaf = this.addObjectLloLayer(strId, strIdParent, caps, params);
if (objLayerLeaf == null)
{
GfrSetRlrTopSecOgcWmss._LOGGER_.info("obj == null, strId=" + strId);
return;
}
float flt = GfrWrpBasPrsDspPrjRndWwdEarthImg.getInstance().getTransparency(strId);
Layer lyrLeaf = (Layer) objLayerLeaf;
lyrLeaf.setOpacity((double) flt);
return;
}
// ----
if (objEvt instanceof GfrEvtMdlTogMltSecCbx)
{
GfrEvtMdlTogMltSecCbx evt = (GfrEvtMdlTogMltSecCbx) objEvt;
String strIdViewer = evt.getKeyViewer();
if (strIdViewer.compareTo(super._strIdViewer) != 0)
return;
String strIdObject = evt.getKeyObject();
boolean blnObject = evt.getValueObject();
_update_(strIdObject, blnObject);
return;