public class UIDynamicItemBehavior extends UIDynamicBehavior
UIDynamicBehavior.Block_action_ret, UIDynamicBehavior.Block_setActionNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
UIDynamicItemBehavior(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
void |
addAngularVelocityForItem(double velocity,
UIDynamicItem item)
The angular velocity, expressed in radians per second, that you want to add to the specified dynamic item
If called before being associated to an animator, the behavior will accumulate values until being associated to an animator
|
void |
addItem(UIDynamicItem item) |
void |
addLinearVelocityForItem(CGPoint velocity,
UIDynamicItem item)
The linear velocity, expressed in points per second, that you want to add to the specified dynamic item
If called before being associated to an animator, the behavior will accumulate values until being associated to an animator
|
static UIDynamicItemBehavior |
alloc() |
static UIDynamicItemBehavior |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowsRotation()
force an item to never rotate
|
double |
angularResistance()
0: no angular velocity damping
|
double |
angularVelocityForItem(UIDynamicItem item) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
double |
charge()
Specifies the charge associated with the item behavior.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
double |
density()
1 by default
|
static java.lang.String |
description_static() |
double |
elasticity()
Usually between 0 (inelastic) and 1 (collide elastically)
|
double |
friction()
0 being no friction between objects slide along each other
|
static long |
hash_static() |
UIDynamicItemBehavior |
init() |
UIDynamicItemBehavior |
initWithItems(NSArray<?> items) |
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) |
boolean |
isAnchored()
If an item is anchored, it can participate in collisions, but will not exhibit
any dynamic response.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
NSArray<?> |
items() |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
CGPoint |
linearVelocityForItem(UIDynamicItem item) |
static UIDynamicItemBehavior |
new_objc() |
void |
removeItem(UIDynamicItem item) |
double |
resistance()
0: no velocity damping
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAllowsRotation(boolean value)
force an item to never rotate
|
void |
setAnchored(boolean value)
If an item is anchored, it can participate in collisions, but will not exhibit
any dynamic response.
|
void |
setAngularResistance(double value)
0: no angular velocity damping
|
void |
setCharge(double value)
Specifies the charge associated with the item behavior.
|
void |
setDensity(double value)
1 by default
|
void |
setElasticity(double value)
Usually between 0 (inelastic) and 1 (collide elastically)
|
void |
setFriction(double value)
0 being no friction between objects slide along each other
|
void |
setResistance(double value)
0: no velocity damping
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
action, addChildBehavior, childBehaviors, dynamicAnimator, removeChildBehavior, setAction, willMoveToAnimatoraccessibilityActivate, 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 UIDynamicItemBehavior(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static UIDynamicItemBehavior alloc()
public static UIDynamicItemBehavior allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public 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 static java.lang.String description_static()
public static long hash_static()
public 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 static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static UIDynamicItemBehavior new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public void addAngularVelocityForItem(double velocity,
UIDynamicItem item)
public void addItem(UIDynamicItem item)
public void addLinearVelocityForItem(CGPoint velocity, UIDynamicItem item)
public boolean allowsRotation()
public double angularResistance()
public double angularVelocityForItem(UIDynamicItem item)
public double charge()
public double density()
public double elasticity()
public double friction()
public UIDynamicItemBehavior init()
init in class UIDynamicBehaviorpublic UIDynamicItemBehavior initWithItems(NSArray<?> items)
public boolean isAnchored()
public void setAnchored(boolean value)
public NSArray<?> items()
public CGPoint linearVelocityForItem(UIDynamicItem item)
public void removeItem(UIDynamicItem item)
public double resistance()
public void setAllowsRotation(boolean value)
public void setAngularResistance(double value)
public void setCharge(double value)
public void setDensity(double value)
public void setElasticity(double value)
public void setFriction(double value)
public void setResistance(double value)