boxes/ActiveBoxGrid

Source: ActiveBoxGrid.js:32

File : boxes/ActiveBoxGrid.js
Created : 19/05/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

ActiveBoxGrid

Extends: module:boxes/ActiveBoxBag.ActiveBoxBag

This class extends ActiveBoxBag with constructors that take an argument of type
Shaper used to build all its ActiveBoxcomponents. It also maintains information
about the number of "rows" and "columns", useful to compute valid (integer) values when
resizing or moving its components.

Parameters

  • parent (module:boxes/AbstractBox.AbstractBox) — The AbstractBox to which this box grid belongs
  • container (module:AWT.Container) — The container where this box grid is placed.
  • boxBase (module:boxes/BoxBase) — The object where colors, fonts, border and other graphic properties
  • px (number) — X coordinate of the upper left corner of this box grid
  • py (number) — Y coordinate of the upper left corner of this box grid
  • setWidth (number) — Total width of the box grid
  • setHeight (number) — Total height of the box grid
  • sh (module:shapers/Shaper.Shaper) — Shaper used to build the ActiveBox objects