IGTreemapNode Class Reference

Inherits from UIView
Declared in IGTreemapNode.h

Overview

IGTreemapNode is a view that displays the treemap’s hierarchy. The treemap’s root is a node and all of nodes' children are nodes, as well. Each node is represented by a rectangle with an optional label and can have any number of children. A node has a single numeric value used for its size.

  children

An array of child nodes. Each child node must be an IGTreemapNode.

@property (nonatomic, retain, nullable) NSArray<__kindofIGTreemapNode*> *children

Declared In

IGTreemapNode.h

  parent

Reference to the parent node.

@property (nonatomic, weak, nullable) IGTreemapNode *parent

Declared In

IGTreemapNode.h

  treemap

Reference to the treemap view.

@property (nonatomic, weak, nullable) IGTreemapView *treemap

Declared In

IGTreemapNode.h

  value

Specifies the node’s value used to determine the size of the node.

@property (nonatomic) CGFloat value

Declared In

IGTreemapNode.h

  weightedValue

Returns the node’s scaled value as a ratio of the node’s value to the values of its siblings.

@property (nonatomic, readonly) CGFloat weightedValue

Declared In

IGTreemapNode.h

  level

Returns the level of depth of the node in the treemap’s hierarchy.

@property (nonatomic) NSInteger level

Declared In

IGTreemapNode.h

  isRootNode

Returns whether or not the node is the root node of the treemap.

@property (nonatomic, readonly) BOOL isRootNode

Declared In

IGTreemapNode.h

  padding

Determines the amount of padding in pixels around the node.

@property (nonatomic) CGRect padding

Declared In

IGTreemapNode.h

  resolvedPadding

Returns the actual padding around the node.

@property (nonatomic, readonly) CGRect resolvedPadding

Declared In

IGTreemapNode.h

  label

Determines the string label of the node.

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

Declared In

IGTreemapNode.h

  sourceItem

Data object that the node was created from.

@property (nonatomic, retain, nullable) NSObject *sourceItem

Declared In

IGTreemapNode.h

  dataContext

Data objects that are used to create child nodes.

@property (nonatomic, retain, nullable) NSObject *dataContext

Declared In

IGTreemapNode.h

  nodeBounds

The bounds rectangle of the node.

@property (nonatomic) CGRect nodeBounds

Declared In

IGTreemapNode.h

  headerHeight

Determines the amount of space reserved for the label at the top of the node.

@property (nonatomic) CGFloat headerHeight

Declared In

IGTreemapNode.h

  resolvedHeaderHeight

Returns the actual amount of space used by the node for its label.

@property (nonatomic, readonly) CGFloat resolvedHeaderHeight

Declared In

IGTreemapNode.h

  labelPadding

Determines the amount of space between the label and the edge of the node.

@property (nonatomic) CGFloat labelPadding

Declared In

IGTreemapNode.h

  resolvedLabelPadding

Returns the actual amount of padded space before the label.

@property (nonatomic, readonly) CGFloat resolvedLabelPadding

Declared In

IGTreemapNode.h

  nodeId

A unique node identifier.

@property (nonatomic, copy, nullable) NSString *nodeId

Declared In

IGTreemapNode.h

  finalSize

Returns the actual size of the node.

@property (nonatomic, readonly) CGSize finalSize

Declared In

IGTreemapNode.h

  brush

Determines the fill brush of the node. This property will take precedence over treemap themes, color mapper, and brushes property.

@property (nonatomic, retain, nullable) IGBrush *brush

Declared In

IGTreemapNode.h

  outline

Determines the outline (border) brush of the node. This property will take precedence over treemap themes and outlines property.

@property (nonatomic, retain, nullable) IGBrush *outline

Declared In

IGTreemapNode.h

  outlineThickness

Determines the thickness of the node’s outline. This property will take precedence over any properties set on the treemap level.

@property (nonatomic) CGFloat outlineThickness

Declared In

IGTreemapNode.h

  resolvedBrush

Returns the actual fill brush of the node.

@property (nonatomic, readonly) IGBrush *resolvedBrush

Declared In

IGTreemapNode.h

  resolvedOutline

Returns the actual outline brush of the node.

@property (nonatomic, readonly) IGBrush *resolvedOutline

Declared In

IGTreemapNode.h

  resolvedOutlineThickness

Returns the actual outline thickness of the node.

@property (nonatomic, readonly) CGFloat resolvedOutlineThickness

Declared In

IGTreemapNode.h