Class FontPointIcon


public class FontPointIcon extends PointStyle
Point icon (marker) with an inner font-icon.
  • 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

      public String getIconPathFillColor()
      Returns string representing rgb code of the icon's path fill color.
      Returns:
      String representation of the rgb code
    • setIconPathFillColor

      public FontPointIcon setIconPathFillColor(String iconPathFillColor)
      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

      public String getIconPathStrokeColor()
      Returns string representing rgb code of the icon's path stroke color.
      Returns:
      String representation of the rgb code
    • setIconPathStrokeColor

      public FontPointIcon setIconPathStrokeColor(String iconPathStrokeColor)
      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

      public String getIconTextFillColor()
      Returns string representing rgb code of the icon's inner font symbol fill color.
      Returns:
      String representation of the rgb code
    • setIconTextFillColor

      public FontPointIcon setIconTextFillColor(String iconTextFillColor)
      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

      public FontPointIcon setIconAnchor(double x, double y)
      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.