mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Code cleanup for waterfall and overlay panels
This commit is contained in:
@@ -278,26 +278,27 @@ public class WaterfallPanel extends JPanel implements DFTResultsListener,
|
||||
{
|
||||
return ( (double)getWidth() * (double)multiplier ) / (double)mDFTSize;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Renders the screen at each refresh
|
||||
*/
|
||||
public void paintComponent( Graphics g )
|
||||
{
|
||||
super.paintComponent( g );
|
||||
|
||||
int multiplier = getZoomMultiplier();
|
||||
|
||||
double binPixelWidth = getBinPixelWidth( multiplier );
|
||||
|
||||
int offset = (int)( getPixelOffset( multiplier ) - binPixelWidth );
|
||||
|
||||
|
||||
g.drawImage( mWaterfallImage,
|
||||
offset,
|
||||
0,
|
||||
( getWidth() * multiplier ) + (int)binPixelWidth,
|
||||
mImageHeight,
|
||||
mImageHeight,
|
||||
this );
|
||||
|
||||
|
||||
Graphics2D graphics = (Graphics2D) g;
|
||||
|
||||
graphics.setColor( mColorSpectrumCursor );
|
||||
|
||||
Reference in New Issue
Block a user