Re: [OpenMap Users] RpfLayer repaint

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 26 Jan 2005 11:03:54 -0500

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

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT