public class SKShapeNode extends SKNode
See CGPath reference pages for details on how to construct a CGPath.
SKNode.Block_enumerateChildNodesWithNameUsingBlock, SKNode.Block_runActionCompletionNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
SKShapeNode(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() |
static SKShapeNode |
alloc() |
static SKShapeNode |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
NSDictionary<java.lang.String,? extends SKAttributeValue> |
attributeValues()
Optional dictionary of SKAttributeValues
Attributes can be used with custom SKShaders.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
long |
blendMode()
Sets the blend mode to use when composing the shape with the final framebuffer.
|
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() |
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
UIColor |
fillColor()
The color to fill the path with.
|
SKShader |
fillShader()
An optional SKShader used for the filling the Shape
|
SKTexture |
fillTexture()
An optional Texture used for the filling the Shape
|
double |
glowWidth()
Add a glow to the path stroke of the specified width.
|
static long |
hash_static() |
SKShapeNode |
init() |
SKShapeNode |
initWithCoder(NSCoder aDecoder)
NS_DESIGNATED_INITIALIZER
|
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 |
isAntialiased()
If set to YES, the path stroke edges and caps is smoothed (antialiased) when drawn.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
int |
lineCap()
The cap type that should be used when stroking a non-closed path
|
int |
lineJoin()
The join type that should be used when stroking a path
|
double |
lineLength()
The length of the node's path if it were to be stroked
|
double |
lineWidth()
The width used to stroke the path.
|
double |
miterLimit()
When a miter join is used, the maximum ratio of miter length to line with to be used
|
static SKShapeNode |
new_objc() |
static SKShapeNode |
node() |
static SKShapeNode |
nodeWithFileNamed(java.lang.String filename) |
static SKShapeNode |
nodeWithFileNamedSecurelyWithClassesAndError(java.lang.String filename,
NSSet<? extends org.moe.natj.objc.Class> classes,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static NSArray<? extends GKPolygonObstacle> |
obstaclesFromNodeBounds(NSArray<? extends SKNode> nodes) |
static NSArray<? extends GKPolygonObstacle> |
obstaclesFromNodePhysicsBodies(NSArray<? extends SKNode> nodes) |
static NSArray<? extends GKPolygonObstacle> |
obstaclesFromSpriteTexturesAccuracy(NSArray<? extends SKNode> sprites,
float accuracy) |
CGPathRef |
path()
The CGPath to be drawn (in the Node's coordinate space)
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAntialiased(boolean value)
If set to YES, the path stroke edges and caps is smoothed (antialiased) when drawn.
|
void |
setAttributeValues(NSDictionary<java.lang.String,? extends SKAttributeValue> value)
Optional dictionary of SKAttributeValues
Attributes can be used with custom SKShaders.
|
void |
setBlendMode(long value)
Sets the blend mode to use when composing the shape with the final framebuffer.
|
void |
setFillColor(UIColor value)
The color to fill the path with.
|
void |
setFillShader(SKShader value)
An optional SKShader used for the filling the Shape
|
void |
setFillTexture(SKTexture value)
An optional Texture used for the filling the Shape
|
void |
setGlowWidth(double value)
Add a glow to the path stroke of the specified width.
|
void |
setLineCap(int value)
The cap type that should be used when stroking a non-closed path
|
void |
setLineJoin(int value)
The join type that should be used when stroking a path
|
void |
setLineWidth(double value)
The width used to stroke the path.
|
void |
setMiterLimit(double value)
When a miter join is used, the maximum ratio of miter length to line with to be used
|
void |
setPath(CGPathRef value)
The CGPath to be drawn (in the Node's coordinate space)
|
void |
setStrokeColor(UIColor value)
The color to draw the path with.
|
void |
setStrokeShader(SKShader value)
An optional SKShader used for the Shape's Stroke.
|
void |
setStrokeTexture(SKTexture value)
An optional Texture used for the Shape's stroke.
|
void |
setValueForAttributeNamed(SKAttributeValue value,
java.lang.String key) |
static void |
setVersion_static(long aVersion) |
static SKShapeNode |
shapeNodeWithCircleOfRadius(double radius)
Create a Shape Node representing an circle centered at the Node's origin.
|
static SKShapeNode |
shapeNodeWithEllipseInRect(CGRect rect)
Create a Shape Node representing an Ellipse inscribed within a Rect
|
static SKShapeNode |
shapeNodeWithEllipseOfSize(CGSize size)
Create a Shape Node representing an Ellipse inscribed within a Rect centered at the Node's origin.
|
static SKShapeNode |
shapeNodeWithPath(CGPathRef path)
Create a Shape Node using a CGPathRef, optionally centered at the Node's origin.
|
static SKShapeNode |
shapeNodeWithPathCentered(CGPathRef path,
boolean centered) |
static SKShapeNode |
shapeNodeWithPointsCount(org.moe.natj.general.ptr.Ptr<CGPoint> points,
long numPoints)
Create a Shape Node representing an a series of Points interpreted as line segments
|
static SKShapeNode |
shapeNodeWithRect(CGRect rect)
Create a Shape Node representing a Rect.
|
static SKShapeNode |
shapeNodeWithRectCornerRadius(CGRect rect,
double cornerRadius)
Create a Shape Node representing a rounded rect with a corner radius
|
static SKShapeNode |
shapeNodeWithRectOfSize(CGSize size)
Create a Shape Node representing a rect centered at the Node's origin.
|
static SKShapeNode |
shapeNodeWithRectOfSizeCornerRadius(CGSize size,
double cornerRadius)
Create a Shape Node representing a rounded rect with a corner radius centered at the Node's origin.
|
static SKShapeNode |
shapeNodeWithSplinePointsCount(org.moe.natj.general.ptr.Ptr<CGPoint> points,
long numPoints)
Create a Shape Node representing a smoothed spline that passes through a series of Points
|
UIColor |
strokeColor()
The color to draw the path with.
|
SKShader |
strokeShader()
An optional SKShader used for the Shape's Stroke.
|
SKTexture |
strokeTexture()
An optional Texture used for the Shape's stroke.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
SKAttributeValue |
valueForAttributeNamed(java.lang.String key) |
static long |
version_static() |
actionForKey, addChild, alpha, calculateAccumulatedFrame, canBecomeFocused, childNodeWithName, children, constraints, containsPoint, convertPointFromNode, convertPointToNode, copyWithZone, didHintFocusMovement, didUpdateFocusInContextWithAnimationCoordinator, encodeWithCoder, entity, enumerateChildNodesWithNameUsingBlock, focusBehavior, focusEffect, focusGroupIdentifier, focusGroupPriority, focusItemContainer, frame, hasActions, inParentHierarchy, insertChildAtIndex, intersectsNode, isEqualToNode, isHidden, isPaused, isTransparentFocusItem, isUserInteractionEnabled, moveToParent, name, nodeAtPoint, nodesAtPoint, objectForKeyedSubscript, parent, parentFocusEnvironment, physicsBody, position, preferredFocusedView, preferredFocusEnvironments, reachConstraints, removeActionForKey, removeAllActions, removeAllChildren, removeChildrenInArray, removeFromParent, runAction, runActionCompletion, runActionWithKey, scene, setAlpha, setConstraints, setEntity_unsafe, setEntity, setFocusBehavior, setHidden, setName, setNeedsFocusUpdate, setPaused, setPhysicsBody, setPosition, setReachConstraints, setScale, setSpeed, setUserData, setUserInteractionEnabled, setXScale, setYScale, setZPosition, setZRotation, shouldUpdateFocusInContext, speed, updateFocusIfNeeded, userData, xScale, yScale, zPosition, zRotationactivityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, 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 SKShapeNode alloc()
public static SKShapeNode 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 void clearTextInputContextIdentifier(java.lang.String identifier)
public static java.lang.String debugDescription_static()
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 SKShapeNode new_objc()
public static SKShapeNode node()
public static SKShapeNode nodeWithFileNamed(java.lang.String filename)
public static NSArray<? extends GKPolygonObstacle> obstaclesFromNodeBounds(NSArray<? extends SKNode> nodes)
public static NSArray<? extends GKPolygonObstacle> obstaclesFromNodePhysicsBodies(NSArray<? extends SKNode> nodes)
public static NSArray<? extends GKPolygonObstacle> obstaclesFromSpriteTexturesAccuracy(NSArray<? extends SKNode> sprites, float accuracy)
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 SKShapeNode shapeNodeWithCircleOfRadius(double radius)
public static SKShapeNode shapeNodeWithEllipseInRect(CGRect rect)
public static SKShapeNode shapeNodeWithEllipseOfSize(CGSize size)
public static SKShapeNode shapeNodeWithPath(CGPathRef path)
public static SKShapeNode shapeNodeWithPathCentered(CGPathRef path, boolean centered)
public static SKShapeNode shapeNodeWithPointsCount(org.moe.natj.general.ptr.Ptr<CGPoint> points, long numPoints)
public static SKShapeNode shapeNodeWithRect(CGRect rect)
public static SKShapeNode shapeNodeWithRectCornerRadius(CGRect rect, double cornerRadius)
public static SKShapeNode shapeNodeWithRectOfSize(CGSize size)
public static SKShapeNode shapeNodeWithRectOfSizeCornerRadius(CGSize size, double cornerRadius)
public static SKShapeNode shapeNodeWithSplinePointsCount(org.moe.natj.general.ptr.Ptr<CGPoint> points, long numPoints)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public NSDictionary<java.lang.String,? extends SKAttributeValue> attributeValues()
attributeValues in class SKNodepublic long blendMode()
SKNode.SKBlendModepublic UIColor fillColor()
public SKShader fillShader()
public SKTexture fillTexture()
public double glowWidth()
public SKShapeNode init()
public SKShapeNode initWithCoder(NSCoder aDecoder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class SKNodepublic boolean isAntialiased()
public void setAntialiased(boolean value)
public int lineCap()
public int lineJoin()
public double lineLength()
public double lineWidth()
public double miterLimit()
public CGPathRef path()
public void setAttributeValues(NSDictionary<java.lang.String,? extends SKAttributeValue> value)
setAttributeValues in class SKNodepublic void setBlendMode(long value)
SKNode.SKBlendModepublic void setFillColor(UIColor value)
public void setFillShader(SKShader value)
public void setFillTexture(SKTexture value)
public void setGlowWidth(double value)
public void setLineCap(int value)
public void setLineJoin(int value)
public void setLineWidth(double value)
public void setMiterLimit(double value)
public void setPath(CGPathRef value)
public void setStrokeColor(UIColor value)
public void setStrokeShader(SKShader value)
public void setStrokeTexture(SKTexture value)
public void setValueForAttributeNamed(SKAttributeValue value, java.lang.String key)
setValueForAttributeNamed in class SKNodepublic UIColor strokeColor()
public SKShader strokeShader()
public SKTexture strokeTexture()
public SKAttributeValue valueForAttributeNamed(java.lang.String key)
valueForAttributeNamed in class SKNodepublic static SKShapeNode nodeWithFileNamedSecurelyWithClassesAndError(java.lang.String filename, NSSet<? extends org.moe.natj.objc.Class> classes, org.moe.natj.general.ptr.Ptr<NSError> error)
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class SKNode