forked from External/mage
Changed handling of tooltip size calculation.
This commit is contained in:
parent
17a9a8edc7
commit
a835c19533
3 changed files with 18 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue