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, size
protected int begin
protected int end
int followingSize()
Layouter.StreamToken
followingSize
in class Layouter.StreamToken
boolean followingSizeKnown()
Layouter.StreamToken
followingSizeKnown
in class Layouter.StreamToken
void setEnd()
Layouter.StreamToken
setEnd
in class Layouter.StreamToken
void setInfiniteSize()
Layouter.StreamToken
setInfiniteSize
in class Layouter.StreamToken