HERE Android SDK Developer's Guide

StreetLevelIconSize

The class StreetLevelIconSize is a member of com.here.android.mpa.streetlevel .

Class Summary

public final class StreetLevelIconSize

extends java.lang.Object

Encapsulates the size properties for a StreetLevelIcon.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in StreetLevelIconSize
Nested Classes

public static final enumeration StreetLevelIconSize.ScalePolicy

Represents values describing the policy for scaling a StreetLevelIconSize.

Constructor Summary

Table 2. Constructors in StreetLevelIconSize
Constructors

StreetLevelIconSize (int width, int height)

Public Constructor

Method Summary

Table 3. Methods in StreetLevelIconSize
Methods

public float getFarDistance ()

Gets the current far distance of a StreetLevelIcon.

public float getFarScale ()

Gets the current far scale of a StreetLevelIcon.

public int getHeight ()

Gets the current height of a StreetLevelIcon, in pixels.

public float getNearDistance ()

Gets the current near distance of a StreetLevelIcon.

public float getNearScale ()

Gets the current near scale of a StreetLevelIcon.

public ScalePolicy getScalePolicy ()

Gets the current StreetLevelIconSize.ScalePolicy of a StreetLevelIcon.

public int getWidth ()

Gets the current width of a StreetLevelIcon, in pixels.

public StreetLevelIconSize setFarDistance (float farDistance)

Sets a far distance for the StreetLevelIconSize.Default value is 1.0f.

public StreetLevelIconSize setFarScale (float farScale)

Sets a far scale for the StreetLevelIconSize.Default value is 1.0f.

public StreetLevelIconSize setHeight (int height)

Sets a height, in pixels, for the StreetLevelIconSize.

public StreetLevelIconSize setNearDistance (float nearDistance)

Sets a near distance for the StreetLevelIconSize.

public StreetLevelIconSize setNearScale (float nearScale)

Sets a near scale for the StreetLevelIconSize.

public StreetLevelIconSize setScalePolicy (ScalePolicy policy)

Sets a StreetLevelIconSize.ScalePolicy for the StreetLevelIconSize.

public StreetLevelIconSize setWidth (int width)

Sets a width, in pixels, for the StreetLevelIconSize.

Class Details

Encapsulates the size properties for a StreetLevelIcon. Changes to properties of this interface are reflected in the displayed size of the associated StreetLevelIcon.

Constructor Details

StreetLevelIconSize (int width, int height)

Public Constructor

Parameters:

  • width

    Width of the icon, in pixels

  • height

    Height of the icon, in pixels

Method Details

public float getFarDistance ()

Gets the current far distance of a StreetLevelIcon.

Returns:

The current far distance

public float getFarScale ()

Gets the current far scale of a StreetLevelIcon.

Returns:

The current far scale

public int getHeight ()

Gets the current height of a StreetLevelIcon, in pixels.

Returns:

The current height

public float getNearDistance ()

Gets the current near distance of a StreetLevelIcon.

Returns:

The current near distance

public float getNearScale ()

Gets the current near scale of a StreetLevelIcon. Default value is 1.0f.

Returns:

The current near scale

public ScalePolicy getScalePolicy ()

Gets the current StreetLevelIconSize.ScalePolicy of a StreetLevelIcon.

Returns:

The current StreetLevelIconSize.ScalePolicy

public int getWidth ()

Gets the current width of a StreetLevelIcon, in pixels.

Returns:

The current width

public StreetLevelIconSize setFarDistance (float farDistance)

Sets a far distance for the StreetLevelIconSize.Default value is 1.0f.

Parameters:

  • farDistance

    Desired far distance

Returns:

This StreetLevelIconSize object

public StreetLevelIconSize setFarScale (float farScale)

Sets a far scale for the StreetLevelIconSize.Default value is 1.0f.

Parameters:

  • farScale

    Desired far scale

Returns:

This StreetLevelIconSize object

public StreetLevelIconSize setHeight (int height)

Sets a height, in pixels, for the StreetLevelIconSize.

Parameters:

  • height

    Desired height

Returns:

This StreetLevelIconSize object

public StreetLevelIconSize setNearDistance (float nearDistance)

Sets a near distance for the StreetLevelIconSize. Default value is 1.0f.

Parameters:

  • nearDistance

    Desired near distance

Returns:

This StreetLevelIconSize object

public StreetLevelIconSize setNearScale (float nearScale)

Sets a near scale for the StreetLevelIconSize. Default value is 1.0f.

Parameters:

  • nearScale

    Desired near scale

Returns:

This StreetLevelIconSize object

public StreetLevelIconSize setScalePolicy (ScalePolicy policy)

Sets a StreetLevelIconSize.ScalePolicy for the StreetLevelIconSize. Default value is ScalePolicy.FIXED .

Parameters:

Returns:

This StreetLevelIconSize object

public StreetLevelIconSize setWidth (int width)

Sets a width, in pixels, for the StreetLevelIconSize.

Parameters:

  • width

    Desired width

Returns:

This StreetLevelIconSize 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.