ExactColorByHeight

 

This property enables (true) / disables (false) exact coloring by height in spectral maps and 3D surface charts. When this property is enabled (true), the actual data value is used to get a color from the "color-by-height gradient". When this property is disabled (false), the colors on the spectral legend are the only ones used and the data value is compared to see which of those "buckets" it falls into.

Data Type:

Boolean

Range:

true/false

 

true=

Enable exact color by height

 

false=

Disable exact color by height

Default:

true

Syntax:

setExactColorByHeight ( true | false );

 

boolean = setExactColorByHeight();

Example:

perspective1.setExactColorByHeight(false);
perspective1.setGradientPinLeftColor(
    perspective1.getColorByHeight(),
    new Color(106,189,187),0);
perspective1.setGradientPinLeftColor(
    perspective1.getColorByHeight(),
    new Color(0,255,255),1);
perspective1.setGradientPinRightColor(
    perspective1.getColorByHeight(),
    new Color(0,255,255),1);
perspective1.setGradientPinRightColor(
    perspective1.getColorByHeight(),
    new Color(106,189,187),0);
perspective1.setGraphType(87);

 

Also See:

ColorMode, getColorByHeight(),"Colors and Shading" in Chapter 3