private abstract class Layouter.SizeCalculatingToken extends Layouter.StreamToken
| Modifier and Type | Field and Description |
|---|---|
protected int |
begin |
protected int |
end
negative means that end has not been set yet.
|
| Constructor and Description |
|---|
SizeCalculatingToken() |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
followingSize()
Return the `section' size.
|
(package private) boolean |
followingSizeKnown()
Returns whether the followingSize is already known.
|
(package private) void |
setEnd()
Indicate that the corresponding next BreakToken or
CloseBlockToken has been encountered.
|
(package private) void |
setInfiniteSize()
Indicate that the followingSize is guaranteed to be larger than
the line width, and that it can thus be set to some large value.
|
print, sizeprotected int begin
protected int end
int followingSize()
Layouter.StreamTokenfollowingSize in class Layouter.StreamTokenboolean followingSizeKnown()
Layouter.StreamTokenfollowingSizeKnown in class Layouter.StreamTokenvoid setEnd()
Layouter.StreamTokensetEnd in class Layouter.StreamTokenvoid setInfiniteSize()
Layouter.StreamTokensetInfiniteSize in class Layouter.StreamToken