Constructor
new Caption(desktop, data)
Parameters:
Name | Type | Description |
---|---|---|
desktop |
Simplicite.Diagram.Desktop | desk manager |
data |
Object | Model data and { x, y } |
Methods
bind()
- Description:
Bind caption
display()
- Description:
Display the default caption with model data
draw()
- Description:
Draw caption within hook onDrawCaption(caption, display)
size(w, h)
- Description:
Set/Get size of caption
Parameters:
Name | Type | Description |
---|---|---|
w |
number | Width |
h |
number | Height |