45 |
* or <code>GLUE_SHRINK</code>. |
* or <code>GLUE_SHRINK</code>. |
46 |
*/ |
*/ |
47 |
float getGlue(int n, int property); |
float getGlue(int n, int property); |
48 |
|
|
49 |
|
/** Get the number of forced line breaks before the |
50 |
|
* <code>n</code>th box. |
51 |
|
*/ |
52 |
|
int getBreaks(int n); |
53 |
|
|
54 |
void addBox(HBox box); |
void addBox(HBox box); |
55 |
void addGlue(float length, float stretch, float shrink); |
void addGlue(float length, float stretch, float shrink); |
56 |
|
|
57 |
|
/** Add a forced line break at the current position. |
58 |
|
* This is a "logical" line break, i.e. one in the text content, |
59 |
|
* not one created by the line breaker. Line breakers should use |
60 |
|
* <code>HBroken</code> to represent linebroken versions of an |
61 |
|
* <code>HChain</code>. |
62 |
|
*/ |
63 |
|
void addBreak(); |
64 |
|
|
65 |
/** Get the height of a line given the index of the first and the |
/** Get the height of a line given the index of the first and the |
66 |
* index after the last box in that line. The height of the line is |
* index after the last box in that line. The height of the line is |
67 |
* simply the maximum of the heights of the individual boxes at |
* simply the maximum of the heights of the individual boxes at |