NChartRim Class Reference

Inherits from NChartMarker : NSObject
Declared in NChartRim.h

Overview

The NChartRim class provides methods to handle rim markers.
Rim markers allow special (normally quite thick) borders consisting of left-top and bottom-right halves. You can tune the colors of these parts separately achieving the effects like inset/outset border in HTML/CSS.

+ rim

Create new instance of rim marker.

+ (NChartRim *)rim

Return Value

new instance of rim marker.

Declared In

NChartRim.h

  topLeftColor

Color of the top-left half. The default value is nil (which means, rim is not displayed).

@property (nonatomic, strong) NSColor *topLeftColor

Declared In

NChartRim.h

  bottomRightColor

Color of the bottom-right half. The default value is nil (which means, rim is not displayed).

@property (nonatomic, strong) NSColor *bottomRightColor

Declared In

NChartRim.h

  thickness

Rim thickness (in pixels). The defaut value is 0 (which means, rim is not displayed).

@property (nonatomic, assign) float thickness

Declared In

NChartRim.h

– inset:

Set topLeftColor and bottomRightColor based on the given color in a way that an “inset” rim is created. This method sets the topLeftColor property to the darker version of the given color and bottomRightColor property to the lighter version of the given color.

- (void)inset:(NSColor *)color

Parameters

color
  • basic color for the inset rim.

Declared In

NChartRim.h

– outset:

Set topLeftColor and bottomRightColor based on the given color in a way that an “outset” rim is created. This method sets the topLeftColor property to the loighter version of the given color and bottomRightColor property to the darker version of the given color.

- (void)outset:(NSColor *)color

Parameters

color
  • basic color for the outset rim.

Declared In

NChartRim.h