LinearGradientBrush

Description

The LinearGradientBrush class is used for background linear gradient fill.

Inheritance Hierarchy

          NSObject

          Brush

          GradientBrush

          LinearGradientBrush

Supported Protocols

<NSCoding>

<NSCopying>

Categories

LinearGradientBrush(Charting)

Comments

Gradient is redrawn along the straight line, start and end points of which are determined by the startPoint and endPoint properties. Coordinates of these points are defined relative to the fill area and must be in the range ([0; 1]; [0; 1]). (0; 0) is the coordinate of the bottom left corner of the painted area; (1; 1) is the coordinate of the upper right corner.

Colors of the output gradient are interpolated along this line. A set and offset of colors are determined by the gradientStops property.

Properties

startPoint. Gradient start point.

endPoint. Gradient end point.

Properties inherited from GradientBrush

gradientStops. Gradient transition point.

Properties inherited from Brush

opacity. Brush transparency.

mainColor. Main brush color.

Methods inherited from GradientBrush

calcMaxDistance:toEdges:. Calculates maximum distance between the specified point and borders of rectangular area.

gradient. Creates an instance of gradient object.

Methods inherited from Brush

applyToContext:path:rect:. Applies brush parameters for the specified graphic context.

Methods added from LinearGradientBrush(Charting)

dumpConfiguration. Returns the object, to which partial brush parameters are loaded.

dumpConfigurationToDict. Returns the object to which the brush parameters are loaded.

Methods added from GradientBrush(Charting)

dumpGradientStops. Returns object that stores parameters of gradient colors and their positions.

Methods added from Brush(Charting)

dumpConfigurationToDict. Returns the object to which the brush parameters are loaded.

Static methods added from LinearGradientBrush(Charting)

dumpConfiguration. Returns the object, to which partial brush parameters are loaded.

dumpConfigurationToDict. Returns the object to which the brush parameters are loaded.

Static methods added from Brush(Charting)

brushWithDict:. Creates a brush instance according to the specified parameters.

See also:

Working with Common Classes