Inherits from NSObject
Declared in TKChartPaletteItem.h

Overview

Represents a single palette item used in TKChart.

Properties

drawables

An array of the TKDrawing implementations. All is drawn in the order of the elements in the array.

@property (nonatomic, strong) NSArray *drawables

Declared In

TKChartPaletteItem.h

fill

The fill color of the palette item.

@property (nonatomic, strong) TKFill *fill

Return Value

An instance of UIColor representing the fill color.

Declared In

TKChartPaletteItem.h

font

The palette’s font.

@property (nonatomic, strong) UIFont *font

Declared In

TKChartPaletteItem.h

stroke

The stroke color of the palette item.

@property (nonatomic, strong) TKStroke *stroke

Return Value

An instance of UIColor representing the stroke color.

Declared In

TKChartPaletteItem.h

textColor

The palette’s text color.

@property (nonatomic, strong) UIColor *textColor

Declared In

TKChartPaletteItem.h

Class Methods

paletteItemWithDrawables:

Creates a palette item with drawables. Drawing is performed in the order of the array elements.

+ (instancetype __nonnull)paletteItemWithDrawables:(NSArray *__nonnull)drawables

Parameters

drawables

The Array of the TKDrawing implementations.

Declared In

TKChartPaletteItem.h

paletteItemWithFill:

Creates a palette item with a specified fill.

+ (instancetype __nonnull)paletteItemWithFill:(TKFill *__nonnull)fill

Parameters

fill

The TKFill to set.

Declared In

TKChartPaletteItem.h

paletteItemWithStroke:

Creates a palette item with a specified stroke.

+ (instancetype __nonnull)paletteItemWithStroke:(TKStroke *__nonnull)stroke

Parameters

stroke

The TKStroke to set.

Declared In

TKChartPaletteItem.h

paletteItemWithStroke:andFill:

Creates a palette item with a specified stroke & fill.

+ (instancetype __nonnull)paletteItemWithStroke:(TKStroke *__nonnull)stroke andFill:(TKFill *__nonnull)fill

Parameters

stroke

The TKStroke to set.

fill

The TKFill to set.

Declared In

TKChartPaletteItem.h

Instance Methods

initWithDrawables:

Initializes with drawables. Drawing is performed in the order of the array elements.

- (instancetype __nonnull)initWithDrawables:(NSArray *__nonnull)drawables

Parameters

drawables

The Array of the TKDrawing implementations.

Declared In

TKChartPaletteItem.h

initWithFill:

Initializes with a specified fill.

- (instancetype __nonnull)initWithFill:(TKFill *__nonnull)fill

Parameters

fill

The TKFill to set.

Declared In

TKChartPaletteItem.h

initWithStroke:

Initializes with a specified stroke.

- (instancetype __nonnull)initWithStroke:(TKStroke *__nonnull)stroke

Parameters

stroke

The TKStroke to set.

Declared In

TKChartPaletteItem.h

initWithStroke:andFill:

Initializes with a specified stroke & fill.

- (instancetype __nonnull)initWithStroke:(TKStroke *__nonnull)stroke andFill:(TKFill *__nonnull)fill

Parameters

stroke

The TKStroke to set.

fill

The TKFill to set.

Declared In

TKChartPaletteItem.h