OK In progress...

This commit is contained in:
Kolan Sh 2018-01-19 14:09:50 +03:00
parent e48c8a1f5a
commit 715d4185b8
4 changed files with 20 additions and 11 deletions

View File

@ -143,5 +143,10 @@ namespace CairoChart {
}
}
}
public virtual void unzoom () {
zoom_min = min;
zoom_max = max;
}
}
}

View File

@ -254,17 +254,7 @@ namespace CairoChart {
* Zooms out the ``Chart``.
*/
public virtual void zoom_out () {
foreach (var s in series) {
s.zoom_show = true;
s.axis_x.zoom_min = s.axis_x.min;
s.axis_x.zoom_max = s.axis_x.max;
s.axis_y.zoom_min = s.axis_y.min;
s.axis_y.zoom_max = s.axis_y.max;
s.place.zoom_x_min = s.place.x_min;
s.place.zoom_x_max = s.place.x_max;
s.place.zoom_y_min = s.place.y_min;
s.place.zoom_y_max = s.place.y_max;
}
foreach (var s in series) s.unzoom();
zoom = Cairo.Rectangle() { x = 0, y = 0, width = 1, height = 1 };
zoom_1st_idx = 0;
}

View File

@ -48,5 +48,12 @@ namespace CairoChart {
zoom_y_min = y_min;
zoom_y_max = y_max;
}
public virtual void unzoom () {
zoom_x_min = x_min;
zoom_x_max = x_max;
zoom_y_min = y_min;
zoom_y_max = y_max;
}
}
}

View File

@ -567,5 +567,12 @@ namespace CairoChart {
public virtual Point128 get_real_point (Point p) {
return Point128 (get_real_x(p.x), get_real_y(p.y));
}
public virtual void unzoom () {
zoom_show = true;
axis_x.unzoom();
axis_y.unzoom();
place.unzoom();
}
}
}