View Javadoc

1   package fr.ove.openmath.jome.ctrlview.bidim;
2   
3   import java.awt.Point;
4   
5   /***
6   * Interface that must implement all objects that want to be located.
7   *
8   * @author © 1999 DIRAT Laurent
9   * @version 2.0 29/06/1999
10  */
11  public interface Localisable {
12      /***
13      * Sets the x-location of the instance.
14      * @param x the x-location of the instance.
15      */
16      public void setX(int x);
17      
18      /***
19      * Returns the x-location of the instance.
20      */
21      public int getX();
22      
23      /***
24      * Sets the y-location of the instance.
25      * @param y the y-location of the instance.
26      */
27      public void setY(int y);
28      
29      /***
30      * Returns the y-location of the instance.
31      */
32      public int getY();
33      
34      /***
35      * Sets the location of the instance.
36      * @param x the x-location of the instance.
37      * @param y the y-location of the instance.
38      */
39      public void setLocation(int x, int y);
40      
41      /***
42      * Sets the location of the instance.
43      * @param location the location of the instance.
44      */
45      public void setLocation(Point location);
46      
47      /***
48      * Returns the location of the instance.
49      * @return A <CODE>Point</CODE> representing the location of the instance.
50      */
51      public Point getLocation();
52  }