Class LayoutContext

java.lang.Object
guideme.layout.LayoutContext
All Implemented Interfaces:
FontMetrics

public class LayoutContext extends Object implements FontMetrics
  • Constructor Details

    • LayoutContext

      public LayoutContext(FontMetrics fontMetrics)
  • Method Details

    • addLeftFloat

      public void addLeftFloat(LytRect bounds)
    • addRightFloat

      public void addRightFloat(LytRect bounds)
    • getLeftFloatRightEdge

      public OptionalInt getLeftFloatRightEdge()
    • getRightFloatLeftEdge

      public OptionalInt getRightFloatLeftEdge()
    • clearFloats

      public OptionalInt clearFloats(boolean left, boolean right)
    • clearFloatsAbove

      public void clearFloatsAbove(int y)
    • getAdvance

      public float getAdvance(int codePoint, ResolvedTextStyle style)
      Specified by:
      getAdvance in interface FontMetrics
    • getLineHeight

      public int getLineHeight(ResolvedTextStyle style)
      Specified by:
      getLineHeight in interface FontMetrics
    • getNextFloatBottomEdge

      public OptionalInt getNextFloatBottomEdge(int y)
      If there's a float whose bottom edge is below the given y coordinate, return that bottom edge.