chemModelRelay.fireZoomEvent();
chemModelRelay.updateView();
}
private void doZoom(double z) {
IRenderer renderer = chemModelRelay.getRenderer();
Point2d screenCoord =
renderer.toScreenCoordinates( worldCoord.x, worldCoord.y );
zoom(z);
Point2d newScreenCoords =
renderer.toScreenCoordinates( worldCoord.x, worldCoord.y );
Vector2d v= new Vector2d();
v.sub( screenCoord, newScreenCoords );
renderer.shiftDrawCenter( v.x, v.y );
}