net.sourceforge.webcompmath.awt
Interface Limits

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
CoordinateRect, LimitControlPanel, WCMDisplayCanvasBean, WCMLimitControlPanelBean

public interface Limits
extends java.io.Serializable

The Limits interface is implemented by edu.hws.jcm.data.CoordinateRect and by other objects that can be "Tied" to a CoordinateRect, such as LimitControlPanel. This will be used to synchronize the (x,y) limits on the CoordinateRect with limit values obtained elsewhere. See the Tie class for more information.

Author:
David Eck

Method Summary
 double[] getLimits()
          Return a 4-element array containing xmin, xmax, ymin, and ymax.
 void setLimits(double[] limits)
          Set the current limits.
 

Method Detail

getLimits

double[] getLimits()
Return a 4-element array containing xmin, xmax, ymin, and ymax.

Returns:
the array

setLimits

void setLimits(double[] limits)
Set the current limits.

Parameters:
limits - A 4-element array containing the new xmin, xmax, ymin, and ymax.