Class SKShapeNode

    • Constructor Detail

      • SKShapeNode

        public SKShapeNode()
      • SKShapeNode

        public SKShapeNode​(NSCoder decoder)
    • Method Detail

      • getPath

        public CGPath getPath()
      • setPath

        public void setPath​(CGPath v)
      • getStrokeColor

        public UIColor getStrokeColor()
      • setStrokeColor

        public void setStrokeColor​(UIColor v)
      • getFillColor

        public UIColor getFillColor()
      • setFillColor

        public void setFillColor​(UIColor v)
      • setBlendMode

        public void setBlendMode​(SKBlendMode v)
      • isAntialiased

        public boolean isAntialiased()
      • setAntialiased

        public void setAntialiased​(boolean v)
      • getLineWidth

        public double getLineWidth()
      • setLineWidth

        public void setLineWidth​(double v)
      • getGlowWidth

        public double getGlowWidth()
      • setGlowWidth

        public void setGlowWidth​(double v)
      • setLineCap

        public void setLineCap​(CGLineCap v)
      • setLineJoin

        public void setLineJoin​(CGLineJoin v)
      • getMiterLimit

        public double getMiterLimit()
      • setMiterLimit

        public void setMiterLimit​(double v)
      • getLineLength

        public double getLineLength()
      • getFillTexture

        public SKTexture getFillTexture()
        Since:
        Available in iOS 8.0 and later.
      • setFillTexture

        public void setFillTexture​(SKTexture v)
        Since:
        Available in iOS 8.0 and later.
      • getFillShader

        public SKShader getFillShader()
        Since:
        Available in iOS 8.0 and later.
      • setFillShader

        public void setFillShader​(SKShader v)
        Since:
        Available in iOS 8.0 and later.
      • getStrokeTexture

        public SKTexture getStrokeTexture()
        Since:
        Available in iOS 8.0 and later.
      • setStrokeTexture

        public void setStrokeTexture​(SKTexture v)
        Since:
        Available in iOS 8.0 and later.
      • getStrokeShader

        public SKShader getStrokeShader()
        Since:
        Available in iOS 8.0 and later.
      • setStrokeShader

        public void setStrokeShader​(SKShader v)
        Since:
        Available in iOS 8.0 and later.
      • setValue

        public void setValue​(SKAttributeValue value,
                             java.lang.String key)
        Overrides:
        setValue in class SKNode
        Since:
        Available in iOS 10.0 and later.
      • createPath

        public static SKShapeNode createPath​(CGPath path)
        Since:
        Available in iOS 8.0 and later.
      • createPath

        public static SKShapeNode createPath​(CGPath path,
                                             boolean centered)
        Since:
        Available in iOS 8.0 and later.
      • createRect

        public static SKShapeNode createRect​(CGRect rect)
        Since:
        Available in iOS 8.0 and later.
      • createRect

        public static SKShapeNode createRect​(CGSize size)
        Since:
        Available in iOS 8.0 and later.
      • createRect

        public static SKShapeNode createRect​(CGRect rect,
                                             double cornerRadius)
        Since:
        Available in iOS 8.0 and later.
      • createRect

        public static SKShapeNode createRect​(CGSize size,
                                             double cornerRadius)
        Since:
        Available in iOS 8.0 and later.
      • createCircle

        public static SKShapeNode createCircle​(double radius)
        Since:
        Available in iOS 8.0 and later.
      • createEllipse

        public static SKShapeNode createEllipse​(CGRect rect)
        Since:
        Available in iOS 8.0 and later.
      • createEllipse

        public static SKShapeNode createEllipse​(CGSize size)
        Since:
        Available in iOS 8.0 and later.
      • createWithPoints

        public static SKShapeNode createWithPoints​(CGPoint points,
                                                   long numPoints)
        Since:
        Available in iOS 8.0 and later.
      • createWithSplinePoints

        public static SKShapeNode createWithSplinePoints​(CGPoint points,
                                                         long numPoints)
        Since:
        Available in iOS 8.0 and later.