public class

FioriMarkerOptions

extends FioriAnnotationOptions
implements Comparable<T>
java.lang.Object
   ↳ com.sap.cloud.mobile.fiori.maps.FioriAnnotationOptions
     ↳ com.sap.cloud.mobile.fiori.maps.FioriMarkerOptions
Known Direct Subclasses

Class Overview

Options for marker creation. Either iconResourceId, numberLabel or drawable should be provided to provide content inside the marker. Use FioriMarkerOptions.Builder to create an immutable FioriMarkerOptions instance.

Summary

Nested Classes
class FioriMarkerOptions.Builder  
enum FioriMarkerOptions.PriorityIconResource Predefined priority icons to be used with marker  
Constants
int CLUSTER_COLOR
int SELECTED_HEIGHT
int SELECTED_WIDTH
int UNSELECTED_HEIGHT
int UNSELECTED_WIDTH
Fields
public final String clusteringId The cluster ID for this marker.
public final int color
public final Drawable drawable
public final int iconResourceId
public final String layer The layer for this marker.
public final String numberLabel
public final FioriPoint point The markers position on the map.
public final int priorityIconId
public final boolean showInitials Show initials in marker if no drawable or iconResourceId is provided.
[Expand]
Inherited Fields
From class com.sap.cloud.mobile.fiori.maps.FioriAnnotationOptions
Protected Constructors
FioriMarkerOptions(FioriPoint point, String title, int iconResourceId, Drawable drawable, int color, String legendTitle, String clusteringId, String numberLabel, boolean showInitials, int priorityIconId, String layer, Object tag)
Public Methods
String bitmapCacheKey(boolean isSelected)
This method is used as a key for caching the markers.
int compareTo(FioriMarkerOptions o)
Drawable createLegendDrawable(Context context)
Creates the legend drawable with a round background.
LegendItem createLegendItem(Context context)
Bitmap createMarkerBitmap(Context context, boolean selected)
Creates marker bitmap.
boolean equals(Object obj)
LegendItem.LegendType getLegendType()
int hashCode()
FioriMarkerOptions.Builder newBuilder()
[Expand]
Inherited Methods
From class com.sap.cloud.mobile.fiori.maps.FioriAnnotationOptions
From class java.lang.Object
From interface com.sap.cloud.mobile.fiori.maps.LegendItemSource
From interface java.lang.Comparable

Constants

public static final int CLUSTER_COLOR

Constant Value: -1 (0xffffffff)

public static final int SELECTED_HEIGHT

Constant Value: 74 (0x0000004a)

public static final int SELECTED_WIDTH

Constant Value: 60 (0x0000003c)

public static final int UNSELECTED_HEIGHT

Constant Value: 36 (0x00000024)

public static final int UNSELECTED_WIDTH

Constant Value: 30 (0x0000001e)

Fields

public final String clusteringId

The cluster ID for this marker.

public final int color

public final Drawable drawable

public final int iconResourceId

public final String layer

The layer for this marker.

public final String numberLabel

public final FioriPoint point

The markers position on the map.

public final int priorityIconId

public final boolean showInitials

Show initials in marker if no drawable or iconResourceId is provided. At most 2 characters can be shown

Protected Constructors

protected FioriMarkerOptions (FioriPoint point, String title, int iconResourceId, Drawable drawable, int color, String legendTitle, String clusteringId, String numberLabel, boolean showInitials, int priorityIconId, String layer, Object tag)

Public Methods

public String bitmapCacheKey (boolean isSelected)

This method is used as a key for caching the markers.

Parameters
isSelected Whether the marker is currently selected.
Returns
  • A String that will be unique for every marker that draws differently. Markers that draw the same will return the same String.

public int compareTo (FioriMarkerOptions o)

public Drawable createLegendDrawable (Context context)

Creates the legend drawable with a round background.

public LegendItem createLegendItem (Context context)

public Bitmap createMarkerBitmap (Context context, boolean selected)

Creates marker bitmap.

public boolean equals (Object obj)

public LegendItem.LegendType getLegendType ()

public int hashCode ()

public FioriMarkerOptions.Builder newBuilder ()