boxes/TextGrid

Source: TextGrid.js:32

File : boxes/TextGrid.js
Created : 12/06/2015
By : Francesc Busquets francesc@gmail.com

JClic.js
An HTML5 player of JClic activities
https://projectestac.github.io/jclic.js

  • License: EUPL-1.2

Other

defaults: object

Default values

flags: object

Binary flags used to mark status

TextGrid

Extends: module:boxes/AbstractBox.AbstractBox

This class is a special type of AbstractBox that displays a grid of single
characters.

It's used CrossWord and WordSearch activities.

Parameters

  • parent (module:boxes/AbstractBox.AbstractBox) — The AbstractBox to which this text grid belongs
  • container (module:AWT.Container) — The container where this text grid is placed.
  • boxBase (module:boxes/BoxBase.BoxBase) — The object where colors, fonts, border and other graphic properties
  • x (number) — X coordinate of the upper left corner of this grid
  • y (number) — Y coordinate of the upper left corner of this grid
  • ncw (number) — Number of columns of the grid
  • nch (number) — Nomber of rows of the grid
  • cellW (number) — Width of the cells
  • cellH (number) — Height of the cells
  • border (boolean) — When true, a border must be drawn between the cells