mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2025-01-08 15:39:35 +01:00
29260c205d
git-svn-id: http://svn.slightlymagic.net/forge/trunk@35700 269b9781-a132-4a9b-9d4e-f004f1b56b58
30 lines
691 B
Java
30 lines
691 B
Java
package forge.assets;
|
|
|
|
import forge.Graphics;
|
|
|
|
public class FSkinBorder {
|
|
private final FSkinColor color;
|
|
private final float thickness;
|
|
|
|
public FSkinBorder(FSkinColor color0, float thickness0) {
|
|
color = color0;
|
|
thickness = thickness0;
|
|
}
|
|
|
|
public FSkinColor getColor() {
|
|
return color;
|
|
}
|
|
|
|
public float getThickness() {
|
|
return thickness;
|
|
}
|
|
|
|
public void draw(Graphics g, float x, float y, float w, float h) {
|
|
x -= thickness;
|
|
y -= thickness;
|
|
w += 2 * thickness;
|
|
h += 2 * thickness;
|
|
g.fillRect(color, x, y, w, h); //draw filled rectangle behind object
|
|
}
|
|
}
|