Revision 10962 trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/graphic/listeners/GraphicListener.java
GraphicListener.java | ||
---|---|---|
26 | 26 |
|
27 | 27 |
import javax.swing.JLabel; |
28 | 28 |
|
29 |
import org.gvsig.gui.beans.graphic.GraphicContainer; |
|
30 |
|
|
29 | 31 |
/** |
30 | 32 |
* |
31 | 33 |
* @author Nacho Brodin <brodin_ign@gva.es> |
32 | 34 |
* |
33 | 35 |
*/ |
34 | 36 |
public class GraphicListener implements MouseListener, ActionListener, MouseMotionListener{ |
37 |
|
|
38 |
private GraphicContainer graphicContainer = null; |
|
35 | 39 |
private boolean move = false; |
36 | 40 |
private JLabel left = null; |
37 | 41 |
private JLabel right = null; |
38 | 42 |
|
43 |
public GraphicListener(GraphicContainer graphicContainer){ |
|
44 |
this.graphicContainer = graphicContainer; |
|
45 |
} |
|
46 |
|
|
39 | 47 |
public void mouseDragged(MouseEvent e) { |
40 | 48 |
if(move){ |
41 | 49 |
if(e.getSource() == left) |
Also available in: Unified diff