public class CALayer extends NSObject implements NSSecureCoding, CAMediaTiming
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CALayer(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
CAAction |
actionForKey(java.lang.String event)
Returns the action object associated with the event named by the
string 'event'.
|
NSDictionary<java.lang.String,?> |
actions()
A dictionary mapping keys to objects implementing the CAAction
protocol.
|
void |
addAnimationForKey(CAAnimation anim,
java.lang.String key)
Attach an animation object to the layer.
|
void |
addSublayer(CALayer layer)
Add 'layer' to the end of the receiver's sublayers array.
|
CGAffineTransform |
affineTransform()
Convenience methods for accessing the `transform' property as an
affine transform.
|
static CALayer |
alloc() |
static CALayer |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowsEdgeAntialiasing()
When true this layer is allowed to antialias its edges, as requested
by the value of the edgeAntialiasingMask property.
|
boolean |
allowsGroupOpacity()
When true, and the layer's opacity property is less than one, the
layer is allowed to composite itself as a group separate from its
parent.
|
CGPoint |
anchorPoint()
Defines the anchor point of the layer's bounds rect, as a point in
normalized layer coordinates - '(0, 0)' is the bottom left corner of
the bounds rect, '(1, 1)' is the top right corner.
|
double |
anchorPointZ()
The Z component of the layer's anchor point (i.e.
|
CAAnimation |
animationForKey(java.lang.String key)
Returns the animation added to the layer with identifier 'key', or nil
if no such animation exists.
|
NSArray<java.lang.String> |
animationKeys()
Returns an array containing the keys of all animations currently
attached to the receiver.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
boolean |
autoreverses()
When true, the object plays backwards after playing forwards.
|
CGColorRef |
backgroundColor()
The background color of the layer.
|
NSArray<?> |
backgroundFilters()
An array of filters that are applied to the background of the layer.
|
double |
beginTime()
The begin time of the object, in relation to its parent object, if
applicable.
|
CGColorRef |
borderColor()
The color of the layer's border.
|
double |
borderWidth()
The width of the layer's border, inset from the layer bounds.
|
CGRect |
bounds()
The bounds of the layer.
|
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() |
java.lang.Object |
compositingFilter()
A filter object used to composite the layer with its (possibly
filtered) background.
|
boolean |
containsPoint(CGPoint p)
Returns true if the bounds of the layer contains point 'p'.
|
java.lang.Object |
contents()
An object providing the contents of the layer, typically a CGImageRef,
but may be something else.
|
boolean |
contentsAreFlipped()
Returns true if the contents of the contents property of the layer
will be implicitly flipped when rendered in relation to the local
coordinate space (e.g.
|
CGRect |
contentsCenter()
A rectangle in normalized image coordinates defining the scaled
center part of the `contents' image.
|
java.lang.String |
contentsFormat()
A hint for the desired storage format of the layer contents provided by
-drawLayerInContext.
|
java.lang.String |
contentsGravity()
A string defining how the contents of the layer is mapped into its
bounds rect.
|
CGRect |
contentsRect()
A rectangle in normalized image coordinates defining the
subrectangle of the `contents' property that will be drawn into the
layer.
|
double |
contentsScale()
Defines the scale factor applied to the contents of the layer.
|
CGPoint |
convertPointFromLayer(CGPoint p,
CALayer l)
Mapping between layer coordinate and time spaces.
|
CGPoint |
convertPointToLayer(CGPoint p,
CALayer l) |
CGRect |
convertRectFromLayer(CGRect r,
CALayer l) |
CGRect |
convertRectToLayer(CGRect r,
CALayer l) |
double |
convertTimeFromLayer(double t,
CALayer l) |
double |
convertTimeToLayer(double t,
CALayer l) |
java.lang.String |
cornerCurve()
Defines the curve used for rendering the rounded corners of the layer.
|
static double |
cornerCurveExpansionFactor(java.lang.String curve)
Expansion scale factor applied to the rounded corner bounding box size
when specific corner curve is used.
|
double |
cornerRadius()
When positive, the background of the layer will be drawn with
rounded corners.
|
static java.lang.String |
debugDescription_static() |
static CAAction |
defaultActionForKey(java.lang.String event)
Returns the default action object associated with the event named by
the string 'event'.
|
static java.lang.Object |
defaultValueForKey(java.lang.String key)
Returns the default value of the named property, or nil if no
default value is known.
|
CALayerDelegate |
delegate()
An object that will receive the CALayer delegate methods defined
below (for those that it implements).
|
static java.lang.String |
description_static() |
void |
display()
Reload the content of this layer.
|
void |
displayIfNeeded()
Call -display if receiver is marked as needing redrawing.
|
void |
drawInContext(CGContextRef ctx)
Called via the -display method when the `contents' property is being
updated.
|
boolean |
drawsAsynchronously()
When true, the CGContext object passed to the -drawInContext: method
may queue the drawing commands submitted to it, such that they will
be executed later (i.e.
|
double |
duration()
The basic duration of the object.
|
int |
edgeAntialiasingMask()
Defines how the edges of the layer are rasterized.
|
void |
encodeWithCoder(NSCoder coder) |
java.lang.String |
fillMode()
Defines how the timed object behaves outside its active duration.
|
NSArray<?> |
filters()
An array of filters that will be applied to the contents of the
layer and its sublayers.
|
CGRect |
frame()
Unlike NSView, each Layer in the hierarchy has an implicit frame
rectangle, a function of the `position', `bounds', `anchorPoint',
and `transform' properties.
|
static long |
hash_static() |
CALayer |
hitTest(CGPoint p)
Returns the farthest descendant of the layer containing point 'p'.
|
CALayer |
init()
The designated initializer.
|
CALayer |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
CALayer |
initWithLayer(java.lang.Object layer)
This initializer is used by CoreAnimation to create shadow copies of
layers, e.g.
|
void |
insertSublayerAbove(CALayer layer,
CALayer sibling) |
void |
insertSublayerAtIndex(CALayer layer,
int idx)
Insert 'layer' at position 'idx' in the receiver's sublayers array.
|
void |
insertSublayerBelow(CALayer layer,
CALayer sibling)
Insert 'layer' either above or below the specified layer in the
receiver's sublayers array.
|
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 |
isDoubleSided()
When false layers facing away from the viewer are hidden from view.
|
boolean |
isGeometryFlipped()
Whether or not the geometry of the layer (and its sublayers) is
flipped vertically.
|
boolean |
isHidden()
When true the layer and its sublayers are not displayed.
|
boolean |
isOpaque()
A hint marking that the layer contents provided by -drawInContext:
is completely opaque.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static CALayer |
layer()
Layer creation and initialization.
|
void |
layoutIfNeeded()
Traverse upwards from the layer while the superlayer requires layout.
|
void |
layoutSublayers()
Called when the layer requires layout.
|
java.lang.String |
magnificationFilter() |
CALayer |
mask()
A layer whose alpha channel is used as a mask to select between the
layer's background and the result of compositing the layer's
contents with its filtered background.
|
long |
maskedCorners()
Defines which of the four corners receives the masking when using
`cornerRadius' property.
|
boolean |
masksToBounds()
When true an implicit mask matching the layer bounds is applied to
the layer (including the effects of the `cornerRadius' property).
|
java.lang.String |
minificationFilter()
The filter types to use when rendering the `contents' property of
the layer.
|
float |
minificationFilterBias()
The bias factor added when determining which levels of detail to use
when minifying using trilinear filtering.
|
CALayer |
modelLayer()
When called on the result of the -presentationLayer method, returns
the underlying layer with the current model values.
|
java.lang.String |
name()
The name of the layer.
|
boolean |
needsDisplay()
Returns true when the layer is marked as needing redrawing.
|
static boolean |
needsDisplayForKey(java.lang.String key)
Method for subclasses to override.
|
boolean |
needsDisplayOnBoundsChange()
When true -setNeedsDisplay will automatically be called when the
bounds of the layer changes.
|
boolean |
needsLayout()
Returns true when the receiver is marked as needing layout.
|
static CALayer |
new_objc() |
float |
opacity()
The opacity of the layer, as a value between zero and one.
|
CGPoint |
position()
The position in the superlayer that the anchor point of the layer's
bounds rect is aligned to.
|
CGSize |
preferredFrameSize()
Returns the preferred frame size of the layer in the coordinate
space of the superlayer.
|
CALayer |
presentationLayer()
Returns a copy of the layer containing all properties as they were
at the start of the current transaction, with any active animations
applied.
|
double |
rasterizationScale()
The scale at which the layer will be rasterized (when the
shouldRasterize property has been set to YES) relative to the
coordinate space of the layer.
|
void |
removeAllAnimations()
Remove all animations attached to the layer.
|
void |
removeAnimationForKey(java.lang.String key)
Remove any animation attached to the layer for 'key'.
|
void |
removeFromSuperlayer()
Removes the layer from its superlayer, works both if the receiver is
in its superlayer's `sublayers' array or set as its `mask' value.
|
void |
renderInContext(CGContextRef ctx)
Renders the receiver and its sublayers into 'ctx'.
|
float |
repeatCount()
The repeat count of the object.
|
double |
repeatDuration()
The repeat duration of the object.
|
void |
replaceSublayerWith(CALayer oldLayer,
CALayer newLayer)
Remove 'oldLayer' from the sublayers array of the receiver and insert
'newLayer' if non-nil in its position.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
scrollPoint(CGPoint p)
These methods search for the closest ancestor CAScrollLayer of the *
receiver, and then call either -scrollToPoint: or -scrollToRect: on
that layer with the specified geometry converted from the coordinate
space of the receiver to that of the found scroll layer.
|
void |
scrollRectToVisible(CGRect r) |
void |
setActions(NSDictionary<java.lang.String,?> value)
A dictionary mapping keys to objects implementing the CAAction
protocol.
|
void |
setAffineTransform(CGAffineTransform m) |
void |
setAllowsEdgeAntialiasing(boolean value)
When true this layer is allowed to antialias its edges, as requested
by the value of the edgeAntialiasingMask property.
|
void |
setAllowsGroupOpacity(boolean value)
When true, and the layer's opacity property is less than one, the
layer is allowed to composite itself as a group separate from its
parent.
|
void |
setAnchorPoint(CGPoint value)
Defines the anchor point of the layer's bounds rect, as a point in
normalized layer coordinates - '(0, 0)' is the bottom left corner of
the bounds rect, '(1, 1)' is the top right corner.
|
void |
setAnchorPointZ(double value)
The Z component of the layer's anchor point (i.e.
|
void |
setAutoreverses(boolean value)
When true, the object plays backwards after playing forwards.
|
void |
setBackgroundColor(CGColorRef value)
The background color of the layer.
|
void |
setBackgroundFilters(NSArray<?> value)
An array of filters that are applied to the background of the layer.
|
void |
setBeginTime(double value)
The begin time of the object, in relation to its parent object, if
applicable.
|
void |
setBorderColor(CGColorRef value)
The color of the layer's border.
|
void |
setBorderWidth(double value)
The width of the layer's border, inset from the layer bounds.
|
void |
setBounds(CGRect value)
The bounds of the layer.
|
void |
setCompositingFilter(java.lang.Object value)
A filter object used to composite the layer with its (possibly
filtered) background.
|
void |
setContents(java.lang.Object value)
An object providing the contents of the layer, typically a CGImageRef,
but may be something else.
|
void |
setContentsCenter(CGRect value)
A rectangle in normalized image coordinates defining the scaled
center part of the `contents' image.
|
void |
setContentsFormat(java.lang.String value)
A hint for the desired storage format of the layer contents provided by
-drawLayerInContext.
|
void |
setContentsGravity(java.lang.String value)
A string defining how the contents of the layer is mapped into its
bounds rect.
|
void |
setContentsRect(CGRect value)
A rectangle in normalized image coordinates defining the
subrectangle of the `contents' property that will be drawn into the
layer.
|
void |
setContentsScale(double value)
Defines the scale factor applied to the contents of the layer.
|
void |
setCornerCurve(java.lang.String value)
Defines the curve used for rendering the rounded corners of the layer.
|
void |
setCornerRadius(double value)
When positive, the background of the layer will be drawn with
rounded corners.
|
void |
setDelegate_unsafe(CALayerDelegate value)
An object that will receive the CALayer delegate methods defined
below (for those that it implements).
|
void |
setDelegate(CALayerDelegate value)
An object that will receive the CALayer delegate methods defined
below (for those that it implements).
|
void |
setDoubleSided(boolean value)
When false layers facing away from the viewer are hidden from view.
|
void |
setDrawsAsynchronously(boolean value)
When true, the CGContext object passed to the -drawInContext: method
may queue the drawing commands submitted to it, such that they will
be executed later (i.e.
|
void |
setDuration(double value)
The basic duration of the object.
|
void |
setEdgeAntialiasingMask(int value)
Defines how the edges of the layer are rasterized.
|
void |
setFillMode(java.lang.String value)
Defines how the timed object behaves outside its active duration.
|
void |
setFilters(NSArray<?> value)
An array of filters that will be applied to the contents of the
layer and its sublayers.
|
void |
setFrame(CGRect value)
Unlike NSView, each Layer in the hierarchy has an implicit frame
rectangle, a function of the `position', `bounds', `anchorPoint',
and `transform' properties.
|
void |
setGeometryFlipped(boolean value)
Whether or not the geometry of the layer (and its sublayers) is
flipped vertically.
|
void |
setHidden(boolean value)
When true the layer and its sublayers are not displayed.
|
void |
setMagnificationFilter(java.lang.String value) |
void |
setMask(CALayer value)
A layer whose alpha channel is used as a mask to select between the
layer's background and the result of compositing the layer's
contents with its filtered background.
|
void |
setMaskedCorners(long value)
Defines which of the four corners receives the masking when using
`cornerRadius' property.
|
void |
setMasksToBounds(boolean value)
When true an implicit mask matching the layer bounds is applied to
the layer (including the effects of the `cornerRadius' property).
|
void |
setMinificationFilter(java.lang.String value)
The filter types to use when rendering the `contents' property of
the layer.
|
void |
setMinificationFilterBias(float value)
The bias factor added when determining which levels of detail to use
when minifying using trilinear filtering.
|
void |
setName(java.lang.String value)
The name of the layer.
|
void |
setNeedsDisplay()
Marks that -display needs to be called before the layer is next
committed.
|
void |
setNeedsDisplayInRect(CGRect r) |
void |
setNeedsDisplayOnBoundsChange(boolean value)
When true -setNeedsDisplay will automatically be called when the
bounds of the layer changes.
|
void |
setNeedsLayout()
Marks that -layoutSublayers needs to be invoked on the receiver
before the next update.
|
void |
setOpacity(float value)
The opacity of the layer, as a value between zero and one.
|
void |
setOpaque(boolean value)
A hint marking that the layer contents provided by -drawInContext:
is completely opaque.
|
void |
setPosition(CGPoint value)
The position in the superlayer that the anchor point of the layer's
bounds rect is aligned to.
|
void |
setRasterizationScale(double value)
The scale at which the layer will be rasterized (when the
shouldRasterize property has been set to YES) relative to the
coordinate space of the layer.
|
void |
setRepeatCount(float value)
The repeat count of the object.
|
void |
setRepeatDuration(double value)
The repeat duration of the object.
|
void |
setShadowColor(CGColorRef value)
The color of the shadow.
|
void |
setShadowOffset(CGSize value)
The shadow offset.
|
void |
setShadowOpacity(float value)
The opacity of the shadow.
|
void |
setShadowPath(CGPathRef value)
When non-null this path defines the outline used to construct the
layer's shadow instead of using the layer's composited alpha
channel.
|
void |
setShadowRadius(double value)
The blur radius used to create the shadow.
|
void |
setShouldRasterize(boolean value)
When true, the layer is rendered as a bitmap in its local coordinate
space ("rasterized"), then the bitmap is composited into the
destination (with the minificationFilter and magnificationFilter
properties of the layer applied if the bitmap needs scaling).
|
void |
setSpeed(float value)
The rate of the layer.
|
void |
setStyle(NSDictionary<?,?> value)
When non-nil, a dictionary dereferenced to find property values that
aren't explicitly defined by the layer.
|
void |
setSublayers(NSArray<? extends CALayer> value)
The array of sublayers of this layer.
|
void |
setSublayerTransform(CATransform3D value)
A transform applied to each member of the `sublayers' array while
rendering its contents into the receiver's output.
|
void |
setTimeOffset(double value)
Additional offset in active local time.
|
void |
setTransform(CATransform3D value)
A transform applied to the layer relative to the anchor point of its
bounds rect.
|
static void |
setVersion_static(long aVersion) |
void |
setZPosition(double value)
The Z component of the layer's position in its superlayer.
|
CGColorRef |
shadowColor()
The color of the shadow.
|
CGSize |
shadowOffset()
The shadow offset.
|
float |
shadowOpacity()
The opacity of the shadow.
|
CGPathRef |
shadowPath()
When non-null this path defines the outline used to construct the
layer's shadow instead of using the layer's composited alpha
channel.
|
double |
shadowRadius()
The blur radius used to create the shadow.
|
boolean |
shouldArchiveValueForKey(java.lang.String key)
Called by the object's implementation of -encodeWithCoder:, returns
false if the named property should not be archived.
|
boolean |
shouldRasterize()
When true, the layer is rendered as a bitmap in its local coordinate
space ("rasterized"), then the bitmap is composited into the
destination (with the minificationFilter and magnificationFilter
properties of the layer applied if the bitmap needs scaling).
|
float |
speed()
The rate of the layer.
|
NSDictionary<?,?> |
style()
When non-nil, a dictionary dereferenced to find property values that
aren't explicitly defined by the layer.
|
NSArray<? extends CALayer> |
sublayers()
The array of sublayers of this layer.
|
CATransform3D |
sublayerTransform()
A transform applied to each member of the `sublayers' array while
rendering its contents into the receiver's output.
|
static org.moe.natj.objc.Class |
superclass_static() |
CALayer |
superlayer()
The receiver's superlayer object.
|
static boolean |
supportsSecureCoding() |
double |
timeOffset()
Additional offset in active local time.
|
CATransform3D |
transform()
A transform applied to the layer relative to the anchor point of its
bounds rect.
|
static long |
version_static() |
CGRect |
visibleRect()
Returns the visible region of the receiver, in its own coordinate
space.
|
double |
zPosition()
The Z component of the layer's position in its superlayer.
|
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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static CALayer alloc()
public static CALayer 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 CAAction defaultActionForKey(java.lang.String event)
public static java.lang.Object defaultValueForKey(java.lang.String key)
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 CALayer layer()
public static boolean needsDisplayForKey(java.lang.String key)
public static CALayer 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 CAAction actionForKey(java.lang.String event)
1. if defined, call the delegate method -actionForLayer:forKey: 2. look in the layer's `actions' dictionary 3. look in any `actions' dictionaries in the `style' hierarchy 4. call +defaultActionForKey: on the layer's class
If any of these steps results in a non-nil action object, the following steps are ignored. If the final result is an instance of NSNull, it is converted to `nil'.
public NSDictionary<java.lang.String,?> actions()
public void addAnimationForKey(CAAnimation anim, java.lang.String key)
'key' may be any string such that only one animation per unique key is added per layer. The special key 'transition' is automatically used for transition animations. The nil pointer is also a valid key.
If the `duration' property of the animation is zero or negative it is given the default duration, either the value of the `animationDuration' transaction property or .25 seconds otherwise.
The animation is copied before being added to the layer, so any subsequent modifications to `anim' will have no affect unless it is added to another layer.
public void addSublayer(CALayer layer)
public CGAffineTransform affineTransform()
public boolean allowsEdgeAntialiasing()
The default value is read from the boolean UIViewEdgeAntialiasing property in the main bundle's Info.plist. If no value is found in the Info.plist the default value is NO.
public boolean allowsGroupOpacity()
The default value of the property is read from the boolean UIViewGroupOpacity property in the main bundle's Info.plist. If no value is found in the Info.plist the default value is YES for applications linked against the iOS 7 SDK or later and NO for applications linked against an earlier SDK.
public CGPoint anchorPoint()
public double anchorPointZ()
public CAAnimation animationForKey(java.lang.String key)
public NSArray<java.lang.String> animationKeys()
public boolean autoreverses()
CAMediaTimingautoreverses in interface CAMediaTimingpublic CGColorRef backgroundColor()
public NSArray<?> backgroundFilters()
public double beginTime()
CAMediaTimingbeginTime in interface CAMediaTimingpublic CGColorRef borderColor()
public double borderWidth()
public CGRect bounds()
public java.lang.Object compositingFilter()
Note that if the inputs of the filter are modified directly after the filter is attached to a layer, the behavior is undefined. The filter must either be reattached to the layer, or filter properties should be modified by calling -setValue:forKeyPath: on each layer that the filter is attached to. (This also applies to the `filters' and `backgroundFilters' properties.)
public boolean containsPoint(CGPoint p)
public java.lang.Object contents()
public boolean contentsAreFlipped()
public CGRect contentsCenter()
When an image is resized due to its `contentsGravity' property its center part implicitly defines the 3x3 grid that controls how the image is scaled to its drawn size. The center part is stretched in both dimensions; the top and bottom parts are only stretched horizontally; the left and right parts are only stretched vertically; the four corner parts are not stretched at all. (This is often called "9-slice scaling".)
The rectangle is interpreted after the effects of the `contentsRect' property have been applied. It defaults to the unit rectangle [0 0 1 1] meaning that the entire image is scaled. As a special case, if the width or height is zero, it is implicitly adjusted to the width or height of a single source pixel centered at that position. If the rectangle extends outside the [0 0 1 1] unit rectangle the result is undefined. Animatable.
public java.lang.String contentsFormat()
public java.lang.String contentsGravity()
public CGRect contentsRect()
public double contentsScale()
public CGPoint convertPointFromLayer(CGPoint p, CALayer l)
public double convertTimeFromLayer(double t,
CALayer l)
public double convertTimeToLayer(double t,
CALayer l)
public double cornerRadius()
public CALayerDelegate delegate()
public void display()
public void displayIfNeeded()
public void drawInContext(CGContextRef ctx)
public boolean drawsAsynchronously()
public double duration()
CAMediaTimingduration in interface CAMediaTimingpublic int edgeAntialiasingMask()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic java.lang.String fillMode()
CAMediaTimingfillMode in interface CAMediaTimingpublic NSArray<?> filters()
public CGRect frame()
public CALayer hitTest(CGPoint p)
public CALayer initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic CALayer initWithLayer(java.lang.Object layer)
public void insertSublayerAtIndex(CALayer layer, int idx)
public void insertSublayerBelow(CALayer layer, CALayer sibling)
public boolean isDoubleSided()
public void setDoubleSided(boolean value)
public boolean isGeometryFlipped()
public void setGeometryFlipped(boolean value)
public boolean isHidden()
public void setHidden(boolean value)
public boolean isOpaque()
public void setOpaque(boolean value)
public void layoutIfNeeded()
public void layoutSublayers()
public java.lang.String magnificationFilter()
public CALayer mask()
public boolean masksToBounds()
public java.lang.String minificationFilter()
public float minificationFilterBias()
public CALayer modelLayer()
public java.lang.String name()
public boolean needsDisplay()
public boolean needsDisplayOnBoundsChange()
public boolean needsLayout()
public float opacity()
public CGPoint position()
public CGSize preferredFrameSize()
public CALayer presentationLayer()
The effect of attempting to modify the returned layer in any way is undefined.
The `sublayers', `mask' and `superlayer' properties of the returned layer return the presentation versions of these properties. This carries through to read-only layer methods. E.g., calling -hitTest: on the result of the -presentationLayer will query the presentation values of the layer tree.
public double rasterizationScale()
public void removeAllAnimations()
public void removeAnimationForKey(java.lang.String key)
public void removeFromSuperlayer()
public void renderInContext(CGContextRef ctx)
WARNING: currently this method does not implement the full CoreAnimation composition model, use with caution.
public float repeatCount()
CAMediaTimingrepeatCount in interface CAMediaTimingpublic double repeatDuration()
CAMediaTimingrepeatDuration in interface CAMediaTimingpublic void replaceSublayerWith(CALayer oldLayer, CALayer newLayer)
public void scrollPoint(CGPoint p)
public void scrollRectToVisible(CGRect r)
public void setActions(NSDictionary<java.lang.String,?> value)
public void setAffineTransform(CGAffineTransform m)
public void setAllowsEdgeAntialiasing(boolean value)
The default value is read from the boolean UIViewEdgeAntialiasing property in the main bundle's Info.plist. If no value is found in the Info.plist the default value is NO.
public void setAllowsGroupOpacity(boolean value)
The default value of the property is read from the boolean UIViewGroupOpacity property in the main bundle's Info.plist. If no value is found in the Info.plist the default value is YES for applications linked against the iOS 7 SDK or later and NO for applications linked against an earlier SDK.
public void setAnchorPoint(CGPoint value)
public void setAnchorPointZ(double value)
public void setAutoreverses(boolean value)
CAMediaTimingsetAutoreverses in interface CAMediaTimingpublic void setBackgroundColor(CGColorRef value)
public void setBackgroundFilters(NSArray<?> value)
public void setBeginTime(double value)
CAMediaTimingsetBeginTime in interface CAMediaTimingpublic void setBorderColor(CGColorRef value)
public void setBorderWidth(double value)
public void setBounds(CGRect value)
public void setCompositingFilter(java.lang.Object value)
Note that if the inputs of the filter are modified directly after the filter is attached to a layer, the behavior is undefined. The filter must either be reattached to the layer, or filter properties should be modified by calling -setValue:forKeyPath: on each layer that the filter is attached to. (This also applies to the `filters' and `backgroundFilters' properties.)
public void setContents(java.lang.Object value)
public void setContentsCenter(CGRect value)
When an image is resized due to its `contentsGravity' property its center part implicitly defines the 3x3 grid that controls how the image is scaled to its drawn size. The center part is stretched in both dimensions; the top and bottom parts are only stretched horizontally; the left and right parts are only stretched vertically; the four corner parts are not stretched at all. (This is often called "9-slice scaling".)
The rectangle is interpreted after the effects of the `contentsRect' property have been applied. It defaults to the unit rectangle [0 0 1 1] meaning that the entire image is scaled. As a special case, if the width or height is zero, it is implicitly adjusted to the width or height of a single source pixel centered at that position. If the rectangle extends outside the [0 0 1 1] unit rectangle the result is undefined. Animatable.
public void setContentsFormat(java.lang.String value)
public void setContentsGravity(java.lang.String value)
public void setContentsRect(CGRect value)
public void setContentsScale(double value)
public void setCornerRadius(double value)
public void setDelegate_unsafe(CALayerDelegate value)
public void setDelegate(CALayerDelegate value)
public void setDrawsAsynchronously(boolean value)
public void setDuration(double value)
CAMediaTimingsetDuration in interface CAMediaTimingpublic void setEdgeAntialiasingMask(int value)
public void setFillMode(java.lang.String value)
CAMediaTimingsetFillMode in interface CAMediaTimingpublic void setFilters(NSArray<?> value)
public void setFrame(CGRect value)
public void setMagnificationFilter(java.lang.String value)
public void setMask(CALayer value)
public void setMasksToBounds(boolean value)
public void setMinificationFilter(java.lang.String value)
public void setMinificationFilterBias(float value)
public void setName(java.lang.String value)
public void setNeedsDisplay()
public void setNeedsDisplayInRect(CGRect r)
public void setNeedsDisplayOnBoundsChange(boolean value)
public void setNeedsLayout()
This method is automatically invoked on a layer whenever its `sublayers' or `layoutManager' property is modified, and is invoked on the layer and its superlayer whenever its `bounds' or `transform' properties are modified. Implicit calls to -setNeedsLayout are skipped if the layer is currently executing its -layoutSublayers method.
public void setOpacity(float value)
public void setPosition(CGPoint value)
public void setRasterizationScale(double value)
public void setRepeatCount(float value)
CAMediaTimingsetRepeatCount in interface CAMediaTimingpublic void setRepeatDuration(double value)
CAMediaTimingsetRepeatDuration in interface CAMediaTimingpublic void setShadowColor(CGColorRef value)
public void setShadowOffset(CGSize value)
public void setShadowOpacity(float value)
public void setShadowPath(CGPathRef value)
public void setShadowRadius(double value)
public void setShouldRasterize(boolean value)
When false the layer is composited directly into the destination whenever possible (however, certain features of the compositing model may force rasterization, e.g. adding filters).
Defaults to NO. Animatable.
public void setSpeed(float value)
CAMediaTimingsetSpeed in interface CAMediaTimingpublic void setStyle(NSDictionary<?,?> value)
Note that if the dictionary or any of its ancestors are modified, the values of the layer's properties are undefined until the `style' property is reset.
public void setSublayerTransform(CATransform3D value)
public void setSublayers(NSArray<? extends CALayer> value)
public void setTimeOffset(double value)
CAMediaTimingsetTimeOffset in interface CAMediaTimingpublic void setTransform(CATransform3D value)
public void setZPosition(double value)
public CGColorRef shadowColor()
public CGSize shadowOffset()
public float shadowOpacity()
public CGPathRef shadowPath()
public double shadowRadius()
public boolean shouldArchiveValueForKey(java.lang.String key)
public boolean shouldRasterize()
When false the layer is composited directly into the destination whenever possible (however, certain features of the compositing model may force rasterization, e.g. adding filters).
Defaults to NO. Animatable.
public float speed()
CAMediaTimingspeed in interface CAMediaTimingpublic NSDictionary<?,?> style()
Note that if the dictionary or any of its ancestors are modified, the values of the layer's properties are undefined until the `style' property is reset.
public CATransform3D sublayerTransform()
public NSArray<? extends CALayer> sublayers()
public CALayer superlayer()
public double timeOffset()
CAMediaTimingtimeOffset in interface CAMediaTimingpublic CATransform3D transform()
public CGRect visibleRect()
public double zPosition()
public long maskedCorners()
public void setMaskedCorners(long value)
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic java.lang.String cornerCurve()
public static double cornerCurveExpansionFactor(java.lang.String curve)
public void setCornerCurve(java.lang.String value)