NodeListView

open class NodeListView : UITableView, UITableViewDataSource, UITableViewDelegate

NodeListView is a toolbox alike control. It displays a list of node templates, and lets user create new nodes based on these templates by drag-and-drop. NodeListView can contain instances of any DiagramNode derived classes.

  • The ShapeNode-s displayed by the NodeListView.

    Declaration

    Swift

    open var items: [ShapeNode]
  • Specifies if the names of the ShapeNode-s are visible.

    Declaration

    Swift

    open var areNamesVisible: Bool
  • Specifies the font used by this NodeListView to render text.

    Declaration

    Swift

    open var font: UIFont
  • Specifies the font color used by this NodeListView to render text.

    Declaration

    Swift

    open var fontColor: UIColor
  • Specifies the title of this NodeListView. The value can be nil.

    Declaration

    Swift

    open var title: String?
  • Specifies the DiagramView associated with this NodeListView. The value can be nil.

    Declaration

    Swift

    open var diagramView: DiagramView?
  • Initializes a new instance of the NodeListView class with the specified initial bounds.

    Declaration

    Swift

    public init(rect: Rect)

    Parameters

    rect

    The initial bounds of the NodeListView.

    Return Value

    The newly created NodeListView object.

  • Initializes a new instance of the NodeListView class with the specified coder.

    Declaration

    Swift

    required public init(coder aDecoder: NSCoder)

    Parameters

    coder

    The coder to use of the NodeListView.

    Return Value

    The newly created NodeListView object.

  • Gets the number of rows in a section in the NodeListView.

    Declaration

    Swift

    override open func numberOfRows(inSection section: Int) -> Int

    Parameters

    section

    The index of the section.

    Return Value

    The number of rows.

  • Gets the table cell at the path with the specified index.

    Declaration

    Swift

    override open func cellForRow(at indexPath: IndexPath) -> UITableViewCell?

    Parameters

    indexPath

    An NSIndexPath that specifies the path to the table cell.

    Return Value

    An UITableViewCell object found at the specified path; nil if none is found.

  • Gets the number of sections in the specified table view.

    Declaration

    Swift

    open func numberOfSections(in tableView: UITableView) -> Int

    Parameters

    tableView

    The UITableView to check.

    Return Value

    The number of sections in this view.

  • Gets the count of items in this table view.

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int

    Parameters

    tableView

    The UITableView to check.

    numberOfRowsInSection

    The number of rows in a section.

    Return Value

    The number of items.

  • Gets the title of this table view.

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String?

    Parameters

    tableView

    The UITableView to check.

    titleForHeaderInSection

    The index of the section for which title is sought.

    Return Value

    The title; nil if none is found.

  • Gets the cell from the specified table view with the specified path.

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell

    Parameters

    tableView

    The UITableView to check.

    indexPath

    The NSIndexPath to the cell.

    Return Value

    The UITableViewCell.