Package apple.uikit
Class NSMutableParagraphStyle
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.NSParagraphStyle
-
- apple.uikit.NSMutableParagraphStyle
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSMutableCopying,NSSecureCoding,NSObject
public class NSMutableParagraphStyle extends NSParagraphStyle
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSMutableParagraphStyle(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()voidaddTabStop(NSTextTab anObject)longalignment()static NSMutableParagraphStylealloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanallowsDefaultTighteningForTruncation()Tightens inter-character spacing in attempt to fit lines wider than the available space if the line break mode is one of the truncation modes before starting to truncate.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)longbaseWritingDirection()static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static NSParagraphStyledefaultParagraphStyle()doubledefaultTabInterval()The default tab interval used for locations beyond the last element in tabStopsstatic longdefaultWritingDirectionForLanguage(java.lang.String languageName)static java.lang.Stringdescription_static()doublefirstLineHeadIndent()Distance from margin to edge appropriate for text directionstatic longhash_static()doubleheadIndent()Distance from margin to front edge of paragraphfloathyphenationFactor()Specifies the threshold for hyphenation.NSMutableParagraphStyleinit()NSMutableParagraphStyleinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)longlineBreakMode()longlineBreakStrategy()Specifies the line break strategies that may be used for laying out the paragraph.doublelineHeightMultiple()Natural line height is multiplied by this factor (if positive) before being constrained by minimum and maximum line height.doublelineSpacing()"Leading": distance between the bottom of one line fragment and top of next (applied between lines in the same container).doublemaximumLineHeight()0 implies no maximum.doubleminimumLineHeight()Line height is the distance from bottom of descenders to top of ascenders; basically the line fragment height.static java.lang.Objectnew_objc()doubleparagraphSpacing()Distance between the bottom of this paragraph and top of next (or the beginning of its paragraphSpacingBefore, if any).doubleparagraphSpacingBefore()Distance between the bottom of the previous paragraph (or the end of its paragraphSpacing, if any) and the top of this paragraph.voidremoveTabStop(NSTextTab anObject)static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAlignment(long value)voidsetAllowsDefaultTighteningForTruncation(boolean value)voidsetBaseWritingDirection(long value)voidsetDefaultTabInterval(double value)voidsetFirstLineHeadIndent(double value)voidsetHeadIndent(double value)voidsetHyphenationFactor(float value)voidsetLineBreakMode(long value)voidsetLineBreakStrategy(long value)voidsetLineHeightMultiple(double value)voidsetLineSpacing(double value)voidsetMaximumLineHeight(double value)voidsetMinimumLineHeight(double value)voidsetParagraphSpacing(double value)voidsetParagraphSpacingBefore(double value)voidsetParagraphStyle(NSParagraphStyle obj)voidsetTabStops(NSArray<? extends NSTextTab> value)voidsetTailIndent(double value)static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()NSArray<? extends NSTextTab>tabStops()An array of NSTextTabs.doubletailIndent()Distance from margin to back edge of paragraph; if negative or 0, from other marginstatic longversion_static()-
Methods inherited from class apple.uikit.NSParagraphStyle
copyWithZone, encodeWithCoder, mutableCopyWithZone
-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSMutableParagraphStyle alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
defaultParagraphStyle
public static NSParagraphStyle defaultParagraphStyle()
-
defaultWritingDirectionForLanguage
public static long defaultWritingDirectionForLanguage(java.lang.String languageName)
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
version_static
public static long version_static()
-
addTabStop
public void addTabStop(NSTextTab anObject)
-
alignment
public long alignment()
- Overrides:
alignmentin classNSParagraphStyle
-
allowsDefaultTighteningForTruncation
public boolean allowsDefaultTighteningForTruncation()
Description copied from class:NSParagraphStyleTightens inter-character spacing in attempt to fit lines wider than the available space if the line break mode is one of the truncation modes before starting to truncate. NO by default. The maximum amount of tightening performed is determined by the system based on contexts such as font, line width, etc.- Overrides:
allowsDefaultTighteningForTruncationin classNSParagraphStyle
-
baseWritingDirection
public long baseWritingDirection()
- Overrides:
baseWritingDirectionin classNSParagraphStyle
-
defaultTabInterval
public double defaultTabInterval()
Description copied from class:NSParagraphStyleThe default tab interval used for locations beyond the last element in tabStops- Overrides:
defaultTabIntervalin classNSParagraphStyle
-
firstLineHeadIndent
public double firstLineHeadIndent()
Description copied from class:NSParagraphStyleDistance from margin to edge appropriate for text direction- Overrides:
firstLineHeadIndentin classNSParagraphStyle
-
headIndent
public double headIndent()
Description copied from class:NSParagraphStyleDistance from margin to front edge of paragraph- Overrides:
headIndentin classNSParagraphStyle
-
hyphenationFactor
public float hyphenationFactor()
Description copied from class:NSParagraphStyleSpecifies the threshold for hyphenation. Valid values lie between 0.0 and 1.0 inclusive. Hyphenation will be attempted when the ratio of the text width as broken without hyphenation to the width of the line fragment is less than the hyphenation factor. When this takes on its default value of 0.0, the layout manager's hyphenation factor is used instead. When both are 0.0, hyphenation is disabled.- Overrides:
hyphenationFactorin classNSParagraphStyle
-
init
public NSMutableParagraphStyle init()
- Overrides:
initin classNSParagraphStyle
-
initWithCoder
public NSMutableParagraphStyle initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classNSParagraphStyle
-
lineBreakMode
public long lineBreakMode()
- Overrides:
lineBreakModein classNSParagraphStyle
-
lineHeightMultiple
public double lineHeightMultiple()
Description copied from class:NSParagraphStyleNatural line height is multiplied by this factor (if positive) before being constrained by minimum and maximum line height.- Overrides:
lineHeightMultiplein classNSParagraphStyle
-
lineSpacing
public double lineSpacing()
Description copied from class:NSParagraphStyle"Leading": distance between the bottom of one line fragment and top of next (applied between lines in the same container). This value is included in the line fragment heights in layout manager.- Overrides:
lineSpacingin classNSParagraphStyle
-
maximumLineHeight
public double maximumLineHeight()
Description copied from class:NSParagraphStyle0 implies no maximum.- Overrides:
maximumLineHeightin classNSParagraphStyle
-
minimumLineHeight
public double minimumLineHeight()
Description copied from class:NSParagraphStyleLine height is the distance from bottom of descenders to top of ascenders; basically the line fragment height. Does not include lineSpacing (which is added after this computation).- Overrides:
minimumLineHeightin classNSParagraphStyle
-
paragraphSpacing
public double paragraphSpacing()
Description copied from class:NSParagraphStyleDistance between the bottom of this paragraph and top of next (or the beginning of its paragraphSpacingBefore, if any).- Overrides:
paragraphSpacingin classNSParagraphStyle
-
paragraphSpacingBefore
public double paragraphSpacingBefore()
Description copied from class:NSParagraphStyleDistance between the bottom of the previous paragraph (or the end of its paragraphSpacing, if any) and the top of this paragraph.- Overrides:
paragraphSpacingBeforein classNSParagraphStyle
-
removeTabStop
public void removeTabStop(NSTextTab anObject)
-
setAlignment
public void setAlignment(long value)
-
setAllowsDefaultTighteningForTruncation
public void setAllowsDefaultTighteningForTruncation(boolean value)
-
setBaseWritingDirection
public void setBaseWritingDirection(long value)
-
setDefaultTabInterval
public void setDefaultTabInterval(double value)
-
setFirstLineHeadIndent
public void setFirstLineHeadIndent(double value)
-
setHeadIndent
public void setHeadIndent(double value)
-
setHyphenationFactor
public void setHyphenationFactor(float value)
-
setLineBreakMode
public void setLineBreakMode(long value)
-
setLineHeightMultiple
public void setLineHeightMultiple(double value)
-
setLineSpacing
public void setLineSpacing(double value)
-
setMaximumLineHeight
public void setMaximumLineHeight(double value)
-
setMinimumLineHeight
public void setMinimumLineHeight(double value)
-
setParagraphSpacing
public void setParagraphSpacing(double value)
-
setParagraphSpacingBefore
public void setParagraphSpacingBefore(double value)
-
setParagraphStyle
public void setParagraphStyle(NSParagraphStyle obj)
-
setTailIndent
public void setTailIndent(double value)
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding- Overrides:
_supportsSecureCodingin classNSParagraphStyle
-
tabStops
public NSArray<? extends NSTextTab> tabStops()
Description copied from class:NSParagraphStyleAn array of NSTextTabs. Contents should be ordered by location. The default value is an array of 12 left-aligned tabs at 28pt interval- Overrides:
tabStopsin classNSParagraphStyle
-
tailIndent
public double tailIndent()
Description copied from class:NSParagraphStyleDistance from margin to back edge of paragraph; if negative or 0, from other margin- Overrides:
tailIndentin classNSParagraphStyle
-
lineBreakStrategy
public long lineBreakStrategy()
Description copied from class:NSParagraphStyleSpecifies the line break strategies that may be used for laying out the paragraph. The default value is NSLineBreakStrategyNone.- Overrides:
lineBreakStrategyin classNSParagraphStyle
-
setLineBreakStrategy
public void setLineBreakStrategy(long value)
-
-