15 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
16 |
import javax.swing.JToggleButton; |
import javax.swing.JToggleButton; |
17 |
import javax.swing.JToolBar; |
import javax.swing.JToolBar; |
|
import javax.swing.JToolBar.Separator; |
|
|
|
|
|
import jj2000.j2k.NotImplementedError; |
|
18 |
|
|
19 |
import org.apache.log4j.Logger; |
import org.apache.log4j.Logger; |
20 |
|
|
206 |
new ImageIcon(MapView.class.getResource("resource/icons/info.png")) |
new ImageIcon(MapView.class.getResource("resource/icons/info.png")) |
207 |
), false ); |
), false ); |
208 |
|
|
209 |
// Set Selection |
// // Set Selection |
210 |
addTool( new MapPaneToolBarAction( |
// addTool( new MapPaneToolBarAction( |
211 |
TOOL_SELECTION_SET, |
// TOOL_SELECTION_SET, |
212 |
this, |
// this, |
213 |
"", |
// "", |
214 |
new ImageIcon(MapView.class.getResource("resource/icons/selection_set.png")) |
// new ImageIcon(MapView.class.getResource("resource/icons/selection_set.png")) |
215 |
), false ); |
// ), false ); |
216 |
|
// |
217 |
// Add Selection |
// // Add Selection |
218 |
addTool( new MapPaneToolBarAction( |
// addTool( new MapPaneToolBarAction( |
219 |
TOOL_SELECTION_ADD, |
// TOOL_SELECTION_ADD, |
220 |
this, |
// this, |
221 |
"", |
// "", |
222 |
new ImageIcon(MapView.class.getResource("resource/icons/selection_add.png")) |
// new ImageIcon(MapView.class.getResource("resource/icons/selection_add.png")) |
223 |
), false ); |
// ), false ); |
224 |
|
// |
225 |
// Remove Selection |
// // Remove Selection |
226 |
addTool( new MapPaneToolBarAction( |
// addTool( new MapPaneToolBarAction( |
227 |
TOOL_SELECTION_REMOVE, |
// TOOL_SELECTION_REMOVE, |
228 |
this, |
// this, |
229 |
"", |
// "", |
230 |
new ImageIcon(MapView.class.getResource("resource/icons/selection_remove.png")) |
// new ImageIcon(MapView.class.getResource("resource/icons/selection_remove.png")) |
231 |
), false ); |
// ), false ); |
232 |
|
// |
233 |
// ResetSelection |
// // ResetSelection |
234 |
addAction( new MapPaneToolBarAction( |
// addAction( new MapPaneToolBarAction( |
235 |
TOOL_SELECTION_CLEAR, |
// TOOL_SELECTION_CLEAR, |
236 |
this, |
// this, |
237 |
"", |
// "", |
238 |
new ImageIcon(MapView.class.getResource("resource/icons/selection_clear.png")) |
// new ImageIcon(MapView.class.getResource("resource/icons/selection_clear.png")) |
239 |
), false ); |
// ), false ); |
240 |
|
|
241 |
// Zoom in |
// Zoom in |
242 |
addTool( new MapPaneToolBarAction( |
addTool( new MapPaneToolBarAction( |
398 |
mapPane.refresh(); |
mapPane.refresh(); |
399 |
} |
} |
400 |
} |
} |
401 |
|
|
402 |
|
/** |
403 |
|
* Clear the selection by calling the selection model |
404 |
|
*/ |
405 |
|
if (action == TOOL_SELECTION_CLEAR) { |
406 |
|
// TODO |
407 |
|
} |
408 |
} |
} |
409 |
|
|
410 |
|
|