com.nchart3d.NChart.NChartLinearGradientBrush Class Reference

The NChartLinearGradientBrush class provides a brush that fills the area with a linear gradient. More...

Inheritance diagram for com.nchart3d.NChart.NChartLinearGradientBrush:
com.nchart3d.NChart.NChartGradientBrush com.nchart3d.NChart.NChartBrush

Public Member Functions

 NChartLinearGradientBrush (int color1, int color2)
 Create linear gradient brush with given colors. More...
 
- Public Member Functions inherited from com.nchart3d.NChart.NChartBrush
abstract void scaleColorRGB (float rScale, float gScale, float bScale)
 Scale components of brush's colors (if any) by given values. More...
 
abstract NChartBrush copy ()
 Being implemented in every child this method will return proper deep copy of object. More...
 
abstract void scaleColorHSV (float hScale, float sScale, float vScale)
 Scale components of brush's colors (if any) according to HSV color model. More...
 
double getOpacity ()
 Opacity of the brush in interval 0..1, 0 – full transparency, 1 – full opacity. More...
 
void setOpacity (double opacity)
 For details see getOpacity().
 
NChartShadingModel getShadingModel ()
 Shading model that should be applied to an object if it's painted with this brush. More...
 
void setShadingModel (NChartShadingModel shadingModel)
 For details see getShadingModel().
 

Detailed Description

The NChartLinearGradientBrush class provides a brush that fills the area with a linear gradient.

Constructor & Destructor Documentation

com.nchart3d.NChart.NChartLinearGradientBrush.NChartLinearGradientBrush ( int  color1,
int  color2 
)
inline

Create linear gradient brush with given colors.

This is a convenient equivalent to creating stops, arraying them and then setting the array to the new instance of the linear gradient brush.

Parameters
color1- first color of gradient.
color2- second color of gradient.