RE: [OpenMap Users] Using DrawingTool whithout the MapHandler

From: Dirk Aagaard <dirk_aagaard_at_web.de>
Date: Tue, 21 Jun 2005 18:55:28 +0200

Hello Chuck,


Pan and Zoom is no problem.


For example:

JButto centerButton = new JButton;


centerButton.addActionListener(new ActionListener()
{
    public void actionPerformed( ActionEvent e )
     {
           CenterEvent centerEvent = new CenterEvent(this, 50.0f, 10.0f);
           yourApp.this.mapBean.centerEvent();

     }


});


Thats all. You can do this for panning and zoom whith the PanEvent and ZoomEvent. You can find more details in the API Doc of Openmap.

I hoppe it helps.

Regards,

Dirk



"Vincent, Chuck" <CVincent_at_sfa.com> schrieb am 21.06.05 13:30:53:
>
>
>
>
> I am doing something very similar. I have a swing app, where all I am using is the mapBean in a JPanel. I would like to be able to do simple projection changes (zoom & pan) and to be able to draw things on top.
>
>
>
> Any help pointing me in the right direction would be great. Please keep in mind I am new to Java (former c++ programmer).
>
>
>
> -Chuck
>
>
>
>
>
[..]
>
> Hello Don, hello Group,
>
>
>
> How can I use the DrawingTool whithout the MapHandler.
>
>
>
> I have a GUI Application whith a MenuBar and a Toolbar. The main Panel has a JTree on the left side and a Panel on the right. Using reflection i can load different
>
> Panels in this MainPanel. One of them is a MapBean whith some Layers. At the moment all works fine for me.
>
>
>
> My problem now is how can I use the DrawingTool whithout the MapHandler in my own Layer witch extends OMGraphicHandlerLayer?
>
>


__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Jun 21 2005 - 12:55:59 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT