Code cleanup for waterfall and overlay panels

This commit is contained in:
Denny
2016-05-30 07:30:17 -04:00
parent 8fec7c7314
commit 61d9698ca5
2 changed files with 5 additions and 7 deletions

View File

@@ -96,9 +96,6 @@ public class OverlayPanel extends JPanel
private Color mColorSpectrumCursor; private Color mColorSpectrumCursor;
private Color mColorSpectrumLine; private Color mColorSpectrumLine;
// //All channels
// private List<Channel> mChannels = new ArrayList<Channel>();
//
//Currently visible/displayable channels //Currently visible/displayable channels
private CopyOnWriteArrayList<Channel> mVisibleChannels = new CopyOnWriteArrayList<Channel>(); private CopyOnWriteArrayList<Channel> mVisibleChannels = new CopyOnWriteArrayList<Channel>();
private ChannelDisplay mChannelDisplay = ChannelDisplay.ALL; private ChannelDisplay mChannelDisplay = ChannelDisplay.ALL;

View File

@@ -284,6 +284,8 @@ public class WaterfallPanel extends JPanel implements DFTResultsListener,
*/ */
public void paintComponent( Graphics g ) public void paintComponent( Graphics g )
{ {
super.paintComponent( g );
int multiplier = getZoomMultiplier(); int multiplier = getZoomMultiplier();
double binPixelWidth = getBinPixelWidth( multiplier ); double binPixelWidth = getBinPixelWidth( multiplier );
@@ -297,7 +299,6 @@ public class WaterfallPanel extends JPanel implements DFTResultsListener,
mImageHeight, mImageHeight,
this ); this );
Graphics2D graphics = (Graphics2D) g; Graphics2D graphics = (Graphics2D) g;
graphics.setColor( mColorSpectrumCursor ); graphics.setColor( mColorSpectrumCursor );