Any A+ scalar, vector, or matrix can be displayed as an object of class array. A display of a variable in this class has two parts, a title area and a value area. The value area appears below the title area, and consists of delineated cells. The display is arranged as follows:Visual Representation
If an array requires more than a few cells then, by default, only a subarray is presented on the screen, and the value area is provided with scrollbars. Users control the particular subarray that appears in the value area with the scrollbars; programmers set the attributes firstrow, firstcol, rows, and cols.
- a scalar or character vector is displayed in one cell;
- all other vectors are displayed in a column of cells, one for each element in the vector; by default, the first element is in the top cell;
- a character matrix is also displayed in a column of cells, one for each row, and, by default, the first row is in the top cell;
- all other matrices are displayed in a two-dimensional arrangement of cells, one for each element; the rows of the matrix appear as rows in the display and, by default, element (0;0) of the matrix in the upper left cell.
The contents of each cell in the value area can be edited.
For information about a widget element, click the left mouse button with the tip of the pointer index finger on it. Point inside the frame but outside the widget for attributes governing overall size, position, etc.xûÉ 20 30 `x has (`class; `array; ã The default, actually. `shelltitle; "ShellTitle"; `title; ("This is";"the title")); show `x
The element you are pointing at is named in the status message area at the bottom of the window.
(Clicking the middle mouse button instead displays this information in a new browser.)
See the "Display Attributes" chapter for details concerning all the attributes that apply to objects in the array display class, as well as lists of colors and fonts. The keys in the Table of All Display Attributes that pertain to this class are A, ALL, CNFT, NFT, and TOP.
The attributes that are meaningful for the array display class (other than the print... attributes) are:
active(Point the mouse cursor to an attribute to display a short description at the bottom of the screen)
|email@example.com||© Copyright 19952008 Morgan Stanley Dean Witter & Co. All rights reserved.|