getReferenceLine()

This method returns the object ID of a reference line. This object will only exist in a graph if the setReferenceLine() method has been used to create the line.

Syntax:

IdentObj getReferenceLine(IdentObj axisObj, int nIndex);

where:

axisObj

Is the Axis object ID.

nIndex

Is the integer reference line index number (0...2).

Example:

setDepthAngle(0);
setDepthRadius(0);
setReferenceLine(getY1Axis(),0,50);
setLineWidth(getReferenceLine(getY1Axis(),0),3);
setFillColor(getReferenceLine(getY1Axis(),0), new Color(255,0,0));

bar graph

See setReferenceLine().


WebFOCUS