[udig-devel] Disable redraw of layer when changing properties

Jesse Eichar jeichar at refractions.net
Thu Feb 7 07:31:09 PST 2008


You can do this.  It is a bit hacky but it a common request so I may  
make it part of the API:

ILayer layer;
((Layer)layer).eSetNotify(false);

try{

	// set properties
} finally{
	(Layer)layer).eSetNotify(true);
}


But remember if the style of the layer is dependent on the  
attributes(properties) then you will have to trigger a refresh when  
the editing is done.

Jesse

Le 7-Feb-08 à 7:19 AM, Johan C. de Koning a écrit :

> Hello,
>
> When in change a property of a feature, the layer is redrawn. This  
> is the problem inside the default feature editor. Because i wanted  
> to create my own property view, and i want to get rid of the focus  
> issue (a property is only updated inside the property view editor  
> when you first leave the field. If you change a name and do commit,  
> the name will not be used), i created a view with keylisteners on  
> the different properties. The properties are now updated each time a  
> key is pressed. This works well only the layer is redrawn every time  
> i change a property. Is it possible to disable the redrawn of this  
> layer when setting the properties? When a lot of redrawn are  
> performed the features get less transparent each time.
>
> Bye
>
> Johan de Koning
>
> -- 
> --------------------------------------
> Geodan Mobile Solutions b.v.
> President Kennedylaan 1
> 1079 MB Amsterdam (NL)
> -------------------------------------
> Tel: +31 (0)20 - 5711 311
> Fax: +31 (0)20 - 5711 333
> -------------------------------------
> E-mail: johan.de.koning at geodan.nl
> Website: www.geodan.nl
> Disclaimer: www.geodan.nl/disclaimer
> -------------------------------------
>
>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel



More information about the udig-devel mailing list