HERE Android SDK Developer's Guide

BasicClusterStyle

The class BasicClusterStyle is a member of com.here.android.mpa.cluster .

Class Summary

public class BasicClusterStyle

extends com.here.android.mpa.cluster.ClusterStyle, java.lang.Object

Basic implementation of ClusterStyle.

[For complete information, see the section Class Details]

See also:

ClusterTheme

ClusterStyle

Constructor Summary

Table 1. Constructors in BasicClusterStyle
Constructors

BasicClusterStyle ()

Creates new style with default icon stroke, fill and font colors.

BasicClusterStyle (int strokeColor, int fillColor, int fontColor)

Creates new style with specific stroke, fill and font colors.

Method Summary

Table 2. Methods in BasicClusterStyle
Methods

public int getFillColor ()

Returns the current color for filling the cluster icon.

public int getFontColor ()

Returns color of the font which is used to display the density in the cluster icon.

public int getStrokeColor ()

Return the color of the cluster icon outline.

public BasicClusterStyle setFillColor (int fillColor)

Set the color for filling the cluster icon.

public BasicClusterStyle setFontColor (int fontColor)

Sets color of the font, which is used to display the density in the cluster icon.

public BasicClusterStyle setStrokeColor (int strokeColor)

Set the color of the cluster icon outline.

public String toString ()

For documentation, see java.lang.Object

Class Details

Basic implementation of ClusterStyle. This cluster style can be used if you need to apply some basic customizations to the default cluster style.

Note that in the default and basic cluster styles, the size of the circle grows as the density grows.

The colors in this class need to be specified in an ARGB packed integer format. This packed integer is made up of 4 bytes: alpha, red, green, blue. Each color component has a value range from [0..255] with 0 meaning no contribution for that component, and 255 meaning 100% contribution.

See also:

ClusterTheme

ClusterStyle

Constructor Details

BasicClusterStyle ()

Creates new style with default icon stroke, fill and font colors.

BasicClusterStyle (int strokeColor, int fillColor, int fontColor)

Creates new style with specific stroke, fill and font colors.

Parameters:

  • strokeColor

    Color of the icon's outline, as a 4-byte ARGB value.

  • fillColor

    Fill color of the icon, as a 4-byte ARGB value.

  • fontColor

    Color of the font inside the icon, as a 4-byte ARGB value.

Method Details

public int getFillColor ()

Returns the current color for filling the cluster icon.

Returns:

Fill color of the icon, as a 4-byte ARGB value.

public int getFontColor ()

Returns color of the font which is used to display the density in the cluster icon.

Returns:

Color of the font inside the icon, in a 4-byte ARGB value.

public int getStrokeColor ()

Return the color of the cluster icon outline.

Returns:

Stroke color of the icon, as a 4-byte ARGB value.

public BasicClusterStyle setFillColor (int fillColor)

Set the color for filling the cluster icon.

Parameters:

  • fillColor

    Fill color of the icon, as a 4-byte ARGB value.

public BasicClusterStyle setFontColor (int fontColor)

Sets color of the font, which is used to display the density in the cluster icon.

Parameters:

  • fontColor

    Color of the font inside the icon as a 4-byte ARGB value.

public BasicClusterStyle setStrokeColor (int strokeColor)

Set the color of the cluster icon outline.

Parameters:

  • strokeColor

    Stroke color of the icon, as a 4-byte ARGB value.

public String toString ()

For documentation, see java.lang.Object

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.