com.nchart3d.NChart.NChartGradientBrushStop Class Reference

The NChartGradientBrushStop class provides a control point of the gradient defining some color and it's position on the area being filled with a gradient. More...

Public Member Functions

 NChartGradientBrushStop (int color, double offset)
 Create gradient stop with color and offset. More...
 
int getColor ()
 Color of the gradient-stop.
 
void setColor (int color)
 For details see getColor().
 
double getOffset ()
 Offset of gradient-stop in the whole gradient. More...
 
void setOffset (double offset)
 For details see getOffset().
 

Detailed Description

The NChartGradientBrushStop class provides a control point of the gradient defining some color and it's position on the area being filled with a gradient.

The gradient is constructed from multiple gradient-stops.

Constructor & Destructor Documentation

com.nchart3d.NChart.NChartGradientBrushStop.NChartGradientBrushStop ( int  color,
double  offset 
)
inline

Create gradient stop with color and offset.

Parameters
color- the color of gradient stop.
offset- the offset of gradient stop.

Member Function Documentation

double com.nchart3d.NChart.NChartGradientBrushStop.getOffset ( )
inline

Offset of gradient-stop in the whole gradient.

Offset is in interval 0..1. 0 means the start of the area filled with a gradient, 1 means the end of it. For example if you want to create a gradient of two colors, it's common to use 0.0 as the offset for the first color and 1.0 for the second.