This ought to work:
layer.getViewAttributes().opaqueness = 255;
layer.doPrepare();
-- Don
On Jan 26, 2005, at 10:09 AM, James Wu wrote:
> Hello,
>
> I am using RpfLayer to display a map. I tried to change "opaque"
> property programmatically, but the layer does not take effect itself
> unless I manually resize the frame of the map. Why layer's repaint()
> function does not refresh map? Someone help me please.
>
> Thanks
> -James
>
>
> // sample code
> Layer layer = ...; //get the RpfLayer
>
> Properties props = layer.getProperties(null);
> props.setProperty("cadrg.opaque", "255");
> layer.setProperties(props);
>
> layer.repaint();
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jan 26 2005 - 11:04:05 EST