if (getViewPosition().equals(p)) return;
  public void setViewPosition(Point p)  {    Component view = getView();    if (view != null)      {        Point q = new Point(-p.x, -p.y);        view.setLocation(q);        isViewSizeSet = false;        fireStateChanged();      }    repaint();  }