Revision 41972 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/tools/Behavior/MoveBehavior.java
MoveBehavior.java | ||
---|---|---|
74 | 74 |
* @param pli |
75 | 75 |
* listener used to permit this object to work with the |
76 | 76 |
* associated <code>MapControl</code> |
77 |
* @param mouseButton |
|
77 | 78 |
*/ |
78 | 79 |
public MoveBehavior(PanListener pli, int mouseButton) { |
79 | 80 |
super(mouseButton); |
... | ... | |
84 | 85 |
this(pli,BUTTON_LEFT); |
85 | 86 |
} |
86 | 87 |
|
88 |
@Override |
|
87 | 89 |
public void paintComponent(MapControlDrawer renderer) { |
90 |
super.paintComponent(renderer); |
|
88 | 91 |
BufferedImage image = getMapControl().getImage(); |
89 | 92 |
if (image != null) { |
90 | 93 |
if ((m_FirstPoint != null) && (m_LastPoint != null)) { |
... | ... | |
97 | 100 |
} |
98 | 101 |
} |
99 | 102 |
|
103 |
@Override |
|
100 | 104 |
public void mousePressed(MouseEvent e) { |
101 | 105 |
if (isMyButton(e)) { |
102 | 106 |
isMyButton = true; |
... | ... | |
109 | 113 |
|
110 | 114 |
} |
111 | 115 |
|
116 |
@Override |
|
112 | 117 |
public void mouseReleased(MouseEvent e) throws BehaviorException { |
113 | 118 |
if (isMyButton(e) && m_FirstPoint != null) { |
114 | 119 |
doMouseReleased(e); |
... | ... | |
127 | 132 |
|
128 | 133 |
|
129 | 134 |
|
135 |
@Override |
|
130 | 136 |
public void mouseDragged(MouseEvent e) { |
131 | 137 |
if (isMyButton) { |
132 | 138 |
m_LastPoint = e.getPoint(); |
Also available in: Unified diff