|
|
@ -31,11 +31,13 @@ public class Cell extends Object
|
|
|
|
|
|
|
|
|
|
|
|
static
|
|
|
|
static
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
boolean transparent = false;
|
|
|
|
for (int count = 0; count < p1.length; count++)
|
|
|
|
for (int count = 0; count < p1.length; count++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
BufferedImage g1 = new BufferedImage(50, 50, BufferedImage.TYPE_INT_ARGB);
|
|
|
|
BufferedImage g1 = new BufferedImage(50, 50, BufferedImage.TYPE_INT_ARGB);
|
|
|
|
Graphics gg1 = g1.getGraphics();
|
|
|
|
Graphics gg1 = g1.getGraphics();
|
|
|
|
gg1.setColor(new Color(255, 0, 0, 127));
|
|
|
|
if (transparent) gg1.setColor(new Color(255, 0, 0, 127));
|
|
|
|
|
|
|
|
else gg1.setColor(new Color(255, 0, 0));
|
|
|
|
int width;
|
|
|
|
int width;
|
|
|
|
int pos;
|
|
|
|
int pos;
|
|
|
|
width = (int) ((count + 1) * 2 + 22.5);
|
|
|
|
width = (int) ((count + 1) * 2 + 22.5);
|
|
|
@ -49,7 +51,8 @@ public class Cell extends Object
|
|
|
|
|
|
|
|
|
|
|
|
BufferedImage s = new BufferedImage(50, 50, BufferedImage.TYPE_INT_ARGB);
|
|
|
|
BufferedImage s = new BufferedImage(50, 50, BufferedImage.TYPE_INT_ARGB);
|
|
|
|
Graphics gs = s.getGraphics();
|
|
|
|
Graphics gs = s.getGraphics();
|
|
|
|
gs.setColor(new Color(255, 255, 0, 127));
|
|
|
|
if (transparent) gs.setColor(new Color(255, 255, 0, 127));
|
|
|
|
|
|
|
|
else gs.setColor(new Color(255, 255, 0));
|
|
|
|
gs.fillOval(0, 0, 50, 50);
|
|
|
|
gs.fillOval(0, 0, 50, 50);
|
|
|
|
gs.setColor(Color.BLACK);
|
|
|
|
gs.setColor(Color.BLACK);
|
|
|
|
gs.drawOval(0, 0, 50, 50);
|
|
|
|
gs.drawOval(0, 0, 50, 50);
|
|
|
@ -57,7 +60,8 @@ public class Cell extends Object
|
|
|
|
p2 = s;
|
|
|
|
p2 = s;
|
|
|
|
BufferedImage g2 = new BufferedImage(50, 50, BufferedImage.TYPE_INT_ARGB);
|
|
|
|
BufferedImage g2 = new BufferedImage(50, 50, BufferedImage.TYPE_INT_ARGB);
|
|
|
|
Graphics gg2 = g2.getGraphics();
|
|
|
|
Graphics gg2 = g2.getGraphics();
|
|
|
|
gg2.setColor(new Color(0, 255, 0, 127));
|
|
|
|
if (transparent) gg2.setColor(new Color(0, 255, 0, 127));
|
|
|
|
|
|
|
|
else gg2.setColor(new Color(0, 255, 0));
|
|
|
|
gg2.fillOval(0, 0, 50, 50);
|
|
|
|
gg2.fillOval(0, 0, 50, 50);
|
|
|
|
gg2.setColor(Color.BLACK);
|
|
|
|
gg2.setColor(Color.BLACK);
|
|
|
|
gg2.drawOval(0, 0, 50, 50);
|
|
|
|
gg2.drawOval(0, 0, 50, 50);
|
|
|
@ -65,7 +69,8 @@ public class Cell extends Object
|
|
|
|
p3 = g2;
|
|
|
|
p3 = g2;
|
|
|
|
BufferedImage m = new BufferedImage(50, 50, BufferedImage.TYPE_INT_ARGB);
|
|
|
|
BufferedImage m = new BufferedImage(50, 50, BufferedImage.TYPE_INT_ARGB);
|
|
|
|
Graphics gm = m.getGraphics();
|
|
|
|
Graphics gm = m.getGraphics();
|
|
|
|
gm.setColor(new Color(0, 0, 255, 127));
|
|
|
|
if (transparent) gm.setColor(new Color(0, 0, 255, 127));
|
|
|
|
|
|
|
|
else gm.setColor(new Color(0, 0, 255));
|
|
|
|
gm.fillOval(0, 0, 50, 50);
|
|
|
|
gm.fillOval(0, 0, 50, 50);
|
|
|
|
gm.setColor(Color.BLACK);
|
|
|
|
gm.setColor(Color.BLACK);
|
|
|
|
gm.drawOval(0, 0, 50, 50);
|
|
|
|
gm.drawOval(0, 0, 50, 50);
|
|
|
|