LabelForm.setAlignmentY(value)

Specifies the vertical alignment of the label with respect to the specified Y location.

Values

GraphConstants.TOP_ALIGNMENT

GraphConstants.MIDDLE_ALIGNMENT

GraphConstants.BOTTOM_ALIGNMENT

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

graph = new EGraph();

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

var form1 = new LabelForm();

var form2 = new LabelForm();

form1.setLabel("label1");

form1.setPoint(new java.awt.Point(100, 100));

form2.setLabel("label2");

form2.setPoint(new java.awt.Point(100, 100));

form2.setAlignmentY(GraphConstants.TOP_ALIGNMENT);

graph.addForm(form1);

graph.addForm(form2);

graph.addElement(elem);

 

See Also

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

<< LabelForm.setAlignmentX(value) © 1996-2013 InetSoft Technology Corporation (v11.4) LabelForm.setCollisionModifier(value) >>