Class PKStrokePath

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class PKStrokePath
    extends NSObject
    implements NSCopying
    A uniform cubic B-spline representing the point data of a `PKStroke`.
    • Constructor Detail

      • PKStrokePath

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

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

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

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

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

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

        public long count()
        The number of control points in this stroke path.
      • creationDate

        public NSDate creationDate()
        The time at which this stroke path was started. The `timeOffset` of contained PKStrokePoints is relative to this date.
      • debugDescription_static

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

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

        public void enumerateInterpolatedPointsInRangeStrideByDistanceUsingBlock​(PKFloatRange range,
                                                                                 double distanceStep,
                                                                                 PKStrokePath.Block_enumerateInterpolatedPointsInRangeStrideByDistanceUsingBlock block)
        Executes a given block using each point in a range with a distance step.
        Parameters:
        range - The parametric range to enumerate points in.
        distanceStep - The distance to step between points.
        block - The block to execute for each point. This block takes two parameters point The interpolated point on the spline. stop A reference to a Boolean value. Setting the value to YES within the block stops further enumeration of the array. If a block stops further enumeration, that block continues to run until it’s finished.
      • enumerateInterpolatedPointsInRangeStrideByParametricStepUsingBlock

        public void enumerateInterpolatedPointsInRangeStrideByParametricStepUsingBlock​(PKFloatRange range,
                                                                                       double parametricStep,
                                                                                       PKStrokePath.Block_enumerateInterpolatedPointsInRangeStrideByParametricStepUsingBlock block)
        Executes a given block using each point in a range with a parametric step.
        Parameters:
        range - The parametric range to enumerate points in.
        parametricStep - The parametric step between points.
        block - The block to execute for each point. This block takes two parameters point The interpolated point on the spline. stop A reference to a Boolean value. Setting the value to YES within the block stops further enumeration of the array. If a block stops further enumeration, that block continues to run until it’s finished.
      • enumerateInterpolatedPointsInRangeStrideByTimeUsingBlock

        public void enumerateInterpolatedPointsInRangeStrideByTimeUsingBlock​(PKFloatRange range,
                                                                             double timeStep,
                                                                             PKStrokePath.Block_enumerateInterpolatedPointsInRangeStrideByTimeUsingBlock block)
        Executes a given block using each point in a range with a time step.
        Parameters:
        range - The parametric range to enumerate points in.
        timeStep - The time interval to step between points.
        block - The block to execute for each point. This block takes two parameters point The interpolated point on the spline. stop A reference to a Boolean value. Setting the value to YES within the block stops further enumeration of the array. If a block stops further enumeration, that block continues to run until it’s finished.
      • hash_static

        public static long hash_static()
      • initWithControlPointsCreationDate

        public PKStrokePath initWithControlPointsCreationDate​(NSArray<? extends PKStrokePoint> controlPoints,
                                                              NSDate creationDate)
        Create a stroke path value with the given cubic B-spline control points.
        Parameters:
        controlPoints - An array of control points for a cubic B-spline.
        creationDate - The start time of this path.
      • instanceMethodSignatureForSelector

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

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

        public CGPoint interpolatedLocationAt​(double parametricValue)
        The on-curve location for the floating point [0, count-1] `parametricValue` parameter. This has better performance than `[self interpolatedPointAt: parametricValue].location` for when only the location is required.
      • interpolatedPointAt

        public PKStrokePoint interpolatedPointAt​(double parametricValue)
        The on-curve point for the floating point [0, count-1] `parametricValue` parameter.
      • isSubclassOfClass

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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • objectAtIndexedSubscript

        public PKStrokePoint objectAtIndexedSubscript​(long i)
        Returns B-spline control point at index `i`.
      • parametricValueOffsetByDistance

        public double parametricValueOffsetByDistance​(double parametricValue,
                                                      double distanceStep)
        Returns a parametric value on the B-spline that is a specified distance from the given parametric value.
        Parameters:
        parametricValue - The floating point [0, count-1] parametric value.
        distanceStep - The distance to offset `parametricValue`. `distanceStep` can be positive or negative.
        Returns:
        A parametric value offset by `distanceStep` from `parametricValue`.
      • parametricValueOffsetByTime

        public double parametricValueOffsetByTime​(double parametricValue,
                                                  double timeStep)
        Returns a parametric value on the B-spline that is a specified time from the given parametric value.
        Parameters:
        parametricValue - The floating point [0, count-1] parametric value.
        timeStep - The time to offset `parametricValue`. `timeStep` can be positive or negative.
        Returns:
        A parametric value offset by `timeStep` from `parametricValue`.
      • pointAtIndex

        public PKStrokePoint pointAtIndex​(long i)
        Returns B-spline control point at index `i`.
      • 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)
      • superclass_static

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

        public static long version_static()