Stay organized with collections
Save and categorize content based on your preferences.
Direction
class Direction
Specifies how closed shapes (e.g. rects, ovals) are oriented when they are added to a path.
Summary
Enum values |
counter-clockwise
|
clockwise
|
Enum values
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["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-02-10 UTC."],[],[],null,["# Path.Direction\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDirection\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/Path.Direction \"View this page in Java\") \n\n```\nclass Direction\n```\n\n|---|---|--------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.graphics.Path.Direction](#)\\\u003e ||\n| | ↳ | [android.graphics.Path.Direction](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Path.Direction.CCW](#ENUM_VALUE:CCW), [Path.Direction.CW](#ENUM_VALUE:CW) |---------------------------------------|-------------------| | [Path.Direction.CCW](#ENUM_VALUE:CCW) | counter-clockwise | | [Path.Direction.CW](#ENUM_VALUE:CW) | clockwise | |\n\nSpecifies how closed shapes (e.g. rects, ovals) are oriented when they are added to a path.\n\nSummary\n-------\n\n| Enum values ||\n|------------------------------------------|---|\n| [CCW](#ENUM_VALUE:CCW) counter-clockwise |\n| [CW](#ENUM_VALUE:CW) clockwise |\n\nEnum values\n-----------\n\n### CCW\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val CCW : Path.Direction\n```\n\ncounter-clockwise \n\n### CW\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val CW : Path.Direction\n```\n\nclockwise"]]