refactor: removed un-used balloontooltip library

This commit is contained in:
Oleg Agafonov 2024-06-13 00:02:15 +04:00
parent 4f0691ad08
commit 11bd8c29b2
3 changed files with 0 additions and 20 deletions

View file

@ -133,13 +133,6 @@
</dependency> </dependency>
<!-- music player END --> <!-- music player END -->
<dependency>
<!-- GUI lib for balloon popup TODO: unused and can be deleted? -->
<groupId>net.java.balloontip</groupId>
<artifactId>balloontip</artifactId>
<version>1.2.4.1</version>
</dependency>
<!-- svg support START --> <!-- svg support START -->
<!-- <!--
for "SAX2 driver class org.apache.crimson.parser.XMLReaderImpl not found" error looks here: for "SAX2 driver class org.apache.crimson.parser.XMLReaderImpl not found" error looks here:

View file

@ -47,9 +47,6 @@ import mage.util.DebugUtil;
import mage.utils.MageVersion; import mage.utils.MageVersion;
import mage.view.GameEndView; import mage.view.GameEndView;
import mage.view.UserRequestMessage; import mage.view.UserRequestMessage;
import net.java.balloontip.BalloonTip;
import net.java.balloontip.positioners.LeftAbovePositioner;
import net.java.balloontip.styles.EdgedBalloonStyle;
import net.java.truevfs.access.TArchiveDetector; import net.java.truevfs.access.TArchiveDetector;
import net.java.truevfs.access.TConfig; import net.java.truevfs.access.TConfig;
import net.java.truevfs.kernel.spec.FsAccessOption; import net.java.truevfs.kernel.spec.FsAccessOption;
@ -137,8 +134,6 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
private static long startTime; private static long startTime;
private final BalloonTip balloonTip;
/** /**
* @return the session * @return the session
*/ */
@ -364,11 +359,6 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
} }
}); });
// balloonTip = new BalloonTip(desktopPane, "", new ModernBalloonStyle(0, 0, Color.WHITE, Color.YELLOW, Color.BLUE), false);
balloonTip = new BalloonTip(desktopPane, "", new EdgedBalloonStyle(Color.WHITE, Color.BLUE), false);
balloonTip.setPositioner(new LeftAbovePositioner(0, 0));
balloonTip.setVisible(false);
// tooltips delay in ms // tooltips delay in ms
ToolTipManager.sharedInstance().setDismissDelay(Constants.TOOLTIPS_DELAY_MS); ToolTipManager.sharedInstance().setDismissDelay(Constants.TOOLTIPS_DELAY_MS);
@ -1824,7 +1814,6 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
component.setMaximumSize(d); component.setMaximumSize(d);
} }
} }
balloonTip.setFont(GUISizeHelper.balloonTooltipFont);
updateTooltipContainerSizes(); updateTooltipContainerSizes();
} }

View file

@ -40,7 +40,6 @@ public final class GUISizeHelper {
public static Font chatFont = new java.awt.Font("Arial", 0, 12); public static Font chatFont = new java.awt.Font("Arial", 0, 12);
public static Font tableFont = new java.awt.Font("Arial", 0, 12); public static Font tableFont = new java.awt.Font("Arial", 0, 12);
public static Font balloonTooltipFont = new java.awt.Font("Arial", 0, 12);
public static Font menuFont = new java.awt.Font("Arial", 0, 12); public static Font menuFont = new java.awt.Font("Arial", 0, 12);
public static Font gameRequestsFont = new java.awt.Font("Arial", 0, 12); public static Font gameRequestsFont = new java.awt.Font("Arial", 0, 12);
@ -98,7 +97,6 @@ public final class GUISizeHelper {
tableHeaderHeight = tableFontSize + 10; tableHeaderHeight = tableFontSize + 10;
symbolTableSize = tableFontSize; symbolTableSize = tableFontSize;
flagHeight = tableFontSize - 2; flagHeight = tableFontSize - 2;
balloonTooltipFont = new Font("Arial", 0, tableFontSize);
if (tableFontSize > 15) { if (tableFontSize > 15) {
symbolEditorSize = tableFontSize - 5; symbolEditorSize = tableFontSize - 5;
dividerBarSize = 10 + (tableFontSize / 4); dividerBarSize = 10 + (tableFontSize / 4);