PERGOLA LOGO

pergola.StatusBar

System events: YES.

User events and functions: NO.

System component. This class is instantiated by pergola.Window objects if the property hasStatus is not specifically set to false in the window's initialization object. You never need to instantiate this class explicitly.

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. Overridden by Window instances.

fill

Defined in pergola.presentationAttributes – string.

height

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

"font-size"

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

textFill

Defined in pergola.presentationAttributes – color string.

advanceX

Defined in pergola.presentationAttributes – number (user space units); dynamically updated margin on each field addition.

METHODS

center(c)

c is an object defining lon and lat properties; updates the values of this centerLon and this centerLat fields on map displacement. Use for mapping applications.

location(c)

c is an object defining lon and lat properties; centers the map at specified geo location; updates the values of this owner.locLon and this owner.locLat fields. Use for mapping applications.

zoom(z)

z is a number specifying the zoom level for this owner (pergola.Window). Assigns z to this owner.zoomLevel.value and updates this owner.zoomLevel.element (<text>).

coordinates(evt)

Callback function for "mousemove" event registered on doc.transformable of active window on doc.currentTool activation if doc.currentTool.coordinates. The method is not executed in this context. You don't need to invoke this method explicitly.

addFields([object])

If this fields is not defined, object must define field properties. For each field property specified in object, the method defines this owner[field] if field defines the input property, or this[field].

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

Must be specified in the initialization object; designates the owner object (pergola.Window).

container

<g> element.

bar

<rect> element.

fields

Object defining a collection of field properties. Important note: input fields are defined as properties of this owner (pergola.Window); plain text fields are instead defined as properties of this (see addFields). See Adding Fields To The Status Bar in tutorial for code examples on adding fields.