39 |
} |
} |
40 |
} |
} |
41 |
|
|
42 |
private static class SpanPage { |
public static class SpanPage { |
43 |
/** The consumer inside which this page is loaded. |
/** The consumer inside which this page is loaded. |
44 |
*/ |
*/ |
45 |
private MipzipMemoryConsumer consumer; |
private MipzipMemoryConsumer consumer; |
51 |
|
|
52 |
/** The width and height in pagespan units of the real page. |
/** The width and height in pagespan units of the real page. |
53 |
*/ |
*/ |
54 |
int w, h; |
public final int w, h; |
55 |
|
|
56 |
float getX(int spx) { |
float getX(float spx) { |
57 |
return spx / (float)w * x1; |
return spx / (float)w * x1; |
58 |
} |
} |
59 |
float getY(int spy) { |
float getY(float spy) { |
60 |
return spy / (float)h * y1; |
return spy / (float)h * y1; |
61 |
} |
} |
62 |
|
|