public void zoomOrigin(int oldGridSize,int newGridSize){
  log.trace("Zoom origin to: " + origin);
  origin.setLocation(origin.x * newGridSize / oldGridSize,origin.y * newGridSize / oldGridSize);
}

public void zoomOrigin ( int oldGridSize , int newGridSize ) { log . trace ( "Zoom origin to: " + origin ) ; origin . setLocation ( origin . x * newGridSize / oldGridSize , origin . y * newGridSize / oldGridSize ) ; }
ab : zoom the origin from the old grid size to the new grid size this method is mainly used by the diagramhandler classes setgridandzoom method .
