{
// beg display
if (objEvt instanceof GfrEvtMdlIdDspRndWwdEarthShpDimOneLine)
{
GfrEvtMdlIdDspRndWwdEarthShpDimOneLine evt = (GfrEvtMdlIdDspRndWwdEarthShpDimOneLine) objEvt;
String strId = evt.getId();
if (strId.compareTo(this._strIdParent_) != 0)
return;
Object objWhat = evt.getWhat();
if (objWhat == EnuEvtDspRndWwdEarthShp.TOOLTIP)
{
Boolean boo = (Boolean) evt.getValue();
super.setValue(GfrKeysRnd.STR_HAS_TOOLTIP, boo.booleanValue());
// memo: no need to send event to redraw!
return;
}
if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.COLOR)
{
Color col = (Color) evt.getValue();
BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
bsa.setOutlineMaterial(new Material(col));
this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
return;
}
if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.TRANSPARENCY)
{
Float flo = (Float) evt.getValue();
float fltAlpha = flo.floatValue();
BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
bsa.setOutlineOpacity((double) fltAlpha);
this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
return;
}
if (objWhat == EnuEvtDspRndWwdEarthShpDimOneLine.THICKNESS)
{
Integer itg = (Integer) evt.getValue();
BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
bsa.setOutlineWidth(itg.doubleValue());
this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
return;
}
return;
}
// end display
// beg data
if (objEvt instanceof GfrEvtMdlIdDatRenamedMlo)
{
GfrEvtMdlIdDatRenamedMlo evt = (GfrEvtMdlIdDatRenamedMlo) objEvt;
String strIdChild = evt.getId();
if (strIdChild.compareTo(super._strId) != 0)
return;
String strNameNewChild = evt.getValueNew();
super.setValue(gov.nasa.worldwind.avlist.AVKey.DISPLAY_NAME, strNameNewChild);
// memo: no need to redraw, coz of just handling toolTip
return;
}