public class UIFieldBehavior extends UIDynamicBehavior
| Modifier and Type | Class and Description |
|---|---|
static interface |
UIFieldBehavior.Block_fieldWithEvaluationBlock |
UIDynamicBehavior.Block_action_ret, UIDynamicBehavior.Block_setActionNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
UIFieldBehavior(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
void |
addItem(UIDynamicItem item) |
static UIFieldBehavior |
alloc() |
static UIFieldBehavior |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
double |
animationSpeed()
Fields that can be animated can have non zero values.
|
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) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
CGVector |
direction()
The direction of the field.
|
static UIFieldBehavior |
dragField()
Slows an object proportionally to the object’s velocity.
|
static UIFieldBehavior |
electricField()
A force proportional to the charge on the object.
|
double |
falloff()
The falloff exponent used to calculate field strength at a distance.
|
static UIFieldBehavior |
fieldWithEvaluationBlock(UIFieldBehavior.Block_fieldWithEvaluationBlock block)
A field force with a custom force evaluator.
|
static long |
hash_static() |
UIFieldBehavior |
init() |
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) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
NSArray<?> |
items() |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static UIFieldBehavior |
linearGravityFieldWithVector(CGVector direction)
Applies a force in the direction of the vector in the local space.
|
static UIFieldBehavior |
magneticField()
The magnetic field is a uniform field in the positive-z direction (coming out of the screen).
|
double |
minimumRadius()
Minimum radius of effect.
|
static UIFieldBehavior |
new_objc() |
static UIFieldBehavior |
noiseFieldWithSmoothnessAnimationSpeed(double smoothness,
double speed)
A time varying differentiable Perlin simplex noise field.
|
CGPoint |
position()
The position (origin) of the field in the reference coordinate system
|
static UIFieldBehavior |
radialGravityFieldWithPosition(CGPoint position)
Applies a force in the direction of the origin of the field in local space.
|
UIRegion |
region()
The region property is the domain of the field's effect.
|
void |
removeItem(UIDynamicItem item) |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAnimationSpeed(double value)
Fields that can be animated can have non zero values.
|
void |
setDirection(CGVector value)
The direction of the field.
|
void |
setFalloff(double value)
The falloff exponent used to calculate field strength at a distance.
|
void |
setMinimumRadius(double value)
Minimum radius of effect.
|
void |
setPosition(CGPoint value)
The position (origin) of the field in the reference coordinate system
|
void |
setRegion(UIRegion value)
The region property is the domain of the field's effect.
|
void |
setSmoothness(double value)
Fields without a smoothness component will return 0
|
void |
setStrength(double value)
Strength scaling value.
|
static void |
setVersion_static(long aVersion) |
double |
smoothness()
Fields without a smoothness component will return 0
|
static UIFieldBehavior |
springField()
A Hooke’s law force - a force linearly proportional to distance from the center of the field.
|
double |
strength()
Strength scaling value.
|
static org.moe.natj.objc.Class |
superclass_static() |
static UIFieldBehavior |
turbulenceFieldWithSmoothnessAnimationSpeed(double smoothness,
double speed)
Just like Noise, except the strength of the noise is proportional to the velocity of the object in the field.
|
static UIFieldBehavior |
velocityFieldWithVector(CGVector direction)
Uses the supplied velocity vector for any object entering the field’s region of effect.
|
static long |
version_static() |
static UIFieldBehavior |
vortexField()
Applies a force tangential to the direction from the sample point to the field's position.
|
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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static UIFieldBehavior alloc()
public static UIFieldBehavior 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 UIFieldBehavior dragField()
public static UIFieldBehavior electricField()
public static UIFieldBehavior fieldWithEvaluationBlock(UIFieldBehavior.Block_fieldWithEvaluationBlock block)
field - the field being evaluatedposition - The location to evaluate the force atvelocity - The velocity to be considered during force evaluation. Useful for calculating drag.mass - The mass to be taken into account during force evaluationcharge - The charge to be taken into account during force evaluationdeltaTime - The current time steppublic 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 UIFieldBehavior linearGravityFieldWithVector(CGVector direction)
direction - The direction the force is applied in the x,y plane. The length of the direction vector is multiplied by
the field's strength property to get the final calculated force. All components of the direction vector are used to calculate the length.directionpublic static UIFieldBehavior magneticField()
public static UIFieldBehavior new_objc()
public static UIFieldBehavior noiseFieldWithSmoothnessAnimationSpeed(double smoothness, double speed)
smoothness - value of 0 means as noisy as possible, 1 means as smooth as possibleanimationSpeed - is the general field rate of change in Hzsmoothness,
animationSpeedpublic static UIFieldBehavior radialGravityFieldWithPosition(CGPoint position)
position - the origin of the fieldpositionpublic 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 UIFieldBehavior springField()
public static org.moe.natj.objc.Class superclass_static()
public static UIFieldBehavior turbulenceFieldWithSmoothnessAnimationSpeed(double smoothness, double speed)
smoothness - value of 0 means as noisy as possible, 1 means as smooth as possibleanimationSpeed - is the general field rate of change in Hzsmoothness,
animationSpeedpublic static UIFieldBehavior velocityFieldWithVector(CGVector direction)
direction - The directed velocity that will be applied to the body.directionpublic static long version_static()
public static UIFieldBehavior vortexField()
public void addItem(UIDynamicItem item)
public double animationSpeed()
noiseFieldWithSmoothness:smoothness:animationSpeed,
turbulenceFieldWithSmoothness:smoothness:animationSpeedpublic CGVector direction()
linearGravityFieldWithVector:direction,
velocityFieldWithVector:directionpublic double falloff()
minimumRadiuspublic UIFieldBehavior init()
init in class UIDynamicBehaviorpublic NSArray<?> items()
public double minimumRadius()
public CGPoint position()
public UIRegion region()
public void removeItem(UIDynamicItem item)
public void setAnimationSpeed(double value)
noiseFieldWithSmoothness:smoothness:animationSpeed,
turbulenceFieldWithSmoothness:smoothness:animationSpeedpublic void setDirection(CGVector value)
linearGravityFieldWithVector:direction,
velocityFieldWithVector:directionpublic void setFalloff(double value)
minimumRadiuspublic void setMinimumRadius(double value)
public void setPosition(CGPoint value)
public void setRegion(UIRegion value)
public void setSmoothness(double value)
noiseFieldWithSmoothness:smoothness:animationSpeed,
turbulenceFieldWithSmoothness:smoothness:animationSpeedpublic void setStrength(double value)
public double smoothness()
noiseFieldWithSmoothness:smoothness:animationSpeed,
turbulenceFieldWithSmoothness:smoothness:animationSpeedpublic double strength()