0 Replies - 202 Views - Last Post: 06 October 2013 - 10:12 AM Rate Topic: -----

#1 NewToJava2011  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 166
  • Joined: 21-November 11

Do JxMapKit Waypoint Listeners Exist?

Posted 06 October 2013 - 10:12 AM

Im experimenting with JxMapKits and Waypoints and wondered if it is possible to add a listener to detect when a Mouse has been clicked over a Waypoint.

My IDE presents me with the the property change event.

       // Create a waypoint painter that takes all the waypoints
                WaypointPainter<MyWaypoint> waypointPainter = new WaypointPainter<MyWaypoint>();
                waypointPainter.setWaypoints(waypoints);
                waypointPainter.setRenderer(new FancyWaypointRenderer());

                waypointPainter.addPropertyChangeListener("zoom", new PropertyChangeListener() {
                    @Override
                    public void propertyChange(PropertyChangeEvent evt) {
                        System.out.println("Test");
                        
                    }
                });



Any thoughts?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1