org.rococoa.cocoa.appkit.protocols
Interface NSAnimatablePropertyContainer
- All Known Implementing Classes:
- ABPeoplePickerView, AMWorkflowView, NSBox, NSBrowser, NSButton, NSClipView, NSCollectionView, NSColorPanel, NSColorWell, NSComboBox, NSControl, NSDatePicker, NSFontPanel, NSForm, NSImageView, NSLevelIndicator, NSMatrix, NSMenuView, NSMovieView, NSOpenGLView, NSOpenPanel, NSOutlineView, NSPanel, NSPathControl, NSPopUpButton, NSPredicateEditor, NSProgressIndicator, NSQuickDrawView, NSRuleEditor, NSRulerView, NSSavePanel, NSScroller, NSScrollView, NSSearchField, NSSecureTextField, NSSegmentedControl, NSSlider, NSSplitView, NSStepper, NSTableHeaderView, NSTableView, NSTabView, NSText, NSTextField, NSTextView, NSTokenField, NSView, NSWindow, QTCaptureView, QTMovieView, ScreenSaverView, SFAuthorizationView, SFCertificatePanel, SFCertificateTrustPanel, SFCertificateView, SFChooseIdentityPanel, SFKeychainSavePanel, SFKeychainSettingsPanel, WebFrameView, WebView
public interface NSAnimatablePropertyContainer
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.
Method Summary |
NSObject |
animationForKey(NSString key)
When the occurrence specified by "key" fires for an object, this method is consulted to find the animation, if any, that should be performed in response. |
NSDictionary |
animations()
An animatable property container's optional "animations" dictionary maps NSString keys to CAAnimation values. |
NSObject |
animator()
Returns a proxy object for the receiver that can be used to initiate implied animation of property changes. |
void |
setAnimations(NSDictionary dict)
|
_CLASS_
static final NSAnimatablePropertyContainer._class_ _CLASS_
animator
NSObject animator()
- Returns a proxy object for the receiver that can be used to initiate implied animation of property changes. An object's "animator" should be treated as if it was the object itself, and may be passed to any code that accepts the object as a parameter. Sending of KVC-compliant "set" messages to the proxy will trigger animation for automatically animated properties of its target object, if the active NSAnimationContext in the current thread has a duration value greater than zero, and an animation to use for the property key is found by the -animationForKey: search mechanism defined below. An object's automatically animated properties are those for which [theObject animationForKey:] finds and returns an CAAnimation instead of nil, often because [[theObject class] defaultAnimationForKey:] specifies a default animation for the key.
It's perfectly valid to set a new value for a property for which an animation is currently in progress; this simply sets a new target value for that property, with animation to the new target proceeding from whatever current value the property has reached. An in-flight property animation can be stopped by setting a new value for the property with 0.0 as the surrounding NSAnimationContext's duration value.
Original signature : -(id)animator
animations
NSDictionary animations()
- An animatable property container's optional "animations" dictionary maps NSString keys to CAAnimation values. When an occurrence matching the key fires for the view, -animationForKey: first looks in this dictionary for an animation to execute in response. Typically, the key will name a property of the object whose value has just changed, but it may instead specify a special event trigger (NSAnimationTriggerOrderIn or NSAnimationTiggerOrderOut).
Original signature : -(NSDictionary*)animations
setAnimations
void setAnimations(NSDictionary dict)
animationForKey
NSObject animationForKey(NSString key)
- When the occurrence specified by "key" fires for an object, this method is consulted to find the animation, if any, that should be performed in response. Like its counterpart, -[CALayer actionForKey:], this method is a funnel point that defines the order in which the search for an animation proceeds, and is not one that clients would typically need to override. It first checks the receiver's "animations" dictionary, then falls back to +defaultAnimationForKey: for the receiver's class.
Original signature : -(id)animationForKey:(NSString*)