fr.ifremer.isisfish.map
Class CopyMapToClipboardListener

java.lang.Object
  extended by fr.ifremer.isisfish.map.CopyMapToClipboardListener
All Implemented Interfaces:
com.bbn.openmap.event.MapMouseListener, ActionListener, EventListener

public class CopyMapToClipboardListener
extends Object
implements ActionListener, com.bbn.openmap.event.MapMouseListener

Listener for openmap map bean to display popop menu on right click. Currently, this listener can : - copy current map to system clip board

Version:
$Revision: 3124 $ Last update : $Date: 2010-11-29 19:14:09 +0100 (Mon, 29 Nov 2010) $ By : $Author$
Author:
chatellier

Nested Class Summary
static class CopyMapToClipboardListener.ImageSelection
           
 
Field Summary
protected static String COPY_TO_CLICBOARD_COMMAND
          Copy to clic board action command.
protected  com.bbn.openmap.MapBean mapBean
          Open map bean.
 JPopupMenu menu
          Popop menu.
 
Constructor Summary
CopyMapToClipboardListener(com.bbn.openmap.MapBean mapBean)
          Constructor with map.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  void copyToClipBoard()
           
 com.bbn.openmap.MapBean getMapBean()
           
 String[] getMouseModeServiceList()
           
 boolean mouseClicked(MouseEvent e)
           
 boolean mouseDragged(MouseEvent arg0)
           
 void mouseEntered(MouseEvent arg0)
           
 void mouseExited(MouseEvent arg0)
           
 void mouseMoved()
           
 boolean mouseMoved(MouseEvent arg0)
           
 boolean mousePressed(MouseEvent arg0)
           
 boolean mouseReleased(MouseEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY_TO_CLICBOARD_COMMAND

protected static final String COPY_TO_CLICBOARD_COMMAND
Copy to clic board action command.

See Also:
Constant Field Values

menu

public JPopupMenu menu
Popop menu.


mapBean

protected com.bbn.openmap.MapBean mapBean
Open map bean.

Constructor Detail

CopyMapToClipboardListener

public CopyMapToClipboardListener(com.bbn.openmap.MapBean mapBean)
Constructor with map.

Parameters:
mapBean - open map bean
Method Detail

getMapBean

public com.bbn.openmap.MapBean getMapBean()

copyToClipBoard

protected void copyToClipBoard()

getMouseModeServiceList

public String[] getMouseModeServiceList()
Specified by:
getMouseModeServiceList in interface com.bbn.openmap.event.MapMouseListener

mouseClicked

public boolean mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface com.bbn.openmap.event.MapMouseListener

mouseDragged

public boolean mouseDragged(MouseEvent arg0)
Specified by:
mouseDragged in interface com.bbn.openmap.event.MapMouseListener

mouseEntered

public void mouseEntered(MouseEvent arg0)
Specified by:
mouseEntered in interface com.bbn.openmap.event.MapMouseListener

mouseExited

public void mouseExited(MouseEvent arg0)
Specified by:
mouseExited in interface com.bbn.openmap.event.MapMouseListener

mouseMoved

public void mouseMoved()
Specified by:
mouseMoved in interface com.bbn.openmap.event.MapMouseListener

mouseMoved

public boolean mouseMoved(MouseEvent arg0)
Specified by:
mouseMoved in interface com.bbn.openmap.event.MapMouseListener

mousePressed

public boolean mousePressed(MouseEvent arg0)
Specified by:
mousePressed in interface com.bbn.openmap.event.MapMouseListener

mouseReleased

public boolean mouseReleased(MouseEvent arg0)
Specified by:
mouseReleased in interface com.bbn.openmap.event.MapMouseListener

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener


Copyright © 1999-2012 CodeLutin. All Rights Reserved.