StampStyle
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
继承的方法摘要
继承自 java.lang.Object 类
布尔值
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
整型
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
字符串
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
公共方法
要在描边上重复的图片或纹理。
呈现的图章将采用为 StrokeStyle 设置的线条的宽度。图像的朝向将设置为图像顶部朝向起点,底部朝向终点。例如,如果底层线条有两个点,并且起点位于端点正上方,那么图章将以竖直方向显示。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003e\u003ccode\u003eStampStyle\u003c/code\u003e defines how an image or texture is drawn repeatedly over a stroke on a map.\u003c/p\u003e\n"],["\u003cp\u003eIt has two subclasses: \u003ccode\u003eSpriteStyle\u003c/code\u003e (for repeating point sprites) and \u003ccode\u003eTextureStyle\u003c/code\u003e (for non-repeating textures).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetStamp()\u003c/code\u003e method retrieves the image or texture used for the stamp.\u003c/p\u003e\n"],["\u003cp\u003eThe stamp's width matches the stroke's line width and its orientation aligns with the stroke's direction.\u003c/p\u003e\n"]]],[],null,["# StampStyle\n\npublic abstract class **StampStyle** extends Object \n\n|---|---|---|\n| Known Direct Subclasses [SpriteStyle](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/SpriteStyle), [TextureStyle](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/TextureStyle) |----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [SpriteStyle](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/SpriteStyle) | Describes a [StampStyle](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/StampStyle), where the associated stamp texture is treated as a repeating point sprite. | | [TextureStyle](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/TextureStyle) | Describes a [StampStyle](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/StampStyle), where the associated stamp texture is not treated as a repeating point sprite. | |||\n\nDescribes the drawing style for a stamped image or texture over a [StrokeStyle](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/StrokeStyle). \n\n### Public Method Summary\n\n|------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BitmapDescriptor](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/BitmapDescriptor) | [getStamp](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/StampStyle#getStamp())() The image or texture to be repeated over a stroke. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public [BitmapDescriptor](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/BitmapDescriptor)\n**getStamp**\n()\n\nThe image or texture to be repeated over a stroke.\n\nThe rendered stamps will be the width of the line that was set for the StrokeStyle. The\nimage will be oriented with the top of the image facing the start point, and the bottom of the\nimage facing the end point. For example, if the underlying line has two points and the start\npoint is directly above the endpoint, the stamp will appear in an upright orientation. \n\n##### Returns\n\n- the bitmap image for this stamp style."]]