Package guideme.layout
Class LayoutContext
java.lang.Object
guideme.layout.LayoutContext
- All Implemented Interfaces:
FontMetrics
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLeftFloat
(LytRect bounds) void
addRightFloat
(LytRect bounds) clearFloats
(boolean left, boolean right) void
clearFloatsAbove
(int y) float
getAdvance
(int codePoint, ResolvedTextStyle style) int
getLineHeight
(ResolvedTextStyle style) getNextFloatBottomEdge
(int y) If there's a float whose bottom edge is below the given y coordinate, return that bottom edge.
-
Constructor Details
-
LayoutContext
-
-
Method Details
-
addLeftFloat
-
addRightFloat
-
getLeftFloatRightEdge
-
getRightFloatLeftEdge
-
clearFloats
-
clearFloatsAbove
public void clearFloatsAbove(int y) -
getAdvance
- Specified by:
getAdvance
in interfaceFontMetrics
-
getLineHeight
- Specified by:
getLineHeight
in interfaceFontMetrics
-
getNextFloatBottomEdge
If there's a float whose bottom edge is below the given y coordinate, return that bottom edge.
-