public class CALayer extends NSObject
Constructor and Description |
---|
CALayer()
The default constructor of the CALayer object.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnimation(CAAnimation animation,
String key)
Add the specified animation object to this CALayer's tree and assigns to
it the specified key.
|
CGPoint |
anchorPoint()
Returns the anchor point of this CALayer.
|
CAAnimation |
animationForKey(String key)
Returns the animation object with the specified key.
|
List<String> |
animationKeys()
Returns a list containing the animation keys of this CALayer.
|
UIView |
delegate()
Returns the delegate for this CALayer.
|
static CALayer |
layer()
Constructs and returns a CALayer object.
|
CALayer |
mask() |
void |
removeAllAnimations()
Removes all animations currently attached to this CALayer.
|
void |
removeAnimationForKey(String key)
Removes the animation object with specified key.
|
void |
renderInContext(CGContext context)
Renders this CALayer and its sublayers into the specified CGContext.
|
void |
setAnchorPoint(CGPoint point)
Sets the anchor point of this CALayer.
|
void |
setDelegate(UIView delegate)
Sets the delegate for this CALayer.
|
void |
setMask(CALayer mask) |
Map<String,Object> |
style()
Returns a dictionary that is used to store optional properties.
|
String |
toString() |
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static CALayer layer()
public void addAnimation(CAAnimation animation, String key)
animation
- The animation object that is being adde to this
CALayer's tree.key
- The key that is assigned to the new animation object added to
this CALayer.public CAAnimation animationForKey(String key)
key
- The key of animation object that is requested.public void removeAllAnimations()
public void removeAnimationForKey(String key)
key
- The key of the animation object that will be removed.public List<String> animationKeys()
public void renderInContext(CGContext context)
context
- The CGContext into which this CALayer and its sublayers
are rendered.public UIView delegate()
public void setDelegate(UIView delegate)
delegate
- The delegate of this CALayer.public void setAnchorPoint(CGPoint point)
point
- The anchor point of this CALayer.public CGPoint anchorPoint()
public Map<String,Object> style()
public CALayer mask()
public void setMask(CALayer mask)
Copyright © 2020. All rights reserved.