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.
| Known Indirect Subclasses |
Represents a sequence of touch points between a pen-/finger-down and a pen-/finger-up events.
Nested Class Summary
| interface | Stroke.Properties | Represents optional properties of a
Stroke,
e.g., stroke color and width. |
|
Public Method Summary
| abstract List<? extends Point> |
getPointsInGlobalCoordinates()
Returns the list of touch points in global coordinates.
|
| abstract Stroke.Properties |
getProperties()
Returns optional
Stroke.Properties of a Stroke.
|
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.