com.ijchart.xychart.plot
Interface IZoomable

All Known Implementing Classes:
AbstractAxisPlot, AbstractCombineCategoryPlot, AbstractCombineXYPlot, AbstractPlot, Category3DPlot, CategoryPlot, CombineCategoryAxisCategoryPlot, CombineDomainAxisXYPlot, CombineValueAxisCategoryPlot, CombineValueAxisXYPlot, NoAxisPlot, XYPlot

public interface IZoomable

Title: IJChart

Description: a chart library for the Java(tm) platform.

A plot that is zoomable must implement this interface to provide a mechanism for the ChartPanel to control the zooming.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.

Method Summary
 ChartOrientation getOrientation()
           Returns the orientation of the plot.
 boolean isDomainZoomable()
           Returns true if the plot's domain axis is zoomable, and false otherwise.
 boolean isValueZoomable()
           Returns true if the plot's value is zoomable, and false otherwise.
 void zoomDomainAxes(java.awt.geom.Rectangle2D selectArea, java.awt.geom.Rectangle2D dataArea, java.awt.geom.Point2D source)
           Zoom domain axes.
 void zoomValueAxes(java.awt.geom.Rectangle2D selectArea, java.awt.geom.Rectangle2D dataArea, java.awt.geom.Point2D source)
           Zoom value axes.
 

Method Detail

isDomainZoomable

boolean isDomainZoomable()
Returns true if the plot's domain axis is zoomable, and false otherwise.

Returns:
boolean A boolean.

isValueZoomable

boolean isValueZoomable()
Returns true if the plot's value is zoomable, and false otherwise.

Returns:
boolean A boolean.

getOrientation

ChartOrientation getOrientation()
Returns the orientation of the plot.

Returns:
ChartOrientation The orientation.

zoomDomainAxes

void zoomDomainAxes(java.awt.geom.Rectangle2D selectArea,
                    java.awt.geom.Rectangle2D dataArea,
                    java.awt.geom.Point2D source)
Zoom domain axes.

Parameters:
selectArea - Rectangle2D The selected area,null to restore chart.
dataArea - Rectangle2D The data area,null to restore chart.
source - Point2D The source mouse point (null not permitted).

zoomValueAxes

void zoomValueAxes(java.awt.geom.Rectangle2D selectArea,
                   java.awt.geom.Rectangle2D dataArea,
                   java.awt.geom.Point2D source)
Zoom value axes.

Parameters:
selectArea - Rectangle2D The selected area,null to restore chart.
dataArea - Rectangle2D The data area,null to restore chart.
source - Point2D The source mouse point (null not permitted).