NodeExpander

open class NodeExpander : Expander

Handles expansion of diagram nodes. This class inherits Expander.

  • Handles the onClick event.

    Declaration

    Swift

    open override func onClick(_ point: Point)

    Parameters

    point

    The point where the user has clicked.

  • Renders this NodeExpander on the specified canvas.

    Declaration

    Swift

    open override func draw(_ canvas: Canvas)
  • Checks if the user action in the point raises drag events.

    Declaration

    Swift

    open override func needsDragEvents(_ point: Point) -> Bool

    Parameters

    point

    The point where the user has clicked.

    Return Value

    true if drag events should be raised; otherwise false.

  • Handles the TouchDown event.

    Declaration

    Swift

    open override func onTouchDown(_ point: Point)

    Parameters

    point

    The point where the user has touched the surface.

  • Handles the TouchMove event.

    Declaration

    Swift

    open override func onTouchMove(_ point: Point)

    Parameters

    point

    The point where the user has moved their finger on the surface.

  • Handles the TouchUp event.

    Declaration

    Swift

    open override func onTouchUp(_ point: Point)

    Parameters

    point

    The point where the user has lifted their finger from the surface.

  • Specifies if the node is expanded.

    Declaration

    Swift

    open override var expanded: Bool { get }