5 |
|
|
6 |
/** A view defined as a region of a 2D plane. |
/** A view defined as a region of a 2D plane. |
7 |
*/ |
*/ |
8 |
public interface View2D { |
public abstract class View2D { |
9 |
/** Render this view. |
/** Render this view. |
10 |
* There are several coordinate systems here, due to the situation; let's |
* There are several coordinate systems here, due to the situation; let's |
11 |
* clarify. |
* clarify. |
32 |
* (again, the box of this transformation) |
* (again, the box of this transformation) |
33 |
* to the plane/paper/view2d coordinates. |
* to the plane/paper/view2d coordinates. |
34 |
*/ |
*/ |
35 |
void render(VobScene vs, |
public abstract void render(VobScene vs, |
36 |
Object plane, |
Object plane, |
37 |
int matchingParent, |
int matchingParent, |
38 |
int box2screen, int box2paper |
int box2screen, int box2paper |
40 |
|
|
41 |
/** Get the size of this plane. |
/** Get the size of this plane. |
42 |
* If the plane is infinite, wh[0] < 1 shall obtain. |
* If the plane is infinite, wh[0] < 1 shall obtain. |
43 |
|
* Default implementation: infinite. |
44 |
*/ |
*/ |
45 |
void getSize(Object plane, float[] wh); |
public void getSize(Object plane, float[] wh) { |
46 |
|
wh[0] = -1; |
47 |
|
wh[1] = -1; |
48 |
|
} |
49 |
} |
} |