01: /*************************************************************************
02: * *
03: * 1) This source code file, in unmodified form, and compiled classes *
04: * derived from it can be used and distributed without restriction, *
05: * including for commercial use. (Attribution is not required *
06: * but is appreciated.) *
07: * *
08: * 2) Modified versions of this file can be made and distributed *
09: * provided: the modified versions are put into a Java package *
10: * different from the original package, edu.hws; modified *
11: * versions are distributed under the same terms as the original; *
12: * and the modifications are documented in comments. (Modification *
13: * here does not include simply making subclasses that belong to *
14: * a package other than edu.hws, which can be done without any *
15: * restriction.) *
16: * *
17: * David J. Eck *
18: * Department of Mathematics and Computer Science *
19: * Hobart and William Smith Colleges *
20: * Geneva, New York 14456, USA *
21: * Email: eck@hws.edu WWW: http://math.hws.edu/eck/ *
22: * *
23: *************************************************************************/package edu.hws.jcm.awt;
24:
25: /**
26: * The Limits interface is implemented by edu.hws.jcm.data.CoordinateRect
27: * and by other objects that can be "Tied" to a CoordinateRect, such as
28: * LimitControlPanel. This will be used to synchronize the (x,y)
29: * limits on the CoordinateRect with limit values obtained elsewhere.
30: * See the Tie class for more information.
31: *
32: * @author David Eck
33: */
34: public interface Limits extends java.io.Serializable {
35:
36: /**
37: * Return a 4-element array containing xmin, xmax, ymin, and ymax.
38: */
39: public double[] getLimits();
40:
41: /**
42: * Set the current limits.
43: *
44: * @param A 4-element array containing the new xmin, xmax, ymin, and ymax.
45: */
46: public void setLimits(double[] limits);
47:
48: }
|