public void reset(){
  double zoomOld=getZoom();
  double zoomNew=1.0;
  PointND<? extends Number> centerOld=getCenter();
  List<String> axesNames=getAxes();
  Double[] centerCoordsOriginal=new Double[centerOld.getDimensions()];
  int axisIndex=0;
  for (  String axisName : axesNames) {
    NavigationInfo info=getInfo(axisName);
    if (info != null) {
      double centerCoordOriginal=info.getCenterOriginal();
      centerCoordsOriginal[axisIndex]=centerCoordOriginal;
      info.setCenter(centerCoordOriginal);
      info.setZoom(zoomNew);
    }
    axisIndex++;
  }
  PointND<Double> centerNew=new PointND<Double>(centerCoordsOriginal);
  NavigationEvent<PointND<? extends Number>> panEvent=new NavigationEvent<PointND<? extends Number>>(this,centerOld,centerNew);
  fireCenterChanged(panEvent);
  NavigationEvent<Double> zoomEvent=new NavigationEvent<Double>(this,zoomOld,1.0);
  fireZoomChanged(zoomEvent);
  refresh();
}

public void reset ( ) { double zoomOld = getZoom ( ) ; double zoomNew = 1.0 ; PointND < ? extends Number > centerOld = getCenter ( ) ; List < String > axesNames = getAxes ( ) ; Double [ ] centerCoordsOriginal = new Double [ centerOld . getDimensions ( ) ] ; int axisIndex = 0 ; for ( String axisName : axesNames ) { NavigationInfo info = getInfo ( axisName ) ; if ( info != null ) { double centerCoordOriginal = info . getCenterOriginal ( ) ; centerCoordsOriginal [ axisIndex ] = centerCoordOriginal ; info . setCenter ( centerCoordOriginal ) ; info . setZoom ( zoomNew ) ; } axisIndex ++ ; } PointND < Double > centerNew = new PointND < Double > ( centerCoordsOriginal ) ; NavigationEvent < PointND < ? extends Number > > panEvent = new NavigationEvent < PointND < ? extends Number > > ( this , centerOld , centerNew ) ; fireCenterChanged ( panEvent ) ; NavigationEvent < Double > zoomEvent = new NavigationEvent < Double > ( this , zoomOld , 1.0 ) ; fireZoomChanged ( zoomEvent ) ; refresh ( ) ; }
sets the object ' s position and zoom level to the default state .
