Class PKStrokePoint

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class PKStrokePoint
    extends NSObject
    implements NSCopying
    A point value stores all the attributes of a PKStroke at a specific point. `PKStrokePoint` stores its properties compressed, the value read for a property may not exactly equal the value set for a property. API-Since: 14.0
    • Constructor Detail

      • PKStrokePoint

        protected PKStrokePoint​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static PKStrokePoint allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • altitude

        public double altitude()
        Altitude used to create this point in radians, 0.0-π/2 radians
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • azimuth

        public double azimuth()
        Azimuth of the point in radians, 0.0-2π radians
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • force

        public double force()
        Force used to create this point.
      • hash_static

        public static long hash_static()
      • initWithLocationTimeOffsetSizeOpacityForceAzimuthAltitude

        public PKStrokePoint initWithLocationTimeOffsetSizeOpacityForceAzimuthAltitude​(CGPoint location,
                                                                                       double timeOffset,
                                                                                       CGSize size,
                                                                                       double opacity,
                                                                                       double force,
                                                                                       double azimuth,
                                                                                       double altitude)
        Create a new point with the provided properties.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • location

        public CGPoint location()
        Location of the point.
      • opacity

        public double opacity()
        Opacity of the point 0-2.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • size

        public CGSize size()
        Size of the point.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • timeOffset

        public double timeOffset()
        Time offset since the start of the stroke path in seconds.
      • version_static

        public static long version_static()
      • initWithLocationTimeOffsetSizeOpacityForceAzimuthAltitudeSecondaryScale

        public PKStrokePoint initWithLocationTimeOffsetSizeOpacityForceAzimuthAltitudeSecondaryScale​(CGPoint location,
                                                                                                     double timeOffset,
                                                                                                     CGSize size,
                                                                                                     double opacity,
                                                                                                     double force,
                                                                                                     double azimuth,
                                                                                                     double altitude,
                                                                                                     double secondaryScale)
        Create a new point with the provided properties.
      • secondaryScale

        public double secondaryScale()
        The scaling of the point for secondary effects. For example the scaling of the pigment in the watercolor ink. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.