Class FontPointIcon
java.lang.Object
io.jmix.mapsui.component.layer.style.GeometryStyle
io.jmix.mapsui.component.layer.style.PointStyle
io.jmix.mapsui.component.layer.style.FontPointIcon
Point icon (marker) with an inner font-icon.
-
Constructor Summary
ModifierConstructorDescriptionprotected
FontPointIcon
(com.vaadin.server.Resource icon) Creates an instance of marker icon with an inner font-icon. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Returns string representing rgb code of the icon's path fill color.Returns string representing rgb code of the icon's path stroke color.com.vaadin.server.Resource
Returns string representing rgb code of the icon's inner font symbol fill color.setIconAnchor
(double x, double y) Sets the coordinates of the "tip" of the icon in pixels (relative to its top left corner).setIconPathFillColor
(String iconPathFillColor) Sets string representing rgb code of the icon's path fill color.setIconPathStrokeColor
(String iconPathStrokeColor) Sets string representing rgb code of the icon's path stroke color.setIconTextFillColor
(String iconTextFillColor) Sets string representing rgb code of the icon's inner font symbol fill color.
-
Constructor Details
-
FontPointIcon
protected FontPointIcon(com.vaadin.server.Resource icon) Creates an instance of marker icon with an inner font-icon.
-
-
Method Details
-
getIconResource
@Nullable public com.vaadin.server.Resource getIconResource() -
getIconPathFillColor
Returns string representing rgb code of the icon's path fill color.- Returns:
- String representation of the rgb code
-
setIconPathFillColor
Sets string representing rgb code of the icon's path fill color.- Parameters:
iconPathFillColor
- String representation of the rgb code- Returns:
- the instance of
FontPointIcon
on which this method was called. Useful for a fluent API.
-
getIconPathStrokeColor
Returns string representing rgb code of the icon's path stroke color.- Returns:
- String representation of the rgb code
-
setIconPathStrokeColor
Sets string representing rgb code of the icon's path stroke color.- Parameters:
iconPathStrokeColor
- String representation of the rgb code- Returns:
- the instance of
FontPointIcon
on which this method was called. Useful for a fluent API.
-
getIconTextFillColor
Returns string representing rgb code of the icon's inner font symbol fill color.- Returns:
- String representation of the rgb code
-
setIconTextFillColor
Sets string representing rgb code of the icon's inner font symbol fill color.- Parameters:
iconTextFillColor
- String representation of the rgb code- Returns:
- the instance of
FontPointIcon
on which this method was called. Useful for a fluent API.
-
getIconAnchor
public double[] getIconAnchor() -
setIconAnchor
Sets the coordinates of the "tip" of the icon in pixels (relative to its top left corner). The icon will be aligned so that this point matches the geographical coordinates of a layer's point. By default: [12.5, 40].- Parameters:
x
-y
-- Returns:
- the instance of
FontPointIcon
on which this method was called. Useful for a fluent API.
-