PS. I meant to add that your other option is to sub-class JMapPane and
add the key event handling code which you might be able to base on
that from the old ZoomPane class.

On 1 September 2011 22:39, Michael Bedward <[email protected]> wrote:
> Hi Valerio,
>
>> I'm using the version 2.7.1. I have the gt-swing JAR but I can't import the
>> class.
>> How I use the arrow key to zoom/pan without that class?
>
> OK. I'm afraid that the ZoomPane class was dropped after version 2.6
> because the various authors of that and related classes left the
> project and the swing widgets code was too hard to salvage.
>
> JMapPane doesn't handle key actions at the moment, but it would be a
> good idea to add some basic ones. I've just created a Jira issue for
> this:
>
> http://jira.codehaus.org/browse/GEOT-3830
>
> I can try to look at that tomorrow (Sydney time, GMT+10) but can't
> promise when it will be done.
>
> Please note, the new code will only be added to the GeoTools trunk
> sources (version 8-SNAPSHOT) where we have been working on gt-swing
> actively. Of course, if there was a volunteer, such as you for
> instance, willing to back-port the changes to the 2.7 branch that
> would be great :)
>
> Michael
>
>
> On 1 September 2011 22:06, Valerio Di Gregorio
> <[email protected]> wrote:
>>
>> Ty for the help Michael,
>> Valerio
>>
>> Il 01/09/2011 13:58, Michael Bedward ha scritto:
>>>
>>> On 1 September 2011 21:34, Valerio Di Gregorio
>>> <[email protected]>  wrote:
>>>>
>>>> Hi again,
>>>> I would use arrow keys to zoom/pane. Is org.geotools.gui.swing.ZoomPane
>>>> the right class?
>>>
>>> > From memory, that class was removed from the library two or three
>>> years ago. What version of GeoTools are you using ?
>>>
>>> Michael
>>>
>>
>>
>> --
>>
>> Valerio Di Gregorio
>> Automotive and Telecommunication Division
>> Information Engineer
>>
>> INTECS Informatica e Tecnologia del Software S.p.A.
>> Via Egidio Giannessi, 5
>> 56121 - Ospedaletto, Pisa
>> Italy
>>
>> Voice: +39 050 9657 411 (operator)
>> Voice: +39 050 9657 455 (direct)
>> Fax:   +39 050 9657 400
>> Skype: valeriodigregorio.intecs.it
>> Email: [email protected]
>> Web:   http://www.intecs.it
>>
>>
>>
>> LEGAL DISCLAIMER:
>> The contents of this email and any transmitted files are confidential and
>> intended solely for the use of the individual or entity to whom they are
>> addressed. We hereby exclude any warranty and any liability as to the
>> quality or accuracy of the contents of this email and any attached
>> transmitted files. If you are not the intended recipient, be advised that
>> you have received this email in error and that any use, dissemination,
>> forwarding, printing or copying of this email is strictly prohibited. If you
>> have received this email in error please contact the sender and delete the
>> material from any computer.
>>
>

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to