14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

620 JSL Syntax Reference Appendix A<br />

Graphic Functions<br />

Drag Rect(xMatrix, yMatrix, , )<br />

Description<br />

Draws a filled rectangle with draggable vertices at the first two coordinates given by the matrix<br />

arguments.<br />

Returns<br />

None.<br />

Arguments<br />

xMatrix A matrix of 2 x-coordinates.<br />

yMatrix A matrix of 2 y-coordinates.<br />

dragScript Any valid JSL script; it is run at drag.<br />

mouseupScript Any valid JSL script; it is run at mouseup.<br />

Note<br />

xMatrix and yMatrix should each contain exactly two values. The resulting coordinate pairs should<br />

follow the rules for drawing a rect(); the first point (given by the first value in xMatrix and the first<br />

value in yMatrix) must describe the top, left point in the rectangle, and the second point (given by the<br />

second value in xMatrix and the second value in yMatrix) must describe the bottom, right point in<br />

the rectangle.<br />

Drag Text(xMatrix, yMatrix, "text", , )<br />

Description<br />

Draws the text (or all the items if a list is specified) at the coordinates given by the matrix arguments.<br />

Returns<br />

None.<br />

Arguments<br />

xMatrix A matrix of x-coordinates.<br />

yMatrix A matrix of y-coordinates.<br />

text A quoted string to be drawn in the graph.<br />

dragScript Any valid JSL script; it is run at drag.<br />

mouseupScript Any valid JSL script; it is run at mouseup.<br />

Fill Color(n)<br />

Description<br />

Sets the color used for filling solid areas.<br />

Returns<br />

None.<br />

Argument<br />

n Index for a color or a quoted color name.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!