Interface NSTextLayoutManagerDelegate


  • public interface NSTextLayoutManagerDelegate
    API-Since: 15.0
    • Method Detail

      • textLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes

        @Nullable
        default @Nullable NSDictionary<java.lang.String,​?> textLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes​(@NotNull
                                                                                                                                        @NotNull NSTextLayoutManager textLayoutManager,
                                                                                                                                        @NotNull
                                                                                                                                        @NotNull java.lang.Object link,
                                                                                                                                        @NotNull
                                                                                                                                        @NotNull NSTextLocation location,
                                                                                                                                        @NotNull
                                                                                                                                        @NotNull NSDictionary<java.lang.String,​?> renderingAttributes)
        Rendering attributes Returns a dictionary of rendering attributes for rendering NSLinkAttributeName. Just as other rendering attributes, specifying NSNull removes the attribute from the final attributes used for rendering. It has priority over the general rendering attributes.
      • textLayoutManagerShouldBreakLineBeforeLocationHyphenating

        default boolean textLayoutManagerShouldBreakLineBeforeLocationHyphenating​(@NotNull
                                                                                  @NotNull NSTextLayoutManager textLayoutManager,
                                                                                  @NotNull
                                                                                  @NotNull NSTextLocation location,
                                                                                  boolean hyphenating)
        Layout behavior Invoked while determining the soft line break point. When hyphenating=NO, NSTextLayoutManager tries to find the next line break opportunity before location. When hyphenating=YES, it is an auto-hyphenation point.
      • textLayoutManagerTextLayoutFragmentForLocationInTextElement

        @NotNull
        default @NotNull NSTextLayoutFragment textLayoutManagerTextLayoutFragmentForLocationInTextElement​(@NotNull
                                                                                                          @NotNull NSTextLayoutManager textLayoutManager,
                                                                                                          @NotNull
                                                                                                          @NotNull NSTextLocation location,
                                                                                                          @NotNull
                                                                                                          @NotNull NSTextElement textElement)
        NSTextLayoutFragment management Returns NSTextLayoutFragment for location in textElement. NSTextLayoutManagerDelegate could provide an NSTextLayoutFragment specialized for an NSTextElement subclass targeted for the rendering surface.