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.
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.)
Attributes
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)
ancestors
arrowdown
arrowkeys
arrowleft
arrowlist
arrowright
arrowup
at
atsector
b
bg
blank
bound
class
clear
col
colors
cols
colsep
copy
cycle
deiconized
delete
doc
done
downto
dynamic
edit
editbg
editfg
editspace
eval
evaluate
execute
exit
extent
fg
f1-f12
firstcol
firstrow
fkeys
focus
followers
followertree
font
foot
freeze
fullscreen
h
H
has
head
hide
hl
hlthickness
hscrollsize
hscrollwith
icon
iconic
iconized
icontitle
in
incurrentworkspace
index
insertabove
insertbelow
is
l
leader
leftto
literal
lower
mapped
na
naturalsize
notify
out
outofcurrentworkspace
parent
pin
preset
primary
protect
protected
r
raise
realize
refer
refresh
request
resize
resizeable
respace
rightto
row
rowbg
rows
rowsep
script
scrollbg
scrollsize
select
selectbg
selected
selectionmode
sensitive
set
setcol
setfirstcol
setfirstrow
setrow
settings
shadowthickness
shell
shelltitle
show
size
space
stars
state
stateself
syncshow
t
tabfrom
tablist
tabto
title
titlefg
titlefont
titlejustify
upto
vcol
vcols
verify
vrow
vrows
vscrollsize
vscrollwith
w
W
ws
x
X
xs
y
Y
ys
yx
YX
yxs
doc@aplusdev.org | © Copyright 19952008 Morgan Stanley Dean Witter & Co. All rights reserved. |