AI-generated Key Takeaways
-
The Stroke interface represents a sequence of touch points between pen-down and pen-up events.
-
Stroke has a nested interface called Properties which represents optional properties like color and width.
-
The getPointsInGlobalCoordinates method returns the list of touch points in global coordinates.
-
The getProperties method returns optional Stroke properties.
Represents a sequence of touch points between a pen-/finger-down and a pen-/finger-up events.
Nested Class Summary
Public Method Summary
| abstract List <? extends Point > | |
| abstract Stroke.Properties |
Public Methods
public abstract List <? extends Point > getPointsInGlobalCoordinates ()
Returns the list of touch points in global coordinates.
public abstract Stroke.Properties getProperties ()
Returns optional Stroke.Properties
of a Stroke
.
Based on the properties, the stroke can be treated as either a regular ink stroke, or a special type, like highlighter.


