AbstractPositionable

AbstractPositionable ⇐ Abstract

Kind: global abstract class
Extends: Abstract
Properties

NameTypeDescription
idString

The element identifier.

$$tagString

The internal element unique identifier.

parentView

The widget which contains this element.

isObservableboolean

Internal flag always set to true

dataEventBusDataEventBus

A reference on the data event bus singleton.

themeAbstractTheme

The theme of the UI

i18nI18nManager

A reference on the i18n manager.

rightToLeftboolean

If set to true, it will inverse coordinates of the view (in order to be readable from right to left element sides)

$$renderingContext*

Internal renderer element context

translateXnumber

The translating value of the element on the X-axis (in pixels) which can be animated.

translateYnumber

The translating value of the element on the Y-axis (in pixels) which can be animated.

xnumber

The x position (in pixels)

ynumber

The y position (in pixels)

heightnumber

The height of the view (in pixels)

isAuto_heightboolean

Flag which defines if the height field is in auto mode

widthnumber

The width of the view (in pixels)

isAuto_widthboolean

Flag which defines if the width field is in auto mode

layernumber

The layer the element belongs to (i.e. z-order like in CSS)

$$initboolean

Internal flag to value true when the positionable element is under initialization otherwise set to false when settings have been defined

AbstractPositionable()

Class defining the rendering settings for a positionable element.

rendererCreate() ⇒ *

Create the rendering context of the positionable (view/primitive)

Kind: instance method of AbstractPositionable
Returns: * - renderingContext

_getDefaultSettings()

Return the default mapping of settings (for better performance)

Kind: instance method of AbstractPositionable
Access: protected

_defineSettings(defaultSettings) ⇒ Object

Define the mapping of settings used for _rendererCreate

Kind: instance method of AbstractPositionable
Access: protected

ParamTypeDescription
defaultSettingsObject

default settings initialized

_rendererCreate(settings) ⇒ *

Method called at the rendering creation.

Kind: instance abstract method of AbstractPositionable
Returns: * - the drawing context or a reference to be able to get it back later

ParamTypeDescription
settingsObject

The object mapping of settings

skipTransition(property)

Skip transition on property.

Kind: instance method of AbstractPositionable

ParamTypeDescription
propertyString

A given property on which transition will be skipped

toggleTransitions(property, value)

Toggle transitions.

Kind: instance method of AbstractPositionable

ParamTypeDescription
propertyString

The property on which the transitions will be done

valueboolean | undefined

Flag that should disable or not transitions (true to enable transitions, false to disable transitions)

setNextTransition(property, settings)

Create transition for only next property change.

Kind: instance method of AbstractPositionable

ParamTypeDescription
propertyString

The property on which the transition will be applied

settingsObject

Various fields

_computeRTL_x(x) ⇒ number

Compute the new x position in a “right to left” context

Kind: instance method of AbstractPositionable
Returns: number - The rendering value

ParamTypeDescription
xnumber

The value to compute

_updateXFromWidth(rc)

In RTL (right to left) mode, a position depends on its parent width. If parent’s width is changing then all children positions must be updated

Kind: instance method of AbstractPositionable

ParamType
rc*