jit.cellblock
Description
Provides storage, viewing and editing of two-dimensional data. The format is similar to the "grid" display tools found in many other development environments. The current cell location, format, display and contents within jit.cellblock can be set with the mouse or by using Max messages.
Examples
Arguments
None.
Attributes
automouse [int] (default: 1)
Enables/disables scrolling or selecting cells by clicking and dragging with the mouse. The default is 1 (enabled).
bblend [int] (default: 0)
Specifies the percentage of background blending for the jit.cellblock object's display.In cases where there are both column and row background color overrides, this message will allow you to "blend" the colors. Column colors have a higher priority than row colors; if you have a row and column color that affect a cell, only the column color will normally be displayed. The message allows you to make the column color transparant using a percentage value, thereby allowing the row color to be displayed. This message applies the color transparency to all column colors without discrimination.
bgcolor [4 floats]
Sets the default background color of the jit.cellblock object in RGBA format.
border [int] (default: 1)
Toggles drawing a border edge around the jit.cellblock.
bordercolor [4 floats]
Sets the default border color of the jit.cellblock object in RGBA format.
colhead [int] (default: 0)
Toggles the behavior of the first column. If the header option is selected, the first column will change color to the rgba setting, and will not be directly editable in selmode 5.
cols [int] (default: 10)
Sets the number of columns that are visible within the jit.cellblock. If the number of columns is greater than can be displayed, scrollbars will be shown.
colwidth [int] (default: 66)
Sets the default column width of the individual cells. Changing these settings may change whether the scrollbars are displayed.
datadirty [int] (default: 0)
Enables or disables the patcher-dirty flag. The default is 0 (disabled). When enabled, the jit.cellblock object will dirty the patch whenever its cell data changes.
fblend [int] (default: 0)
Specifies the percentage of foreground blending for the jit.cellblock object's display.In cases where there are both column and row foreground color overrides, this message will allow you to "blend" the colors. Column colors have a higher priority than row colors; if you have a row and column color that affect a cell, only the column color will normally be displayed. The message allows you to make the column color transparent using a percentage value, thereby allowing the row color to be displayed. This message applies the color transparency to all column colors without discrimination.
fgcolor [4 floats]
Sets the default foreground color of the jit.cellblock object in RGBA format.
grid [int] (default: 1)
Toggles drawing a border edge around each individual cell.
gridlinecolor [4 floats]
Sets the default grid line color of the jit.cellblock object in RGBA format.
hcellcolor [4 floats]
Sets the default selected cell color of the jit.cellblock object in RGBA format.
headercolor [4 floats]
Sets the default header color of the jit.cellblock object in RGBA format.
hscroll [int] (default: 1)
Toggles horizontal scroll bar behavior. When set to 0, this attribute will override the jit.cellblock object’s automatic handling of scrollbar display when there is more information to show than the current settings can manage.
hsync [int] (default: 1)
Toggles synchronizing horizontal movement with another jit.cellblock object whose third outlet is connected to the right-most inlet of the jit.cellblock object.
interval [int] (default: 250)
Sets the interval, in milliseconds, at which the display of the contents of a coll or jit.matrix object is updated.
just [int] (default: 0)
Sets the default text justification of all cells - left (0), center (1) or right (2).
Possible values:
0 = 'Left'
1 = 'Center'
2 = 'Right'
neverdirty [int] (default: 0)
When neverdirty is enabled, changes to column, row, or cell properties do not dirty the patcher.
outmode [int] (default: 0)
Sets the output mode of the cellblock. The output mode settings are:
0. separate values: Each cell is sent separately, and each data item within the cell is sent as a separate value.
1. as one list: If more than one cell is selected, all cell contents are formatted into a single list and output as a single cell output.
2. as one symbol: If more than one cell is selected, or if a cell has more than one value (e.g. a list), all values are combined into a single, space-separated symbol for output.
Possible values:
0 = 'Individual cells'
1 = 'As one list'
2 = 'As one symbol'
precision [int] (default: 2)
Sets the default floating point precision for all cells. This does not alter the actual contents of the cell - it only changes the displayed precision of those contents.
readonly [int] (default: 0)
Sets the read-only mode of the jit.cellblock object. The mode settings are:
-1: Eliminate any readonly setting. This option removes the cell/col/row from the structure, preventing any intrusion of the cell/col/row setting on the overall cellblock setting.
0: readonly off
1: readonly on
rowhead [int] (default: 0)
Toggles the behavior of the first row. If the header option is selected, the first row will change color to the rgba setting, and will not be directly editable in selmode 5.
rowheight [int] (default: 18)
The word
, followed by a number, sets the default row height of the individual cells. Changing these settings may change whether the scrollbars are displayed.rows [int] (default: 10)
Sets the number of columns and rows that are visible within the jit.cellblock. If the number of rows is greater than can be displayed, scrollbars will be shown.
savemode [int] (default: 0)
Toggles the ability save the jit.cellblock object's cell contents as part of the main patcher. The default behavior is 0 (save the data as a separate file).
sccolor [4 floats]
Sets the default text background color of the scroller in RGBA format.
selmode [int] (default: 1)
Sets the selection mode of the cellblock. The selection mode settings are:
0. no selection
1. select a single cell
2. select an entire column
3. select an entire row
4. select a single cell unless a column or row header is selected, in which case the entire column or row is selected.
5. in-place editing. A single cell is selected and values can be typed directly into the cell.
Possible values:
0 = 'No Selection'
1 = 'One Cell'
2 = 'Column'
3 = 'Row'
4 = 'Header Select'
5 = 'Inline Edit'
selsync [int] (default: 1)
Toggles synchronizing selection with another jit.cellblock object whose third outlet is connected to the right-most inlet of the jit.cellblock object.
sgcolor [4 floats]
Sets the default text color of the scroller gutter in RGBA format.
signalmode [symbol] (default: monitor)
Signal Analysis Mode
Possible values:
'monitor'
(
Current values
)
Displays the current signal value based on the display interval.
'peak'
(
Peak values
)
Displays the peak value from the previous interval.
'average'
(
Averaged values
)
Displays the average of all values received during the previous interval.
'rms'
(
Root-mean-square
)
Displays the RMS (root-mean-square) of the values received during the previous interval.
signalusecols [int] (default: 0)
Signals Use Columns
stcolor [4 floats]
Sets the default text color of the scroller handle (thumb) in RGBA format.
textcolor [4 floats]
Sets the default text color of the jit.cellblock object in RGBA format.
vscroll [int] (default: 1)
Toggles vertical scroll bar behavior. When set to 0, this attribute will override the jit.cellblock object’s automatic handling of scrollbar display when there is more information to show than the current settings can manage.
vsync [int] (default: 1)
Toggles synchronizing vertical movement with another jit.cellblock object whose third outlet is connected to the right-most inlet of the jit.cellblock object.
Common Box Attributes
annotation [symbol]
Sets the text that will be displayed in the Clue window when the user moves the mouse over the object.
background [int] (default: 0)
Adds or removes the object from the patcher's background layer.
adds the object to the background layer, removes it. Objects in the background layer are shown behind all objects in the default foreground layer.color [4 floats]
Sets the color for the object box outline.
fontface [int]
Sets the type style used by the object. The options are:
plain
bold
italic
bold italic
Possible values:
0 = 'regular'
1 = 'bold'
2 = 'italic'
3 = 'bold italic'
fontname [symbol]
Sets the object's font.
fontsize [float]
Sets the object's font size (in points).
Possible values:
'8'
'9'
'10'
'11'
'12'
'13'
'14'
'16'
'18'
'20'
'24'
'30'
'36'
'48'
'64'
'72'
hidden [int] (default: 0)
Toggles whether an object is hidden when the patcher is locked.
hint [symbol]
Sets the text that will be displayed in as a pop-up hint when the user moves the mouse over the object in a locked patcher.
ignoreclick [int] (default: 0)
Toggles whether an object ignores mouse clicks in a locked patcher.
jspainterfile [symbol]
JS Painter File
patching_rect [4 floats] (default: 0. 0. 100. 0.)
Sets the position and size of the object in the patcher window.
position [2 floats]
Sets the object's x and y position in both patching and presentation modes (if the object belongs to its patcher's presentation), leaving its size unchanged.
presentation [int] (default: 0)
Sets whether an object belongs to the patcher's presentation.
presentation_rect [4 floats] (default: 0. 0. 0. 0.)
Sets the x and y position and width and height of the object in the patcher's presentation, leaving its patching position unchanged.
rect [4 floats]
Sets the x and y position and width and height of the object in both patching and presentation modes (if the object belongs to its patcher's presentation).
size [2 floats]
Sets the object's width and height in both patching and presentation modes (if the object belongs to its patcher's presentation), leaving its position unchanged.
textcolor [4 floats]
Sets the color for the object's text in RGBA format.
textjustification [int]
Sets the justification for the object's text.
Possible values:
0 = 'left'
1 = 'center'
2 = 'right'
varname [symbol]
Sets the patcher's scripting name, which can be used to address the object by name in pattr, scripting messages to thispatcher, and the js object.
Messages
bang
list
Arguments
row [int]
append
Arguments
cell
Arguments
row [int]
setting [symbol]
value [list]
clear
Arguments
col
Arguments
setting [symbol]
value [list]
deref
dump
jit_deref
jit_matrix
Arguments
mode
Arguments
plane
Arguments
prepend
Arguments
read
Arguments
refer
Arguments
refresh
row
Arguments
setting [symbol]
value [list]
rowblend
Arguments
background [int]
select
Arguments
row-number [int]
send
Arguments
option [list]
send receive-object col-number row-number will send the data in the specified cell to the specified received object. send receive-object all sends all non-empty cell contents to the specified receive object as a series of lists in the form cell-data-type value.
set
Arguments
set current value replaces the currently selected cell's contents.
set col-number row-number values replaces the specified cell's contents.
setwithoutdirty
Arguments
signal
sync
Arguments
text
Arguments
write
Arguments
writeagain
Output
list
Out left outlet: A list containing the currently selected column number, row number and the contents of the cell. The form of the output will be dependent on the mode outmode setting, which will determine if the contents will be provided individually, as a single list or as a single symbol.
list
Out the middle outlet: The Max message textedit or message object.
, followed by the cell contents, is provided as a "helper" output for routing the cell contents to either alist
Out the right outlet: Synchronization messages are sent out the right outlet, meant as a source for the right inlet of other jit.cellblock objects. These messages can also be used to determine the current state of movement within the cellblock - for instance, the message notifies that a cell has been click-selected, while the message notifies that a cell has been selected (either by clicking, or programmatically).
See Also
Name | Description |
---|---|
coll | Store and edit a collection of data |
maximum | Output the highest value |
minimum | Output the smallest value |
Max Data Tutorial 4: Cellblock | Max Data Tutorial 4: Cellblock |