The IlvSeeThroughInteractor allows the user to
temporarily see a part of a map independently from the current
layer visibility states. This means that users can interactively
reveal layers beneath a layer over which the mouse is pressed.
With this interactor, the user drags a square over the map, which
displays the layers registered for this interactor. IlvSeeThroughConfigurationPanel is provided
as a default configuration tool to interactively select layers in a
Swing GUI.
IlvSeeThroughInteractor seeThrough = new IlvSeeThroughInteractor(); // configure the interactor IlvSeeThroughConfigurationPanel panel = new IlvSeeThroughConfigurationPanel(manager, seeThrough); JOptionPane pane = new JOptionPane(); pane.setMessage(panel); JDialog dialog = pane.createDialog(view, title); panel.update(); dialog.setVisible(true); // attach to the view. view.setInteractor(seeThrough);
To create this interactor and attach it to an
IlvManagerView
, use the following code: