Changed handling of tooltip size calculation.

This commit is contained in:
LevelX2 2014-11-06 23:13:34 +01:00
parent 17a9a8edc7
commit a835c19533
3 changed files with 18 additions and 14 deletions

View file

@ -1,13 +1,14 @@
package mage.client.components;
import static com.sun.glass.ui.Cursor.setVisible;
import org.jdesktop.swingx.graphics.GraphicsUtilities;
import org.jdesktop.swingx.graphics.ShadowRenderer;
import java.awt.*;
import java.awt.image.BufferedImage;
import javax.swing.JPanel;
/**
* Mage round pane with transparency.
* Used for tooltips.
@ -19,8 +20,8 @@ public class MageRoundPane extends JPanel {
private int X_OFFSET = 30;
private int Y_OFFSET = 30;
private BufferedImage shadow = null;
private Color backgroundColor = new Color(255, 255, 255, 200);
private int alpha = 0;
private final Color backgroundColor = new Color(255, 255, 255, 200);
private final int alpha = 0;
@Override
protected void paintComponent(Graphics g) {