private void paintBackgroundShadow(Graphics2D g2) {
GridPanel gp = client.getGridPanel();
int h = gp.getHeight();
Player player = game.getTurnPlayer();
if (player == null) {
g2.setColor(PANEL_BG_COLOR);
g2.fillRect(-LEFT_PADDING , 0, LEFT_PADDING, h);
g2.setColor(PANEL_BG_COLOR_SHADOW);
g2.fillRect(-LEFT_PADDING-3, 0, 3, h);
} else {
int y = playerPanels[player.getIndex()].getCenterY();
g2.setColor(PANEL_BG_COLOR);
g2.fillRect(-LEFT_PADDING , 0, LEFT_PADDING, y-ACTIVE_MARKER_SIZE);
g2.fillRect(-LEFT_PADDING , y+ACTIVE_MARKER_SIZE, LEFT_PADDING, h-y-ACTIVE_MARKER_SIZE);
g2.fillPolygon(
new int[] { -LEFT_PADDING, 0, 0, -ACTIVE_MARKER_PADDING },
new int[] { y-ACTIVE_MARKER_SIZE, y-ACTIVE_MARKER_SIZE, y, y}, 4
);
g2.fillPolygon(
new int[] { -LEFT_PADDING, 0, 0, -ACTIVE_MARKER_PADDING },
new int[] { y+ACTIVE_MARKER_SIZE, y+ACTIVE_MARKER_SIZE, y, y}, 4
);
g2.setColor(PANEL_BG_COLOR_SHADOW);
//g2.setColor(Color.RED);
g2.fillRect(-LEFT_PADDING-PANEL_SHADOW_WIDTH, 0, PANEL_SHADOW_WIDTH, y-ACTIVE_MARKER_SIZE);
g2.fillRect(-LEFT_PADDING-PANEL_SHADOW_WIDTH, y+ACTIVE_MARKER_SIZE, PANEL_SHADOW_WIDTH, h-y+ACTIVE_MARKER_SIZE);
g2.fillPolygon(
new int[] { -LEFT_PADDING-PANEL_SHADOW_WIDTH, -LEFT_PADDING, -ACTIVE_MARKER_PADDING, -PANEL_SHADOW_WIDTH-ACTIVE_MARKER_PADDING},
new int[] { y-ACTIVE_MARKER_SIZE, y-ACTIVE_MARKER_SIZE, y, y}, 4
);
g2.fillPolygon(
new int[] { -LEFT_PADDING-PANEL_SHADOW_WIDTH, -LEFT_PADDING, -ACTIVE_MARKER_PADDING, -PANEL_SHADOW_WIDTH-ACTIVE_MARKER_PADDING },
new int[] { y+ACTIVE_MARKER_SIZE, y+ACTIVE_MARKER_SIZE, y, y}, 4
);
}
player = game.getActivePlayer();
if (player != null) {
g2.setColor(Color.BLACK);
int y = playerPanels[player.getIndex()].getCenterY();
// g2.fillPolygon(
// new int[] { -LEFT_PADDING-PANEL_SHADOW_WIDTH, -PANEL_SHADOW_WIDTH-ACTIVE_MARKER_PADDING, -LEFT_PADDING-PANEL_SHADOW_WIDTH},
// new int[] { y-ACTIVE_MARKER_SIZE, y, y+ACTIVE_MARKER_SIZE,}, 3
// );
g2.fillPolygon(