[JPP-Devel] Annontations as a Layer?

2007-05-15 Thread Sunburned Surveyor
I've been thinking a little about the test I will be writing for my pluggable renderer system and plug-in dependency system. This test will be a new plug-in that allows the user to place and manipulate labels on the layer view. The system will be vary simple to start, but could be expanded in the

Re: [JPP-Devel] Annontations as a Layer?

2007-05-15 Thread Martin Davis
This approach makes sense, I think. Something similar is done in the Imagery API - an Image is just a Feature with some special attributes, which the Imagery renderer knows how to interpret (display on the screen). The one trick is that if you intend your label boxes to have a coordinate

Re: [JPP-Devel] Annontations as a Layer?

2007-05-15 Thread Larry Becker
SS, To see an example of a special label class, see the com.vividsolutions.jump.workbench.ui.cursortool.NoteTool class. It is a simplified version of what you are talking about, I think. There is also a custom style called NoteStyle that renders it. No one seems to instantiate this orphaned

Re: [JPP-Devel] Annontations as a Layer?

2007-05-15 Thread Michaƫl Michaud
Hi Landon, A question following from your approach is : do you intend to synchronize labeled geographic feature with their label feature ? If both features and labels are in a distinct layer, it may be tricky to remove a label when the feature is deleted, or to change the label content when a

Re: [JPP-Devel] Annontations as a Layer?

2007-05-15 Thread Sunburned Surveyor
Michael, You bring up an excellent point. You wrote: question following from your approach is : do you intend to synchronize labeled geographic feature with their label feature ? If both features and labels are in a distinct layer, it may be tricky to remove a label when the feature is deleted,