doZoomIn()

This method zooms in on the data in a chart by the value assigned to the ZoomPercentage property. The ZoomDirection property defines whether zooming is performed on the Y-axis, X-axis, or both.

doZoomIn() zooms in on the center of the chart. This works without any selections or points and uses the value currently set by ZoomPercentage to determine how far the chart is zoomed. To use smaller zooming steps, change the percentage with ZoomPercentage.

doZoomIn(x, y) zooms in on a specified point given in virtual coordinates. It is the same as doZoomIn() EXCEPT it zooms in on a point instead of the center of the graph. Remember the point specification must be in virtual coordinates, NOT in screen pixels!

doZoomIn(pt) zooms in on the specified point (given in virtual coordinates). It is the same as doZoomIn(x,y) except it uses the Java object POINT as input rather than two integers. This format is useful when you want all of your code to use Objects rather than simple types. Note that this type would not work from HTML, since HTML only allows simple types to be passed to Java.

doZoomIn(r) zooms in on a rectangle (given in virtual coordinates). It is the same as the user interface "drag out a rectangle" mode (setSelectionEnable(5)). It allows you to pass in a valid Java Rectangle and have zooming use it as input. This format is useful if you plan to write your own "marquee" code or have some other mechanism where you want to pass a rectangle area to the chart.

Syntax:

void doZoomIn ();

void doZoomIn (int x, int y);

void doZoomIn (java.awt.Point pt);

void doZoomIn (java.awt.Rectangle r);

Input:

x,y: X/Y coordinates of a point specified in virtual coordinates.

pt: A POINT Java object

r: A Java rectangle specified in Perspective virtual coordinates

Return:

void;

Notes:

This method is not currently supported for 3D graph types.

Also See:

ZoomDirection, ZoomPercentage, doZoomOut(), getZoomIndex(), setZoomIndex(), clearZoomList(), isZoomingArmed

doZoomOut()

This method is used to zoom out from the data in the chart by the value currently assigned to the ZoomPercentage property. The ZoomDirection property defines whether zooming is performed on the Y-axis, X-axis, or both.

doZoomOut() zooms out on the center of the chart by the amount assigned to the ZoomPercentage property.

doZoomOut(x, y) zooms out on the specified point (given in virtual coordinates). It the same as doZoomOut() except the zoom out is on a point (identified in virtual coordinates) rather than from the center of the chart. This format can be invoked from HTML since it uses simple Java types.

doZoomOut(pt) zoom out on the specified point (given in virtual coordinates). It is the same as doZoomOut(x, y) except that it uses the Java object Point instead of two integers. This format CANNOT be invoked from HTML since it uses a Java object as its parameter.

Syntax:

void doZoomOut();

void doZoomOut(int x, int y);

void doZoomOut(java.awt.Point pt);

Input:

x,y: X/Y coordinates of a point specified in virtual coordinates.

pt: A POINT Java object

Return:

void;

Notes:

1.

This method is not currently supported for 3D graph types.

2.

setZoomIndex(value) lets you select a particular zoom state or level to zoom out. See getZoomIndex and setZoomIndex for additional information about the zoom index list.

Also See:

ZoomPercentage, doZoomIn(), getZoomIndex(), setZoomIndex(), clearZoomList(), isZoomingArmed