25 |
|
|
26 |
/** An interface to buoy layouts. As opposed to Buoy2, here we start by |
/** An interface to buoy layouts. As opposed to Buoy2, here we start by |
27 |
* the idea that we will have several different layouts. |
* the idea that we will have several different layouts. |
28 |
|
* XXX Delayed until all buoys there? Or modify coords? |
29 |
*/ |
*/ |
30 |
|
|
31 |
public interface Buoy3Floater { |
public interface Buoy3Floater { |
37 |
* It is not guaranteed that this runnable will ever be called, if the buoy |
* It is not guaranteed that this runnable will ever be called, if the buoy |
38 |
* layout decides that there is too much crowding. |
* layout decides that there is too much crowding. |
39 |
* @param w,h The width and height, centered around the origin of the coordinate system. |
* @param w,h The width and height, centered around the origin of the coordinate system. |
40 |
|
* @return The new coordinate system. |
41 |
*/ |
*/ |
42 |
void addBuoy(float anchorX, float anchorY, float importance, |
int addBuoy(float anchorX, float anchorY, float importance, |
43 |
Object key, Runnable buoy, float w, float h); |
Object key, float w, float h); |
44 |
|
|
45 |
/** Add the given "buoy" as a central system (the coordinates |
/** Add the given "buoy" as a central system (the coordinates |
46 |
* are not modified except by translation). |
* are not modified except by translation). |
47 |
* This is so that it will be easy to animate |
* This is so that it will be easy to animate |
48 |
* between buoy coord systems and the center. |
* between buoy coord systems and the center. |
49 |
*/ |
*/ |
50 |
void addCentralBuoy(Object key, Runnable buoy); |
int addCentralBuoy(Object key); |
51 |
} |
} |