Interface FormattedCharSink

All Known Implementing Classes:
Font.StringRenderOutput, StringSplitter.LineBreakFinder, StringSplitter.WidthLimitedCharSink
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FormattedCharSink
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(int pPositionInCurrentSequence, Style pStyle, int pCodePoint)
    Accepts a single code point from a FormattedCharSequence.
  • Method Details

    • accept

      boolean accept(int pPositionInCurrentSequence, Style pStyle, int pCodePoint)
      Accepts a single code point from a FormattedCharSequence.
      Parameters:
      pPositionInCurrentSequence - Contains the relative position of the character in the current sub-sequence. If multiple formatted char sequences have been combined, this value will reset to 0 after each sequence has been fully consumed.
      Returns:
      true to accept more characters, false to stop traversing the sequence.