Revision 41964 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/tools/Behavior/MoveBehavior.java

View differences:

MoveBehavior.java
73 73
     *            listener used to permit this object to work with the
74 74
     *            associated <code>MapControl</code>
75 75
     */
76
    public MoveBehavior(PanListener pli) {
76
    public MoveBehavior(PanListener pli, int mouseButton) {
77
        super(mouseButton);
77 78
        listener = pli;
78 79
    }
80
    
81
    public MoveBehavior(PanListener pli) {
82
        this(pli,LEFT);
83
    }
79 84

  
80 85
    public void paintComponent(MapControlDrawer renderer) {
81 86
        BufferedImage image = getMapControl().getImage();
......
126 131
        }
127 132
    }
128 133

  
129
    protected boolean isMyButton(MouseEvent e) {
130
        return (e.getButton() == MouseEvent.BUTTON1);
131
    }
132

  
133 134
    /**
134 135
     * <p>
135 136
     * Sets a tool listener to work with the <code>MapControl</code> using this

Also available in: Unified diff