PERGOLA LOGO

pergola.Frame

System events: YES.

User events and functions: NO.

A frame is a box that can be resized in all directions if the resizable property of its owner object is true. Pergola windows and panels have a frame. Currently only windows are resizable.

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).

rx

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

fill

Defined in pergola.presentationAttributes – string.

"fill-opacity"

Defined in pergola.presentationAttributes – string.

stroke

Defined in pergola.presentationAttributes – string.

"stroke-opacity"

Defined in pergola.presentationAttributes – string.

filter

"none" – string (URI).

METHODS

initDrag()

Returns an activation object for pergola.dragarea. You don't normally need to invoke this method explicitly.

resizeN(evt)

System. North resize callback for pergola.dragarea activation object. Invokes the resizeN() method of the owner object.

resizeS(evt)

System. South resize callback for pergola.dragarea activation object. Invokes the resizeS() method of the owner object.

resizeE(evt)

System. East resize callback for pergola.dragarea activation object. Invokes the resizeE() method of the owner object.

resizeW(evt)

System. West resize callback for pergola.dragarea activation object. Invokes the resizeW() method of the owner object.

resizeNE(evt)

System. Callback for North-East resize. Invokes the resizeN() and resizeE() methods of the owner object.

resizeNW(evt)

System. Callback for North-West resize. Invokes the resizeN() and resizeW() methods of the owner object.

resizeSE(evt)

System. Callback for South-East resize. Invokes the resizeS() and resizeE() methods of the owner object.

resizeSW(evt)

System. Callback for South-West resize. Invokes the resizeS() and resizeW() methods of the owner object.

handleEvent(evt)

Depending on event type: invokes this owner bringToFront(); sets cursors; sets the callback function relative to direction; invokes pergola.dragarea.activate passing this initDrag().

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 rect ID.

owner

Must be specified in the initialization object. Designates the owner object.

rect

<rect> element.

north

Boolean representing the resizing direction.

east

Boolean representing the resizing direction.

south

Boolean representing the resizing direction.

west

Boolean representing the resizing direction.

offset

Object with x and y properties representing the pointer's x and y offset in relation to contact coordinates.

callback

Selected dynamically in relation to resizing direction, is one of: this resizeN; this resizeE; this resizeS; this resizeW; this resizeNE; this resizeNW; this resizeSE; this resizeSW.