-----Original Message-----
From: jump-pilot-devel-requ...@lists.sourceforge.net 
[mailto:jump-pilot-devel-requ...@lists.sourceforge.net] 
Sent: Wednesday, September 29, 2010 8:22 PM
To: jump-pilot-devel@lists.sourceforge.net
Subject: Jump-pilot-devel Digest, Vol 52, Issue 53

Send Jump-pilot-devel mailing list submissions to
        jump-pilot-devel@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
or, via email, send a message with subject or body 'help' to
        jump-pilot-devel-requ...@lists.sourceforge.net

You can reach the person managing the list at
        jump-pilot-devel-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Jump-pilot-devel digest..."


Yes, same as open jump. Can you please tell me required APIs or classes
------------------------------

Message: 4
Date: Wed, 29 Sep 2010 07:51:56 -0700
From: Sunburned Surveyor <sunburned.surve...@gmail.com>
Subject: Re: [JPP-Devel] how to manage layer control
To: OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net>
Message-ID:
        <aanlktinx0vpqewcbqyvrs5+=kyhrdwnz32_u9ewwa...@mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

You want to add your shapefile to a pair of LayerViewPanels?

SS

On Mon, Sep 27, 2010 at 9:39 PM, Sankar Mondal <sankar_mon...@hcl.com>wrote:

>  Thanks for your reply.
>
> Yeah I am required to write a custom application. below I am sharing small
> piece of code regarding shape file loading as mentioned below:
>
>
>
> *public static final String[] SHAPEFILES = new String[] { "","","" };*
>
> *main(){*
>
> *//getting LayerViewPanel for custom view*
>
> *                final LayerViewPanel view = new LayerViewPanel(new
> LayerManager(),*
>
> *                                                                new
> LayerViewPanelContext() {*
>
> *
> ...*
>
> *
> ...*
>
> *
> }*
>
> *                                                                **});*
>
> *// Read shape files*
>
> *                ShapefileReader reader = new ShapefileReader();*
>
> *//get the feature*
>
> *List<FeatureCollection> featureList = new
> LinkedList<FeatureCollection>();*
>
> *                for (int i = 0; i < SHAPEFILES.length; i++) {*
>
> *                                FeatureCollection features =
> reader.read(new DriverProperties(*
>
> *
> SHAPEFILES[i]));*
>
> *                                //add features into features list*
>
> *                                featureList.add(features);*
>
> * *
>
> *}*
>
> *                //add layers*
>
> *                for (FeatureCollection features : featureList) {*
>
> *                                layer =
> view.getLayerManager().addLayer("Category Name",*
>
> *
> ?Layer Name?, features);*
>
> *                                                *
>
> *                }*
>
> * *
>
> *// Initialize window**            *
>
> *                JFrame frame = new JFrame("Jump Test");*
>
> *                frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);*
>
> *                frame.setSize(new Dimension(600, 600));*
>
> *                *
>
> *                frame.add(view,
> BorderLayout.CENTER);                         *
>
> *                *
>
> *                frame.pack();*
>
> *                 frame.setVisible(true);*
>
> *                *
>
> *                view.getViewport().zoomToFullExtent();*
>
> *}*
>
>
>
> so here I can load shp file into my custom view.
>
>
>
> Now I required to add those layers into another  panel  like as tree &
> after changing in layer tree (e.g. check/uncheck) same should reflect into
> my custom view. Please give me some hints.
>
>
>
> Thanks
>
> Sankar
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and 
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. 
> Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect the 
> opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, 
> distribution and / or publication of
> this message without the prior written consent of the author of this e-mail 
> is strictly prohibited. If you have
> received this email in error please delete it and notify the sender 
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev

------------------------------

_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


End of Jump-pilot-devel Digest, Vol 52, Issue 53
************************************************


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to