private CopyCoordinatesPanel createCopyCoordinatesPanel(
     MapTool<?> mapTool, MapModel mapModel, Container container) {
   CopyCoordinatesPanel copyCoordinatesPanel = new CopyCoordinatesPanel(mapTool, container);
   int width = mapModel.getTargetDevice().getPixelWidth();
   int height = mapModel.getTargetDevice().getPixelHeight();
   copyCoordinatesPanel.setBounds(0, 0, width, height);
   copyCoordinatesPanel.setBackground(new Color(255, 255, 255, 0));
   copyCoordinatesPanel.setVisible(true);
   return copyCoordinatesPanel;
 }
 @Override
 public void valueChanged(ValueChangedEvent event) {
   if (event instanceof MapStateChangedEvent) {
     this.mapModule.getMapTool().removeChangeListener(this);
     this.mapModule = appContainer.getActiveMapModule();
     this.mapModule.getMapTool().addChangeListener(this);
     ToolState state = ((MapStateChangedEvent) event).getState();
     if (state instanceof CopyCoordinatesState) {
       copyCoordinatesPanel.connect();
     } else {
       copyCoordinatesPanel.disconnect();
     }
   }
 }