PERGOLA LOGO

pergola.Progress

System events: YES.

User events and functions: NO.

Examples: Window progress bar; timer driven progress bars. See also progress initialization in pergola.loadSVG().

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.

width

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

height

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

fill

Defined in pergola.presentationAttributes – string.

stroke

Defined in pergola.presentationAttributes – string.

statusFill

Defined in pergola.presentationAttributes – string.

type

"bar" – string; the only value currently implemented.

advance

0 – number representing the width value of this status in timer driven instances.

METHODS

start()

Shows the progress bar.

hide()

Hides the progress 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 status ID. Used as prefix where other elements' IDs are attributed.

owner

Must be specified in the initialization object, designates the owner object.

parent

If specified, overrides the default parent node pergola.user.

rect

<rect> element. The static bar.

status

<rect> element. The variable width bar representing the progress.

extent

Number. The computed maximum value for this status width.

extra

If specified, object defining extra attributes for this rect element specified using SVG vocabulary and grammar.