int onceY = (tsize.height - verSide) / 2;
int onceY = (tsize.height - (int)(verSide * zoom)) / 2;
    public Dimension getPreferredSize() {        Dimension tsize = getTileSize(zoom);        int border = ((modeFlags & PF_GRIDMODE) != 0) ? 1 : 0;        int onceX = (tsize.width - horSide) / 2;        int repeatX = tsize.width - onceX;        int onceY = (tsize.height - verSide) / 2;        int repeatY = tsize.height - onceY;        return new Dimension(                myMap.getWidth() * repeatX + onceX + border,                myMap.getHeight() * repeatY + onceY + border);    }