StampStyle
Stay organized with collections
Save and categorize content based on your preferences.
Describes the drawing style for a stamped image or texture over a StrokeStyle
.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Protected Constructor Summary
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcel arg0,
int arg1)
|
Public Methods
The image or texture to be repeated over a stroke.
The rendered stamps will be the width of the line that was set for the StrokeStyle.
The image will be oriented with the top of the image facing the start point, and the
bottom of the image facing the end point. For example, if the underlying line has two
points and the start point is directly above the endpoint, the stamp will appear in an
upright orientation.
Returns
- the bitmap image for this stamp style.
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 2024-10-31 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 2024-10-31 UTC."],[[["`StampStyle` defines how an image or texture is drawn repeatedly along a stroke on a map."],["It provides options for using a repeating image (`SpriteStyle`) or a texture (`TextureStyle`)."],["You can access the image/texture used for the stamp via the `getStamp()` method."],["The stamp's width is determined by the stroke's width, and its orientation follows the stroke's direction."]]],["`StampStyle`, which extends `Object` and implements `Parcelable`, defines the drawing style for stamped images or textures over a `StrokeStyle`. It has two direct subclasses: `SpriteStyle` (repeating complete image) and `TextureStyle` (texture-based). `StampStyle` has a protected constructor that accepts a `BitmapDescriptor`. The key public method, `getStamp()`, returns the `BitmapDescriptor` representing the image or texture to be repeated. Stamps will be oriented and scaled to fit the associated stroke's width and direction.\n"]]