public class GeometryStyles.PointStyleBuilder
extends java.lang.Object
| Constructor and Description |
|---|
PointStyleBuilder() |
| Modifier and Type | Method and Description |
|---|---|
DivPointIcon |
withDivIcon(java.lang.String html)
A point will be represented on a map by a fully custom lightweight icon
that uses the given
<div> element instead of an image. |
FontPointIcon |
withFontIcon(io.jmix.ui.icon.Icons.Icon icon)
A point will be represented on a map by a marker with an inner font-icon from icon set.
|
FontPointIcon |
withFontIcon(java.lang.String icon)
A point will be represented on a map by a marker with an inner font-icon.
|
ImagePointIcon |
withImageIcon(io.jmix.ui.icon.Icons.Icon icon)
A point will be represented on a map by a custom marker icon using the given icon from icon set.
|
ImagePointIcon |
withImageIcon(java.lang.String icon)
A point will be represented on a map by a custom marker icon using the given icon.
|
ImagePointIcon |
withImageIcon(java.net.URL iconUrl)
A point will be represented on a map by a custom marker icon using the image located in the given URL.
|
public FontPointIcon withFontIcon(io.jmix.ui.icon.Icons.Icon icon)
An icon passed as a method parameter supposed to be a font-icon, otherwise all settings will be ignored and the default marker will be used instead.
icon - font-icon to be used inside a marker.
For example, CubaIcon.SHOPPING_BAG.public FontPointIcon withFontIcon(java.lang.String icon)
An icon passed as a method parameter supposed to be a font-icon, otherwise all settings will be ignored and the default marker will be used instead.
icon - source of the icon.
For example, "font-icon:SHOPPING_BAG".public ImagePointIcon withImageIcon(io.jmix.ui.icon.Icons.Icon icon)
This method doesn't support font-icons. To work with font-icons,
use withFontIcon(Icons.Icon) instead.
icon - to be used as a marker icon.public ImagePointIcon withImageIcon(java.lang.String icon)
icon - source of the icon.
For example, "theme:awesomeFolder/superIcon.png".public ImagePointIcon withImageIcon(java.net.URL iconUrl)
iconUrl - url of the imagepublic DivPointIcon withDivIcon(java.lang.String html)
<div> element instead of an image.