PERGOLA LOGO

pergola.QuickTip

System events: YES.

User events and functions: NO.

See pergola.quicktips, quickTipFormat, quickTipInit, qtips and QuickTip in tutorial for in-depth information.

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. This property should normally be overridden to reference an appropriate container of this owner.

"font-size"

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

rx

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

fill

Defined in pergola.presentationAttributes – string.

stroke

Defined in pergola.presentationAttributes – string.

textFill

Defined in pergola.presentationAttributes – string.

delay

Defined in pergola.presentationAttributes – number representing the pop-up delay.

METHODS

update(d)

d is a string or an array of strings. Converts d to array (convert). Removes all children of this textGroup and appends d.length of new <text> elements.

dims()

Gets the bounding box of this textGroup and returns and object defining (compensated) width and height number properties (bubble dimensions). You normally don't need to invoke this method explicitly.

convert(d)

d is a string or an array of strings. If d is a string and contains the "\n" escape sequence, it is split at "\n" into an array, otherwise it is converted to array. Returns d.

show()

Shows the quick tip. You normally don't need to invoke this method explicitly.

hide()

Hides the quick tip. You normally don't need to invoke this method explicitly.

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.

container

<g> element.

textGroup

<g> element.

tip

Must be specified in the initialization object. String or array. String can contain the escape sequence “\n” for new lines.

bubble

<rect> element.