mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 09:07:27 -05:00
* WIP - Adds support for aliasing P25 Phase 2 tones.Playlist editor - adds editor support for alias actions * Playlist editor implementation and integration into application is complete. Adds JavaFX window monitoring to persist window size/location across application runs. Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
@@ -627,6 +627,11 @@ public class OverlayPanel extends JPanel implements Listener<ChannelEvent>, ISou
|
||||
{
|
||||
FontMetrics fontMetrics = graphics.getFontMetrics(font);
|
||||
|
||||
if(text == null || text.isEmpty())
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Rectangle2D label = fontMetrics.getStringBounds(text, graphics);
|
||||
|
||||
double offset = label.getWidth() / 2.0d;
|
||||
|
||||
Reference in New Issue
Block a user