Re: [JPP-Devel] how to retrieve/identify selected layer?

2011-10-28 Thread Elton Chan
operties and follow it to the plugin (each > menu entry is usually a plugin) and look how it gathers the > selected layer. > > good luck.. ede > > On 27.10.2011 15:55, Elton Chan wrote: > > Hi All, > > > > Suppose there are two datasets in the layer view (i.e.

[JPP-Devel] how to retrieve/identify selected layer?

2011-10-27 Thread Elton Chan
Hi All, Suppose there are two datasets in the layer view (i.e. two layers),then how can I retrieve the selected layer? I've checked functions of LayerManager, but it seems it can return list of layers only. thanks, elton

[JPP-Devel] Any graph api recommended

2010-08-30 Thread Elton Chan
Hi there, I am looking for an os graph api that works within OJ. More specifically, I need to convert some polygon features to a graph for computation such as forming spanning tree. I've a quick look at JTS and GraphX. Anyone could give me some light which is better or easier to implement grap

Re: [JPP-Devel] how to refresh a layer in run time

2010-07-17 Thread Elton Chan
be you have to apply the style? or the trick is > done by firing the layer-changed event? haven't tested. > > stefan > > Elton Chan wrote: > > Hi Stefan, > > > > Could you send me your code for my testing as I would > like to see how do you update the lay

Re: [JPP-Devel] how to refresh a layer in run time

2010-07-12 Thread Elton Chan
ine.  I > would give an example,  > > but I'm away from my development system. > > > >   It sounds like Stefan also has a need > for animation.  Perhaps he will > > show you his solution. > > > > Larry > > > > On Fri, Jul 9, 2010 at 10:4

Re: [JPP-Devel] how to refresh a layer in run time

2010-07-09 Thread Elton Chan
ul 2, 2010 at 12:06 PM, Elton Chan wrote: Hi Larry, I've tried the LayerView Panel().repaint() with InvokeAndWait(). However, the layerpanel still cannot refesh and the for loop continues until all finishing all the Recordset. The following code is added after attri

Re: [JPP-Devel] how to refresh a layer in run time

2010-07-02 Thread Elton Chan
roblems updating because your loop is blocking the GUI thread.  You might try a LayerViewPanel.repaint() using invokeAndWait(). Larry On Thu, Jul 1, 2010 at 6:42 AM, Elton Chan wrote: Hi there, I would like to refresh a layer after changing attribute of each feature in the layer b

[JPP-Devel] how to refresh a layer in run time

2010-07-01 Thread Elton Chan
Hi there, I would like to refresh a layer after changing attribute of each feature in the layer based on an event table. The event table records attribute assigned to each feature at specified stage. Following is the schema of the event table: Event( StageID int, // StageID defines sequence of

Re: [JPP-Devel] Update and refresh layer in run time

2010-06-30 Thread Elton Chan
Hi Larry, Thank for your reply. I've tested that view panel can update automatically when attribute is updated. However, if I continue to update an attribute in a "for" loop, it seems it cannot refresh. I wonder if the auto update would be activated immediately after the setAttribute function,

[JPP-Devel] Plug-in showing change over time

2010-06-29 Thread Elton Chan
Hi there, Are there any plug-in or snippets avaliable to show change of attribute over time or time-series of a feature for OpenJump? Thanks, Elton -- This SF.net email is sponsored by Sprint What will you do f

[JPP-Devel] Update and refresh layer in run time

2010-06-29 Thread Elton Chan
Hi there, Suppose if I have a layer added in the LayerTreePanel, and I also got the FeatureCollection of the layer, how can I update the layer using program and refresh it on the view panel. Thanks, Elton -- T

[JPP-Devel] postgis, AdhocQuery and ConnectionDescriptor

2010-02-02 Thread Elton Chan
Hi there, I have two postgis layers from the same database added in openjump and would like to perform further query with code using SQL and AdhocQuery. How can I retrieve the database connection of the postgis layer (added manually)? It seems that I need to re-construct a parameter list for the