mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Closes Issue #33.
Adds Spectral/Waterfall display zoom feature with mouse dragging and zoom window indicator. Resolves issues with correct display and spacing of frequency labels and tick lines display in the overlay panel.
This commit is contained in:
@@ -21,6 +21,7 @@ import java.awt.EventQueue;
|
||||
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import message.Message;
|
||||
import net.miginfocom.swing.MigLayout;
|
||||
|
||||
import org.jdesktop.swingx.JXMapViewer;
|
||||
@@ -31,9 +32,10 @@ import org.jdesktop.swingx.mapviewer.DefaultTileFactory;
|
||||
import org.jdesktop.swingx.mapviewer.GeoPosition;
|
||||
import org.jdesktop.swingx.mapviewer.TileFactoryInfo;
|
||||
|
||||
import sample.Listener;
|
||||
import settings.MapViewSetting;
|
||||
import settings.SettingsManager;
|
||||
import controller.ResourceManager;
|
||||
import controller.channel.ChannelManager;
|
||||
|
||||
public class MapPanel extends JPanel implements PlottableUpdateListener
|
||||
{
|
||||
@@ -44,11 +46,17 @@ public class MapPanel extends JPanel implements PlottableUpdateListener
|
||||
private JXMapViewer mMapViewer = new JXMapViewer();
|
||||
private PlottableEntityPainter mMapPainter;
|
||||
|
||||
public MapPanel( ResourceManager resourceManager )
|
||||
public MapPanel( MapService mapService,
|
||||
SettingsManager settingsManager,
|
||||
ChannelManager channelManager )
|
||||
{
|
||||
mSettingsManager = resourceManager.getSettingsManager();
|
||||
mMapService = resourceManager.getMapService();
|
||||
mSettingsManager = settingsManager;
|
||||
mMapService = mapService;
|
||||
mMapPainter = new PlottableEntityPainter( mSettingsManager );
|
||||
|
||||
/* Add Map Service as message listener to receive all messages */
|
||||
channelManager.addListener( (Listener<Message>)mMapService );
|
||||
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user