Search
ItemListView Class
Remarks See Also
 





A list view control that hosts DiagramItems and supports drag-and-drop to DiagramView.

Namespace: MindFusion.Diagramming
File: ItemListView.js

 Syntax

JavaScript  Copy Code

// class
ItemListView.prototype = {}

 Remarks

Call the addItem method to add an item to the view.

Drag-and-drop operations create a copy of the dragged item, and set its size to newInstanceSize. The copy is created by calling item's clone method. You can override clone to copy property values of custom item subclasses.

Icons in the list are drawn by scaling newInstanceSize down to iconSize. E.g. if a list icon is half the size of the diagram item it creates, its graphic elements such as cells, labels, strokes would be rendered at half scale too (as opposed to rendering with same label / stroke sizes but in smaller bounding rectangle). The scaling code assumes measureUnit of the target diagram and the list view have matching values.

 Inheritance Hierarchy

MindFusion.Controls.CanvasControl
    MindFusion.Diagramming.ListViewBase
        MindFusion.Diagramming.ItemListView

 See Also