AWFPointLegendItem

Objective-C

@interface AWFPointLegendItem : NSObject

Swift

class AWFPointLegendItem : NSObject

An AWFPointLegendItem is an object that is used to represent a single group, category or value in a AWFPointLegend instance.

  • key

    The identifier for the item.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull key;

    Swift

    var key: String { get set }
  • The text label to display for this item. If nil, then the item’s key will be displayed.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *label;

    Swift

    var label: String? { get set }
  • The color associated with this item for the map data.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull color;

    Swift

    var color: UIColor { get set }
  • Initializes and returns a newly allocated point legend item with the provided key, label and color.

    Declaration

    Objective-C

    + (nonnull instancetype)itemWithKey:(nonnull NSString *)key
                                  label:(NSString *_Nullable)label
                                  color:(nonnull UIColor *)color;

    Swift

    convenience init(key: String, label: String?, color: UIColor)

    Parameters

    key

    The identifier for the item.

    label

    The title text to display.

    color

    The item color.

    Return Value

    An initialized point legend item object.