Container

Simplicite.Diagram. Container

Container constructor

Constructor

new Container(desktop, data, eltopt)

Parameters:
Name Type Attributes Description
desktop Simplicite.Diagram.Desktop

desk manager

data Object

Container data { title, type, template, x, y, w, h... }

elt $ <optional>

optional DOM object to synchronize

Methods

attach()

Description:
  • Attach

bind()

Description:
  • Bind

contains()

Description:
  • Is container inside this container?

contentBound()

Description:
  • Bounded rectangle of all contents

detach()

Description:
  • Detach

draw()

Description:
  • Draw

load()

Description:
  • Load

position(x, y, rel)

Description:
  • Set/get position of container

Parameters:
Name Type Description
x number

Horizontal coordinate

y number

Vertical coordinate

rel boolean

Relative?

remove()

Description:
  • Remove

resizePool()

Description:
  • Re-align all pools

setPool()

Description:
  • Change the pool position if > 0

size(w, h)

Description:
  • Set/Get size of container

Parameters:
Name Type Description
w number

Width

h number

Height

sizeBorder(w, h)

Description:
  • Size border

Parameters:
Name Type Description
w number

Width

h number

Height

style()

Description:
  • Style

toggleMenu()

Description:
  • Toggle menu