Send feedback
Stroke Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
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.
Represents a sequence of touch points between a pen-/finger-down and a pen-/finger-up
events.
Nested Class Summary
interface
Represents optional properties of a Stroke
,
e.g., stroke color and width.
Public Methods
public abstract List
<? extends Point
>
getPointsInGlobalCoordinates
()
Returns the list of touch points in global coordinates.
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.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[]]