32 |
* an HTML file rendered into a 2D plane. |
* an HTML file rendered into a 2D plane. |
33 |
*/ |
*/ |
34 |
public abstract class View2D { |
public abstract class View2D { |
35 |
|
|
36 |
|
/** An anchor: a given node / location on a given plane. |
37 |
|
*/ |
38 |
|
static public class Anchor { |
39 |
|
public Anchor(Object plane, float x, |
40 |
|
float y, |
41 |
|
float w, |
42 |
|
float h, Object node) { |
43 |
|
this.plane = plane; |
44 |
|
this.x = x; |
45 |
|
this.y = y; |
46 |
|
this.w = w; |
47 |
|
this.h = h; |
48 |
|
this.node = node; |
49 |
|
} |
50 |
|
public final Object plane; |
51 |
|
public final float x, y, w, h; |
52 |
|
public final Object node; |
53 |
|
} |
54 |
|
|
55 |
/** Render this view. |
/** Render this view. |
56 |
* The view is a rectangular area of the whole 2D plane. |
* The view is a rectangular area of the whole 2D plane. |
57 |
* (For PP canvases, which are infinitely large, we |
* (For PP canvases, which are infinitely large, we |