boxes/AbstractBox

Source: AbstractBox.js:32

File : boxes/AbstractBox.js
Created : 18/04/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

AbstractBox

staticabstract
AbstractBox.js:44

Extends: module:AWT.Rectangle

This abstract class is the base for most graphic components of JClic. It describes an area
(by default an module:AWT.Rectangle) with some special properties that determine how it must
be drawn on screen.

Some types of boxes can act as containers for other boxes, establishing a hierarchy of dependences.

Parameters

  • parent (module:AbstractBox) — The AbstractBox to which this one belongs
  • container (module:AWT.Container) — The container where this box is placed.
  • boxBase (module:BoxBase) — The object where colors, fonts, border and other graphic properties
    of this box are defined.