예제 #1
0
 /** {@inheritDoc } */
 @Override
 public boolean uninstall(final FXMap component) {
   component.removeEventHandler(MouseEvent.ANY, mouseInputListener);
   component.removeEventHandler(ScrollEvent.ANY, mouseInputListener);
   map.removeDecoration(layer);
   map.removeDecoration(deco);
   super.uninstall(component);
   return true;
 }
예제 #2
0
 /** {@inheritDoc } */
 @Override
 public void install(final FXMap component) {
   super.install(component);
   component.addEventHandler(MouseEvent.ANY, mouseInputListener);
   component.addEventHandler(ScrollEvent.ANY, mouseInputListener);
   map.setCursor(Cursor.CROSSHAIR);
   map.addDecoration(layer);
   map.addDecoration(deco);
 }