public class NSTextLayoutManager extends NSObject implements NSSecureCoding, NSTextSelectionDataSource
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSTextLayoutManager.Block_enumerateRenderingAttributesFromLocationReverseUsingBlock |
static interface |
NSTextLayoutManager.Block_enumerateTextLayoutFragmentsFromLocationOptionsUsingBlock |
static interface |
NSTextLayoutManager.Block_enumerateTextSegmentsInRangeTypeOptionsUsingBlock |
static interface |
NSTextLayoutManager.Block_renderingAttributesValidator_ret |
static interface |
NSTextLayoutManager.Block_setRenderingAttributesValidator |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retNSTextSelectionDataSource.Block_enumerateCaretOffsetsInLineFragmentAtLocationUsingBlock, NSTextSelectionDataSource.Block_enumerateContainerBoundariesFromLocationReverseUsingBlock, NSTextSelectionDataSource.Block_enumerateSubstringsFromLocationOptionsUsingBlock| Modifier | Constructor and Description |
|---|---|
protected |
NSTextLayoutManager(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
void |
addRenderingAttributeValueForTextRange(java.lang.String renderingAttribute,
java.lang.Object value,
NSTextRange textRange)
Sets the rendering attribute.
|
static NSTextLayoutManager |
alloc() |
static NSTextLayoutManager |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
long |
baseWritingDirectionAtLocation(NSTextLocation location)
Returns the base writing direction at location.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
NSTextLayoutManagerDelegate |
delegate() |
static java.lang.String |
description_static() |
NSTextRange |
documentRange()
Declares the starting and ending locations for the document.
|
void |
encodeWithCoder(NSCoder coder) |
void |
ensureLayoutForBounds(CGRect bounds)
Performs the layout for filling bounds inside the last text container.
|
void |
ensureLayoutForRange(NSTextRange range)
Performs the layout for textRange.
|
void |
enumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(NSTextLocation location,
NSTextSelectionDataSource.Block_enumerateCaretOffsetsInLineFragmentAtLocationUsingBlock block)
Layout
Enumerates all the caret offset from left to right in visual order.
|
void |
enumerateContainerBoundariesFromLocationReverseUsingBlock(NSTextLocation location,
boolean reverse,
NSTextSelectionDataSource.Block_enumerateContainerBoundariesFromLocationReverseUsingBlock block)
This optional method should be implemented enumerating the text container/page boundary when the text selection data provider supports such a layout functionality.
|
void |
enumerateRenderingAttributesFromLocationReverseUsingBlock(NSTextLocation location,
boolean reverse,
NSTextLayoutManager.Block_enumerateRenderingAttributesFromLocationReverseUsingBlock block)
Enumerates the rendering attributes from location.
|
void |
enumerateSubstringsFromLocationOptionsUsingBlock(NSTextLocation location,
long options,
NSTextSelectionDataSource.Block_enumerateSubstringsFromLocationOptionsUsingBlock block)
Enumerating the textual segment boundaries starting at location.
|
NSTextLocation |
enumerateTextLayoutFragmentsFromLocationOptionsUsingBlock(NSTextLocation location,
long options,
NSTextLayoutManager.Block_enumerateTextLayoutFragmentsFromLocationOptionsUsingBlock block)
Enumerates the text layout fragments starting at textLocation.
|
void |
enumerateTextSegmentsInRangeTypeOptionsUsingBlock(NSTextRange textRange,
long type,
long options,
NSTextLayoutManager.Block_enumerateTextSegmentsInRangeTypeOptionsUsingBlock block)
Enumerates text segments of type in textRange.
|
static long |
hash_static() |
NSTextLayoutManager |
init() |
NSTextLayoutManager |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
void |
invalidateLayoutForRange(NSTextRange range)
Invalidates layout information for textRange
|
void |
invalidateRenderingAttributesForTextRange(NSTextRange textRange)
Invalidates the rendering attributes in textRange.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
NSOperationQueue |
layoutQueue()
If non-nil, it performs layout in the specified queue until estimatedUsageBounds=NO.
|
boolean |
limitsLayoutForSuspiciousContents()
When YES, enables internal security analysis for malicious inputs and activates defensive behaviors.
|
NSTextRange |
lineFragmentRangeForPointInContainerAtLocation(CGPoint point,
NSTextLocation location)
Returns the range of the line fragment containing point inside the coordinate system containing location.
|
static NSDictionary<java.lang.String,?> |
linkRenderingAttributes()
The default set of attributes for rendering NSLinkAttributeName.
|
NSTextLocation |
locationFromLocationWithOffset(NSTextLocation location,
long offset)
Returns a new location from location with offset.
|
static NSTextLayoutManager |
new_objc() |
long |
offsetFromLocationToLocation(NSTextLocation from,
NSTextLocation to)
Returns the offset between from and to.
|
void |
removeRenderingAttributeForTextRange(java.lang.String renderingAttribute,
NSTextRange textRange)
Removes attribute from textRange.
|
NSDictionary<java.lang.String,?> |
renderingAttributesForLinkAtLocation(java.lang.Object link,
NSTextLocation location)
Returns a dictionary of rendering attributes for rendering NSLinkAttributeName.
|
NSTextLayoutManager.Block_renderingAttributesValidator_ret |
renderingAttributesValidator()
A callback block invoked whenever NSTextLayoutManager needs to validate the rendering attributes for the range.
|
void |
replaceContentsInRangeWithAttributedString(NSTextRange range,
NSAttributedString attributedString) |
void |
replaceContentsInRangeWithTextElements(NSTextRange range,
NSArray<? extends NSTextElement> textElements) |
void |
replaceTextContentManager(NSTextContentManager textContentManager)
This method should be used in order to replace an NSTextContentManager with a new one, leaving all related objects intact.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setDelegate_unsafe(NSTextLayoutManagerDelegate value) |
void |
setDelegate(NSTextLayoutManagerDelegate value) |
void |
setLayoutQueue(NSOperationQueue value)
If non-nil, it performs layout in the specified queue until estimatedUsageBounds=NO.
|
void |
setLimitsLayoutForSuspiciousContents(boolean value)
When YES, enables internal security analysis for malicious inputs and activates defensive behaviors.
|
void |
setRenderingAttributesForTextRange(NSDictionary<java.lang.String,?> renderingAttributes,
NSTextRange textRange)
Sets the rendering attributes.
|
void |
setRenderingAttributesValidator(NSTextLayoutManager.Block_setRenderingAttributesValidator value)
A callback block invoked whenever NSTextLayoutManager needs to validate the rendering attributes for the range.
|
void |
setTextContainer(NSTextContainer value)
The text container object providing geometric information for the layout destination.
|
void |
setTextSelectionNavigation(NSTextSelectionNavigation value)
Returns an NSTextSelectionNavigation configured to have the text layout manager as NSTextSelectionDataSource
|
void |
setTextSelections(NSArray<? extends NSTextSelection> value)
An array of NSTextSelections associated by the text layout manager.
|
void |
setUsesFontLeading(boolean value)
If YES, uses the leading as specified by the font.
|
void |
setUsesHyphenation(boolean value)
When YES, NSTextLayoutManager will attempt to hyphenate when wrapping lines.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSTextContainer |
textContainer()
The text container object providing geometric information for the layout destination.
|
NSTextContentManager |
textContentManager()
Pointing to the NSTextContentManager object strongly referencing the text layout manager.
|
NSTextLayoutFragment |
textLayoutFragmentForLocation(NSTextLocation location)
Returns the text layout fragment containing the document location, location.
|
NSTextLayoutFragment |
textLayoutFragmentForPosition(CGPoint position)
Returns the text layout fragment containing position inside the coordinate system for textContainer.
|
long |
textLayoutOrientationAtLocation(NSTextLocation location)
Returns the text layout orientation at location.
|
NSTextRange |
textRangeForSelectionGranularityEnclosingLocation(long selectionGranularity,
NSTextLocation location)
Returns a text range corresponding to selectionGranularity enclosing location.
|
NSTextSelectionNavigation |
textSelectionNavigation()
Returns an NSTextSelectionNavigation configured to have the text layout manager as NSTextSelectionDataSource
|
NSArray<? extends NSTextSelection> |
textSelections()
An array of NSTextSelections associated by the text layout manager.
|
NSTextViewportLayoutController |
textViewportLayoutController()
Returns NSTextViewportLayoutController associated with textContainer.
|
CGRect |
usageBoundsForTextContainer()
The usage bounds for textContainer.
|
boolean |
usesFontLeading()
If YES, uses the leading as specified by the font.
|
boolean |
usesHyphenation()
When YES, NSTextLayoutManager will attempt to hyphenate when wrapping lines.
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected NSTextLayoutManager(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public void addRenderingAttributeValueForTextRange(java.lang.String renderingAttribute,
java.lang.Object value,
NSTextRange textRange)
public static NSTextLayoutManager alloc()
public static NSTextLayoutManager allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public long baseWritingDirectionAtLocation(NSTextLocation location)
NSTextSelectionDataSourcebaseWritingDirectionAtLocation in interface NSTextSelectionDataSourcepublic static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public NSTextLayoutManagerDelegate delegate()
public static java.lang.String description_static()
public NSTextRange documentRange()
NSTextSelectionDataSourcedocumentRange in interface NSTextSelectionDataSourcepublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic void ensureLayoutForBounds(CGRect bounds)
public void ensureLayoutForRange(NSTextRange range)
public void enumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(NSTextLocation location, NSTextSelectionDataSource.Block_enumerateCaretOffsetsInLineFragmentAtLocationUsingBlock block)
NSTextSelectionDataSourceenumerateCaretOffsetsInLineFragmentAtLocationUsingBlock in interface NSTextSelectionDataSourcepublic void enumerateContainerBoundariesFromLocationReverseUsingBlock(NSTextLocation location, boolean reverse, NSTextSelectionDataSource.Block_enumerateContainerBoundariesFromLocationReverseUsingBlock block)
NSTextSelectionDataSourceenumerateContainerBoundariesFromLocationReverseUsingBlock in interface NSTextSelectionDataSourcepublic void enumerateRenderingAttributesFromLocationReverseUsingBlock(NSTextLocation location, boolean reverse, NSTextLayoutManager.Block_enumerateRenderingAttributesFromLocationReverseUsingBlock block)
public void enumerateSubstringsFromLocationOptionsUsingBlock(NSTextLocation location, long options, NSTextSelectionDataSource.Block_enumerateSubstringsFromLocationOptionsUsingBlock block)
NSTextSelectionDataSourceenumerateSubstringsFromLocationOptionsUsingBlock in interface NSTextSelectionDataSourcepublic NSTextLocation enumerateTextLayoutFragmentsFromLocationOptionsUsingBlock(NSTextLocation location, long options, NSTextLayoutManager.Block_enumerateTextLayoutFragmentsFromLocationOptionsUsingBlock block)
public void enumerateTextSegmentsInRangeTypeOptionsUsingBlock(NSTextRange textRange, long type, long options, NSTextLayoutManager.Block_enumerateTextSegmentsInRangeTypeOptionsUsingBlock block)
public static long hash_static()
public NSTextLayoutManager init()
public NSTextLayoutManager initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public void invalidateLayoutForRange(NSTextRange range)
public void invalidateRenderingAttributesForTextRange(NSTextRange textRange)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public NSOperationQueue layoutQueue()
public boolean limitsLayoutForSuspiciousContents()
public NSTextRange lineFragmentRangeForPointInContainerAtLocation(CGPoint point, NSTextLocation location)
NSTextSelectionDataSourcelineFragmentRangeForPointInContainerAtLocation in interface NSTextSelectionDataSourcepublic static NSDictionary<java.lang.String,?> linkRenderingAttributes()
public NSTextLocation locationFromLocationWithOffset(NSTextLocation location, long offset)
NSTextSelectionDataSourcelocationFromLocationWithOffset in interface NSTextSelectionDataSourcepublic static NSTextLayoutManager new_objc()
public long offsetFromLocationToLocation(NSTextLocation from, NSTextLocation to)
NSTextSelectionDataSourceoffsetFromLocationToLocation in interface NSTextSelectionDataSourcepublic void removeRenderingAttributeForTextRange(java.lang.String renderingAttribute,
NSTextRange textRange)
public NSDictionary<java.lang.String,?> renderingAttributesForLinkAtLocation(java.lang.Object link, NSTextLocation location)
public NSTextLayoutManager.Block_renderingAttributesValidator_ret renderingAttributesValidator()
public void replaceContentsInRangeWithAttributedString(NSTextRange range, NSAttributedString attributedString)
public void replaceContentsInRangeWithTextElements(NSTextRange range, NSArray<? extends NSTextElement> textElements)
public void replaceTextContentManager(NSTextContentManager textContentManager)
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setDelegate_unsafe(NSTextLayoutManagerDelegate value)
public void setDelegate(NSTextLayoutManagerDelegate value)
public void setLayoutQueue(NSOperationQueue value)
public void setLimitsLayoutForSuspiciousContents(boolean value)
public void setRenderingAttributesForTextRange(NSDictionary<java.lang.String,?> renderingAttributes, NSTextRange textRange)
public void setRenderingAttributesValidator(NSTextLayoutManager.Block_setRenderingAttributesValidator value)
public void setTextContainer(NSTextContainer value)
public void setTextSelectionNavigation(NSTextSelectionNavigation value)
public void setTextSelections(NSArray<? extends NSTextSelection> value)
public void setUsesFontLeading(boolean value)
public void setUsesHyphenation(boolean value)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic NSTextContainer textContainer()
public NSTextContentManager textContentManager()
public NSTextLayoutFragment textLayoutFragmentForLocation(NSTextLocation location)
public NSTextLayoutFragment textLayoutFragmentForPosition(CGPoint position)
public long textLayoutOrientationAtLocation(NSTextLocation location)
NSTextSelectionDataSourcetextLayoutOrientationAtLocation in interface NSTextSelectionDataSourcepublic NSTextRange textRangeForSelectionGranularityEnclosingLocation(long selectionGranularity, NSTextLocation location)
NSTextSelectionDataSourcetextRangeForSelectionGranularityEnclosingLocation in interface NSTextSelectionDataSourcepublic NSTextSelectionNavigation textSelectionNavigation()
public NSArray<? extends NSTextSelection> textSelections()
public NSTextViewportLayoutController textViewportLayoutController()
public CGRect usageBoundsForTextContainer()
public boolean usesFontLeading()
public boolean usesHyphenation()
public static long version_static()