4 |
import org.nongnu.libvob.VobScene; |
import org.nongnu.libvob.VobScene; |
5 |
|
|
6 |
/** A view defined as a region of a 2D plane. |
/** A view defined as a region of a 2D plane. |
7 |
|
* Examples: A PP canvas; an image; a PDF article; |
8 |
|
* an HTML file rendered into a 2D plane. |
9 |
*/ |
*/ |
10 |
public abstract class View2D { |
public abstract class View2D { |
11 |
/** Render this view. |
/** Render this view. |
12 |
|
* The view is a rectangular area of the whole 2D plane. |
13 |
|
* (For PP canvases, which are infinitely large, we |
14 |
|
* could never render the whole plane.) |
15 |
|
* <p> |
16 |
|
* |
17 |
|
* |
18 |
* There are several coordinate systems here, due to the situation; let's |
* There are several coordinate systems here, due to the situation; let's |
19 |
* clarify. |
* clarify. |
20 |
* Notate screen coordinates by x, |
* Notate screen coordinates by x, |
47 |
); |
); |
48 |
|
|
49 |
/** Get the size of this plane. |
/** Get the size of this plane. |
50 |
* If the plane is infinite, wh[0] < 1 shall obtain. |
* If the plane is infinite, wh[0] < 1 shall |
51 |
|
* <a href="http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=obtain">obtain</a>. |
52 |
* Default implementation: infinite. |
* Default implementation: infinite. |
53 |
*/ |
*/ |
54 |
public void getSize(Object plane, float[] wh) { |
public void getSize(Object plane, float[] wh) { |