Interface AbstractClusterSource.HasPointTextStyle

All Known Subinterfaces:
AbstractClusterSource.HasClusterSourceOptions
All Known Implementing Classes:
ClusterSource, NoOpClusterSource
Enclosing class:
AbstractClusterSource

public static interface AbstractClusterSource.HasPointTextStyle
Interface to be implemented by sources that should provide pointTextStyle management.
  • Method Details

    • getPointTextStyle

      Style getPointTextStyle()
      Returns:
      the text style of cluster marker
    • setPointTextStyle

      void setPointTextStyle(Style pointTextStyle)
      Sets the text style of cluster marker. For instance, default text style is defined by the following:
       clusterSource.setPointTextStyle(
           new Style()
                   .withText(new TextStyle()
                           .withFont("12px sans-serif")
                           .withOffsetY(1)
                           .withFill(new Fill("#fff"))));
       
      Parameters:
      pointTextStyle - text style to set