Hei Leandro

Leandro Leal Parente wrote:
> Hi Mentors,
> 
> I finish my first module like we discuss in last week.
> 
> This module implements 4 vectorial procedures and 1 buffer and support 
> only 2 layers for data input. It's very simple, but help me to 
> understand some important concepts.
good I will look on it on the weekend

> Now I want implements the class OnFilePlugin. That class will make same 
> operations of OnLayerPlugin but data input will be external files. I 
> don“t know what class to use for this task. Do you can help me?

we have several options to load files
you could look at OpenJUMPConfiguration.java which loads the new 
FileOpen Framework.
Another hint may be in this Beanshell-Skript (scroll down to "Opening a 
project")
http://openjump.org/wiki/show/Scripting+with+BeanShell

A good start to search for the functionality that is started with a 
plugin/dialog is to look in jump.properties (or: jump_pt_BR.properties) 
file in the /src/language/ folder. They contain all Strings used for 
translation. The key  for every string will give you a hint to the 
plugin/dialog class.

> 
> Other question. I'm so confuse about Features of Layer. I know what is a 
> one Feature, but how many types of Features has ? How I use that many 
> Features in my application ?

currently there exists only one implementation i.e. one Feature type. It 
is BasicFeature. The features for a layer are hold in a 
FeatureCollection. Finally a FeatureCollection is hold of a Layer/Layerable.

The buffer plugin example gives you some hints:
http://openjump.org/wiki/show/Example+Plugin+For+Buffering+Features+in+a+Layer

Mhm.. wait, are you talking about Raster Images that are hold in a 
FeatureCollection? I am unfortunately not familiar with that area. But I 
know that different Types of Layers Exist: WMSLayer and so on (see the 
different Renderers in the RendererFactory).

Stefan


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to