Package com.myscript.iink
Class HandwritingResult
java.lang.Object
com.myscript.iink.HandwritingResult
- All Implemented Interfaces:
AutoCloseable
Represents a handwritten content generated by a handwriting generator.
- Since:
- 4.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()protected voidfinalize()final booleanisClosed()Tells whether theclose()method has been called.final @NotNull PointerEvent[]toPointerEvents(@NotNull Transform viewTransform) Returns a vector of pointer events representing this handwriting result.
-
Method Details
-
finalize
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-
isClosed
public final boolean isClosed()Tells whether theclose()method has been called. Once an object is closed any method will throwIllegalStateException.- Returns:
trueif this object is closed.
-
toPointerEvents
@NotNull public final @NotNull PointerEvent[] toPointerEvents(@NotNull @NotNull Transform viewTransform) Returns a vector of pointer events representing this handwriting result.- Parameters:
viewTransform- the view transform used to transform the result from millimeters to another coordinate system.- Returns:
- a vector of pointer events.
- Throws:
IllegalStateException- when this handwriting result is closed.IllegalArgumentException- when transform is not valid for this operation.
-