Class NSLineBreakStrategy


  • public final class NSLineBreakStrategy
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long HangulWordPriority
      When specified, it prohibits breaking between Hangul characters.
      static long None
      Don't use any line break strategies
      static long PushOut
      Use the push out line break strategy.
      static long Standard
      Use the same configuration of line break strategies that the system uses for standard UI labels.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • None

        public static final long None
        Don't use any line break strategies
        See Also:
        Constant Field Values
      • PushOut

        public static final long PushOut
        Use the push out line break strategy. This strategy allows the text system to "push out" individual lines by some number of words to avoid an orphan word on the last line of the paragraph. The current implementation usually pushes out the last line by a single word.
        See Also:
        Constant Field Values
      • HangulWordPriority

        public static final long HangulWordPriority
        When specified, it prohibits breaking between Hangul characters. It is the preferable typesetting strategy for the modern Korean documents suitable for UI strings.
        See Also:
        Constant Field Values
      • Standard

        public static final long Standard
        Use the same configuration of line break strategies that the system uses for standard UI labels. This set of line break strategies is optimized for displaying shorter strings that are common in UI labels and may not be suitable for large amounts of text.
        See Also:
        Constant Field Values