Package apple.uikit
Class UIAttachmentBehavior
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIDynamicBehavior
-
- apple.uikit.UIAttachmentBehavior
-
- All Implemented Interfaces:
NSObject
public class UIAttachmentBehavior extends UIDynamicBehavior
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.uikit.UIDynamicBehavior
UIDynamicBehavior.Block_action_ret, UIDynamicBehavior.Block_setAction
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIAttachmentBehavior(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static UIAttachmentBehavioralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)CGPointanchorPoint()longattachedBehaviorType()UIFloatRangeattachmentRange()default is UIFloatRangeInfinitestatic booleanautomaticallyNotifiesObserversForKey(java.lang.String key)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()doubledamping()1: critical dampingstatic java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static java.lang.ObjectfixedAttachmentWithItemAttachedToItemAttachmentAnchor(UIDynamicItem item1, UIDynamicItem item2, CGPoint point)A fixed attachment fuses two dynamic items together at a reference point.doublefrequency()in HertzdoublefrictionTorque()default is 0.0static longhash_static()UIAttachmentBehaviorinit()UIAttachmentBehaviorinitWithItemAttachedToAnchor(UIDynamicItem item, CGPoint point)UIAttachmentBehaviorinitWithItemAttachedToItem(UIDynamicItem item1, UIDynamicItem item2)UIAttachmentBehaviorinitWithItemOffsetFromCenterAttachedToAnchor(UIDynamicItem item, UIOffset offset, CGPoint point)UIAttachmentBehaviorinitWithItemOffsetFromCenterAttachedToItemOffsetFromCenter(UIDynamicItem item1, UIOffset offset1, UIDynamicItem item2, UIOffset offset2)static 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)NSArray<?>items()static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)doublelength()static java.lang.ObjectlimitAttachmentWithItemOffsetFromCenterAttachedToItemOffsetFromCenter(UIDynamicItem item1, UIOffset offset1, UIDynamicItem item2, UIOffset offset2)A limit attachment imposes a maximum distance between two dynamic items, as if they were connected by a rope.static java.lang.Objectnew_objc()static java.lang.ObjectpinAttachmentWithItemAttachedToItemAttachmentAnchor(UIDynamicItem item1, UIDynamicItem item2, CGPoint point)A pin attachment allows two dynamic items to independently rotate around the anchor point as if pinned together.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAnchorPoint(CGPoint value)voidsetAttachmentRange(UIFloatRange value)default is UIFloatRangeInfinitevoidsetDamping(double value)1: critical dampingvoidsetFrequency(double value)in HertzvoidsetFrictionTorque(double value)default is 0.0voidsetLength(double value)static voidsetVersion_static(long aVersion)static java.lang.ObjectslidingAttachmentWithItemAttachedToItemAttachmentAnchorAxisOfTranslation(UIDynamicItem item1, UIDynamicItem item2, CGPoint point, CGVector axis)A sliding attachment allows for relative translation of two items along a specified axis with respect to the anchor point.static java.lang.ObjectslidingAttachmentWithItemAttachmentAnchorAxisOfTranslation(UIDynamicItem item, CGPoint point, CGVector axis)A sliding attachment allows for translation of the item along a specified axis with respect to the anchor point.static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.uikit.UIDynamicBehavior
action, addChildBehavior, childBehaviors, dynamicAnimator, removeChildBehavior, setAction, willMoveToAnimator
-
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 UIAttachmentBehavior 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()
-
description_static
public static java.lang.String description_static()
-
fixedAttachmentWithItemAttachedToItemAttachmentAnchor
public static java.lang.Object fixedAttachmentWithItemAttachedToItemAttachmentAnchor(UIDynamicItem item1, UIDynamicItem item2, CGPoint point)
A fixed attachment fuses two dynamic items together at a reference point. Fixed attachments are useful for creating complex shapes that can be broken apart later.- Parameters:
item1- The first of two dynamic items connected by the attachment behavior.item2- The second of two dynamic items connected by the attachment behavior.point- The point for which each item will be attached. The anchor point will be converted to each items local corrdinate system.
-
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)
-
limitAttachmentWithItemOffsetFromCenterAttachedToItemOffsetFromCenter
public static java.lang.Object limitAttachmentWithItemOffsetFromCenterAttachedToItemOffsetFromCenter(UIDynamicItem item1, UIOffset offset1, UIDynamicItem item2, UIOffset offset2)
A limit attachment imposes a maximum distance between two dynamic items, as if they were connected by a rope.- Parameters:
item1- The first of two dynamic items connected by the attachment behavior.offset1- The point, within the dynamic item and described as an offset from its center point, for the attachment behavior.item2- The second of two dynamic items connected by the attachment behavior.offset2- The point, within the dynamic item and described as an offset from its center point, for the attachment behavior.- See Also:
length()
-
new_objc
public static java.lang.Object new_objc()
-
pinAttachmentWithItemAttachedToItemAttachmentAnchor
public static java.lang.Object pinAttachmentWithItemAttachedToItemAttachmentAnchor(UIDynamicItem item1, UIDynamicItem item2, CGPoint point)
A pin attachment allows two dynamic items to independently rotate around the anchor point as if pinned together. You can configure how far the two objects may rotate and the resistance to rotation- Parameters:
item1- The first of two dynamic items connected by the attachment behavior.item2- The second of two dynamic items connected by the attachment behavior.point- The point for which each item will be attached. The anchor point will be converted to each items local corrdinate system
-
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)
-
slidingAttachmentWithItemAttachedToItemAttachmentAnchorAxisOfTranslation
public static java.lang.Object slidingAttachmentWithItemAttachedToItemAttachmentAnchorAxisOfTranslation(UIDynamicItem item1, UIDynamicItem item2, CGPoint point, CGVector axis)
A sliding attachment allows for relative translation of two items along a specified axis with respect to the anchor point. A sliding attachment prevents all relative rotation of the dynamic items.- Parameters:
item1- The first of two dynamic items connected by the attachment behavior.item2- The second of two dynamic items connected by the attachment behavior.point- The point for which each item will be attached. The anchor point will be converted to each items local corrdinate system.axis- Axis of allowed relative translation between local anchor point. Must be a unit vector.
-
slidingAttachmentWithItemAttachmentAnchorAxisOfTranslation
public static java.lang.Object slidingAttachmentWithItemAttachmentAnchorAxisOfTranslation(UIDynamicItem item, CGPoint point, CGVector axis)
A sliding attachment allows for translation of the item along a specified axis with respect to the anchor point. A sliding attachment prevents all relative rotation of the dynamic items.- Parameters:
item1- The dynamic item connected by the attachment behavior.point- The point for the item will be anchored by the attachment.axis- Axis of allowed translation for the item. Must be a unit vector.
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
anchorPoint
public CGPoint anchorPoint()
-
attachedBehaviorType
public long attachedBehaviorType()
-
attachmentRange
public UIFloatRange attachmentRange()
default is UIFloatRangeInfinite
-
damping
public double damping()
1: critical damping
-
frequency
public double frequency()
in Hertz
-
frictionTorque
public double frictionTorque()
default is 0.0
-
init
public UIAttachmentBehavior init()
- Overrides:
initin classUIDynamicBehavior
-
initWithItemAttachedToAnchor
public UIAttachmentBehavior initWithItemAttachedToAnchor(UIDynamicItem item, CGPoint point)
-
initWithItemAttachedToItem
public UIAttachmentBehavior initWithItemAttachedToItem(UIDynamicItem item1, UIDynamicItem item2)
-
initWithItemOffsetFromCenterAttachedToAnchor
public UIAttachmentBehavior initWithItemOffsetFromCenterAttachedToAnchor(UIDynamicItem item, UIOffset offset, CGPoint point)
-
initWithItemOffsetFromCenterAttachedToItemOffsetFromCenter
public UIAttachmentBehavior initWithItemOffsetFromCenterAttachedToItemOffsetFromCenter(UIDynamicItem item1, UIOffset offset1, UIDynamicItem item2, UIOffset offset2)
-
items
public NSArray<?> items()
-
length
public double length()
-
setAnchorPoint
public void setAnchorPoint(CGPoint value)
-
setAttachmentRange
public void setAttachmentRange(UIFloatRange value)
default is UIFloatRangeInfinite
-
setDamping
public void setDamping(double value)
1: critical damping
-
setFrequency
public void setFrequency(double value)
in Hertz
-
setFrictionTorque
public void setFrictionTorque(double value)
default is 0.0
-
setLength
public void setLength(double value)
-
-