AltFmtMatchAxisLabelColor

This property controls whether Y-Axis Labels associated with the alternate frame region inherit the color specified for that region. When enabled, the labels are colored with the color specified for the region. When disabled, labels are displayed using the default color.

Syntax:

void setAltFmtMatchAxisLabelColor(boolean);
boolean = getAltFmtMatchAxisLabelColor();

where:

boolean

Can be one of the following:

true

Causes Y axis labels to inherit the color of alternate frame regions.

false

Causes Y axis labels to use the default color. This value is the default.

Example:

The following request sets the setAltFmtMatchAxisLabelColor property to true:

setDisplay(getY1AltFmtFrame(),true);
setAltFmtFrameNumColors(getY1AltFmtFrame(),2);
setAltFmtFrameSeparator(getY1AltFmtFrame(0),80.0);
setFillColor(getY1AltFmtLabel(0),new Color(0,0,0));
setFillColor(getY1AltFmtFrame(1),new Color(255,0,0));
setReferenceLineValueY1(0,80.0);
setLineWidth(getReferenceLineY1(0),2);
setFillColor(getY1AltFmtFrame(0),new Color(232,232,232));  setAltFmtMatchAxisLabelColor(true); 

With setAltFmtMatchAxisLabelColor(true), the Y axis labels inherit the color red when the alternate frame region is red and inherit the color grey when the alternate frame region is grey.

Changing setAltFmtMatchAxisLabelColor() to false, causes the Y axis labels to use the default color, not the colors of the alternate frame regions:

setAltFmtMatchAxisLabelColor(false); 


WebFOCUS