Class CALayer

    • Constructor Detail

      • CALayer

        public CALayer()
      • CALayer

        protected CALayer​(long handle)
      • CALayer

        public CALayer​(CALayer layer)
      • CALayer

        public CALayer​(NSCoder decoder)
    • Method Detail

      • getBounds

        public CGRect getBounds()
      • setBounds

        public void setBounds​(CGRect v)
      • getPosition

        public CGPoint getPosition()
      • setPosition

        public void setPosition​(CGPoint v)
      • getZPosition

        public double getZPosition()
      • setZPosition

        public void setZPosition​(double v)
      • getAnchorPoint

        public CGPoint getAnchorPoint()
      • setAnchorPoint

        public void setAnchorPoint​(CGPoint v)
      • getAnchorPointZ

        public double getAnchorPointZ()
      • setAnchorPointZ

        public void setAnchorPointZ​(double v)
      • getFrame

        public CGRect getFrame()
      • setFrame

        public void setFrame​(CGRect v)
      • isHidden

        public boolean isHidden()
      • setHidden

        public void setHidden​(boolean v)
      • isDoubleSided

        public boolean isDoubleSided()
      • setDoubleSided

        public void setDoubleSided​(boolean v)
      • isGeometryFlipped

        public boolean isGeometryFlipped()
      • setGeometryFlipped

        public void setGeometryFlipped​(boolean v)
      • getSuperlayer

        public CALayer getSuperlayer()
      • getSublayerTransform

        public CATransform3D getSublayerTransform()
      • setSublayerTransform

        public void setSublayerTransform​(CATransform3D v)
      • getMask

        public CALayer getMask()
      • setMask

        public void setMask​(CALayer v)
      • masksToBounds

        public boolean masksToBounds()
      • setMasksToBounds

        public void setMasksToBounds​(boolean v)
      • getContents

        public NSObject getContents()
      • setContents

        public void setContents​(NSObject v)
      • getContentsRect

        public CGRect getContentsRect()
      • setContentsRect

        public void setContentsRect​(CGRect v)
      • getContentsGravity

        public CAGravity getContentsGravity()
      • setContentsGravity

        public void setContentsGravity​(CAGravity v)
      • getContentsScale

        public double getContentsScale()
        Available in iOS 4.0 and later.
      • setContentsScale

        public void setContentsScale​(double v)
        Available in iOS 4.0 and later.
      • getContentsCenter

        public CGRect getContentsCenter()
      • setContentsCenter

        public void setContentsCenter​(CGRect v)
      • getContentsFormat

        public java.lang.String getContentsFormat()
        Available in iOS 10.0 and later.
      • setContentsFormat

        public void setContentsFormat​(java.lang.String v)
        Available in iOS 10.0 and later.
      • getMinificationFilter

        public CAFilter getMinificationFilter()
      • setMinificationFilter

        public void setMinificationFilter​(CAFilter v)
      • getMagnificationFilter

        public CAFilter getMagnificationFilter()
      • setMagnificationFilter

        public void setMagnificationFilter​(CAFilter v)
      • getMinificationFilterBias

        public float getMinificationFilterBias()
      • setMinificationFilterBias

        public void setMinificationFilterBias​(float v)
      • isOpaque

        public boolean isOpaque()
      • setOpaque

        public void setOpaque​(boolean v)
      • needsDisplayOnBoundsChange

        public boolean needsDisplayOnBoundsChange()
      • setNeedsDisplayOnBoundsChange

        public void setNeedsDisplayOnBoundsChange​(boolean v)
      • drawsAsynchronously

        public boolean drawsAsynchronously()
        Available in iOS 6.0 and later.
      • setDrawsAsynchronously

        public void setDrawsAsynchronously​(boolean v)
        Available in iOS 6.0 and later.
      • allowsEdgeAntialiasing

        public boolean allowsEdgeAntialiasing()
        Available in iOS 2.0 and later.
      • setAllowsEdgeAntialiasing

        public void setAllowsEdgeAntialiasing​(boolean v)
        Available in iOS 2.0 and later.
      • getBackgroundColor

        public CGColor getBackgroundColor()
      • setBackgroundColor

        public void setBackgroundColor​(CGColor v)
      • getCornerRadius

        public double getCornerRadius()
      • setCornerRadius

        public void setCornerRadius​(double v)
      • getMaskedCorners

        public CACornerMask getMaskedCorners()
        Available in iOS 11.0 and later.
      • setMaskedCorners

        public void setMaskedCorners​(CACornerMask v)
        Available in iOS 11.0 and later.
      • getBorderWidth

        public double getBorderWidth()
      • setBorderWidth

        public void setBorderWidth​(double v)
      • getBorderColor

        public CGColor getBorderColor()
      • setBorderColor

        public void setBorderColor​(CGColor v)
      • getOpacity

        public float getOpacity()
      • setOpacity

        public void setOpacity​(float v)
      • allowsGroupOpacity

        public boolean allowsGroupOpacity()
        Available in iOS 2.0 and later.
      • setAllowsGroupOpacity

        public void setAllowsGroupOpacity​(boolean v)
        Available in iOS 2.0 and later.
      • getCompositingFilter

        public CIFilter getCompositingFilter()
      • setCompositingFilter

        public void setCompositingFilter​(CIFilter v)
      • setBackgroundFilters

        public void setBackgroundFilters​(NSArray<CIFilter> v)
      • shouldRasterize

        public boolean shouldRasterize()
      • setShouldRasterize

        public void setShouldRasterize​(boolean v)
      • getRasterizationScale

        public double getRasterizationScale()
      • setRasterizationScale

        public void setRasterizationScale​(double v)
      • getShadowColor

        public CGColor getShadowColor()
      • setShadowColor

        public void setShadowColor​(CGColor v)
      • getShadowOpacity

        public float getShadowOpacity()
      • setShadowOpacity

        public void setShadowOpacity​(float v)
      • getShadowOffset

        public CGSize getShadowOffset()
      • setShadowOffset

        public void setShadowOffset​(CGSize v)
      • getShadowRadius

        public double getShadowRadius()
      • setShadowRadius

        public void setShadowRadius​(double v)
      • getShadowPath

        public CGPath getShadowPath()
      • setShadowPath

        public void setShadowPath​(CGPath v)
      • getActions

        public java.util.Map<java.lang.String,​CAAction> getActions()
      • setActions

        public void setActions​(java.util.Map<java.lang.String,​CAAction> v)
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String v)
      • setStyle

        public void setStyle​(NSDictionary<?,​?> v)
      • getVisibleRect

        public CGRect getVisibleRect()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • init

        protected long init​(CALayer layer)
      • getPresentationLayer

        public CALayer getPresentationLayer()
      • getModelLayer

        public CALayer getModelLayer()
      • shouldArchiveValue

        public boolean shouldArchiveValue​(java.lang.String key)
      • areContentsFlipped

        public boolean areContentsFlipped()
      • removeFromSuperlayer

        public void removeFromSuperlayer()
      • addSublayer

        public void addSublayer​(CALayer layer)
      • insertSublayerAt

        public void insertSublayerAt​(CALayer layer,
                                     int idx)
      • insertSublayerBelow

        public void insertSublayerBelow​(CALayer layer,
                                        CALayer sibling)
      • insertSublayerAbove

        public void insertSublayerAbove​(CALayer layer,
                                        CALayer sibling)
      • replaceSublayer

        public void replaceSublayer​(CALayer oldLayer,
                                    CALayer newLayer)
      • convertTimeFromLayer

        public double convertTimeFromLayer​(double t,
                                           CALayer l)
      • convertTimeToLayer

        public double convertTimeToLayer​(double t,
                                         CALayer l)
      • containsPoint

        public boolean containsPoint​(CGPoint p)
      • display

        public void display()
      • setNeedsDisplay

        public void setNeedsDisplay()
      • setNeedsDisplay

        public void setNeedsDisplay​(CGRect r)
      • needsDisplay

        public boolean needsDisplay()
      • displayIfNeeded

        public void displayIfNeeded()
      • render

        public void render​(CGContext ctx)
      • getPreferredFrameSize

        public CGSize getPreferredFrameSize()
      • setNeedsLayout

        public void setNeedsLayout()
      • needsLayout

        public boolean needsLayout()
      • layoutIfNeeded

        public void layoutIfNeeded()
      • layoutSublayers

        public void layoutSublayers()
      • getAction

        public CAAction getAction​(java.lang.String event)
      • addAnimation

        public void addAnimation​(CAAnimation anim,
                                 java.lang.String key)
      • removeAllAnimations

        public void removeAllAnimations()
      • removeAnimation

        public void removeAnimation​(java.lang.String key)
      • getAnimationKeys

        public java.util.List<java.lang.String> getAnimationKeys()
      • getAnimation

        public CAAnimation getAnimation​(java.lang.String key)
      • getDefaultValue

        public static NSObject getDefaultValue​(java.lang.String key)
      • needsDisplay

        public static boolean needsDisplay​(java.lang.String key)
      • getDefaultAction

        public static CAAction getDefaultAction​(java.lang.String event)
      • scrollTo

        public void scrollTo​(CGPoint p)
      • scrollTo

        public void scrollTo​(CGRect r)
      • init

        protected long init​(NSCoder decoder)