if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.COLOR)
{
Color col = (Color) evt.getValue();
PointPlacemarkAttributes ppa = super.getAttributes();
ppa.setLineMaterial(new Material(col));
this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
return;
}
if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.TRANSPARENCY)
{
Float flo = (Float) evt.getValue();
float fltAlpha = flo.floatValue();
fltAlpha *=100;
fltAlpha *= 2.55;
int intAlpha = Math.round(fltAlpha);
PointPlacemarkAttributes ppa = super.getAttributes();
Color colOld = ppa.getLineMaterial().getDiffuse();
Color colNew = new Color(colOld.getRed(), colOld.getGreen(), colOld.getBlue(), intAlpha);
ppa.setLineMaterial(new Material(colNew));
this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
return;
}
return;