CR.7.18  StaticTextureFrame

StaticTextureFrame.setTexture(value)

The StaticTextureFrame object contains a texture frame defined by explicit texture data in the VisualFrame.setField(field) column, or by the fixed texture in StaticTextureFrame.setTexture(value). To create a StaticTextureFrame object, call the StaticTextureFrame constructor.

var frame = new StaticTextureFrame();

You can pass a GTexture object directly to the constructor, e.g.,

var frame = new StaticTextureFrame(GTexture.PATTERN_5);

or specify it later using the StaticTextureFrame.setTexture(value) property.

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)

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.

var frame = new StaticTextureFrame();

frame.setTexture(GTexture.PATTERN_5);

var elem = graph.getElement(0); // bar elements

elem.setTextureFrame(frame);

 

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","Texture"],["NJ",200,1], ["NY",300,10]];

graph = new EGraph();

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

var frame = new StaticTextureFrame();

frame.setField("Texture");

elem.setTextureFrame(frame);

graph.addElement(elem);

 

Full Name

inetsoft.graph.aesthetic.StaticTextureFrame

StaticTextureFrame: setTexture

See Also

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

<< CR.7.17 TextureFrame © 1996-2013 InetSoft Technology Corporation (v11.5) StaticTextureFrame.setTexture(value) >>