int baseX = x *(hexSide + hexSideBySin30) + leftMargin; int baseY = (2*y + 1 + x%2)* hexSideByCos30 + topMargin;
int baseX = x *(hexSide[zoom] + hexSideBySin30[zoom]) + leftMargin; int baseY = (2*y + 1 + x%2)* hexSideByCos30[zoom] + topMargin;
    private void paintCoord(Graphics g, int x, int y, boolean border) {        int baseX = x *(hexSide + hexSideBySin30) + leftMargin;        int baseY = (2*y + 1 + x%2)* hexSideByCos30 + topMargin;        int [] xPoints = new int[6];        int [] yPoints = new int[6];        xPoints[0] = baseX;        yPoints[0] = baseY;        xPoints[1] = baseX + hexSideBySin30;        yPoints[1] = baseY + hexSideByCos30;        xPoints[2] = baseX + hexSideBySin30 + hexSide;        yPoints[2] = baseY + hexSideByCos30;        xPoints[3] = baseX + hexSideBySin30 + hexSide + hexSideBySin30;        yPoints[3] = baseY;        xPoints[4] = baseX + hexSideBySin30 + hexSide;        yPoints[4] = baseY - hexSideByCos30;        xPoints[5] = baseX + hexSideBySin30;        yPoints[5] = baseY - hexSideByCos30;        g.fillPolygon(xPoints,yPoints,6);        if (border) {            Color oldColor = g.getColor();            g.setColor(oldColor.darker());            g.drawPolygon(xPoints,yPoints,6);            g.setColor(oldColor);        }    }