PERGOLA LOGO

pergola.Menubar

System events: YES.

User events and functions: NO.

An object instantiating pergola.Menu must also instantiate this class.

Example.

Listed: class properties/methods; prototype properties and methods; instance properties. Prototype properties and methods inherited by the Class superclass are not listed.

class

none

prototype

PROPERTIES

parent

pergola.user.

"font-size"

Defined in pergola.presentationAttributes – number (user space units) or string.

height

Defined in pergola.presentationAttributes – number (user space units).

fill

Defined in pergola.presentationAttributes – string.

advanceX

0 – number (user space units); updated dynamically by this add().

METHODS

width()

Returns a number representing this computed width.

add(menu)

menu references a pergola.Menu object; translates menu.container to this advanceX; assigns this width() to this advanceX and sets the "width" attribute for this bar.

build(object)

this inherits the properties specified in object. Prototype properties specified in object are overridden. Creates elements. Returns this.

instance

name

String. If not passed to the constructor, gets a generated XML name (Class).

id

String. The return value of this name.toXML(). This container ID. Used as prefix where other elements' IDs are attributed.

owner

If specified, designates the owner object.

container

<g> element.

bar

<rect> element.