StaticTextureFrame.setTexture(value)

StaticTextureFrame.setTexture(value)

Specifies the static texture for graphical elements. If the data in the column assigned to the inherited VisualFrame.setField(field) property are GTexture numbers, these data values are used instead of StaticTextureFrame.texture.

Parameter

value a GTexture object

Note: Report script that modifies 'bindingInfo' should be placed in the onLoad handler.

Example (Report)

Bind a point-type chart to the sample 'All Sales' query, with 'Company' (top 5) on the X-axis, and Sum(Total) on the Y-axis. Add the following script in the onLoad handler.

Chart1.bindingInfo.setShapeField("Company",Chart.STRING);

Chart1.bindingInfo.textureFrame = new StaticTextureFrame();

Chart1.bindingInfo.textureFrame.texture = GTexture.PATTERN_5;

 

Note: Script that modifies 'graph' should be placed at the element level. See Adding Element-Level Script in Report Scripting and Adding Component Script in Dashboard Scripting for more information.

Example (Report or Viewsheet)

dataset = [["State","Quantity"], ["NJ",300], ["NY",200]];

graph = new EGraph();

var elem = new IntervalElement("State", "Quantity")

frame = new StaticTextureFrame();

frame.setTexture(GTexture.PATTERN_18);

elem.setTextureFrame(frame);

graph.addElement(elem);

 

See Also

DataSet, to use a Data Block or query as the dataset source.

<< CR.7.18 StaticTextureFrame © 1996-2013 InetSoft Technology Corporation (v11.5) CR.7.19 LeftTiltTextureFrame >>