docs.unity.cn
    Show / Hide Table of Contents

    Class SystemEdgeConnector<TEdge>

    SystemEdgeConnector handles the events of edges in the graph. Implements the EdgeConnector

    Inheritance
    Object
    Manipulator
    MouseManipulator
    EdgeConnector
    SystemEdgeConnector<TEdge>
    Inherited Members
    MouseManipulator.CanStartManipulation(IMouseEvent)
    MouseManipulator.CanStopManipulation(IMouseEvent)
    MouseManipulator.activators
    Manipulator.target
    Namespace: Mechatronics.SystemGraph
    Syntax
    public class SystemEdgeConnector<TEdge> : EdgeConnector, IManipulator where TEdge : SystemEdge, new()
    Type Parameters
    Name Description
    TEdge

    The type of the t edge.

    Constructors

    SystemEdgeConnector(IEdgeConnectorListener)

    Initializes a new instance of the SystemEdgeConnector<TEdge> class.

    Declaration
    public SystemEdgeConnector(IEdgeConnectorListener listener)
    Parameters
    Type Name Description
    IEdgeConnectorListener listener

    The listener.

    Properties

    Disable

    Gets or sets a value indicating whether this SystemEdgeConnector<TEdge> is disable.

    Declaration
    public bool Disable { get; set; }
    Property Value
    Type Description
    Boolean

    true if disable; otherwise, false.

    edgeDragHelper

    Reference to the edge drag helper.

    Declaration
    public override EdgeDragHelper edgeDragHelper { get; }
    Property Value
    Type Description
    EdgeDragHelper

    The edge drag helper.

    Overrides
    EdgeConnector.edgeDragHelper

    Methods

    OnMouseDown(MouseDownEvent)

    Called when [mouse down].

    Declaration
    protected virtual void OnMouseDown(MouseDownEvent e)
    Parameters
    Type Name Description
    MouseDownEvent e

    The e.

    OnMouseMove(MouseMoveEvent)

    Called when [mouse move].

    Declaration
    protected virtual void OnMouseMove(MouseMoveEvent e)
    Parameters
    Type Name Description
    MouseMoveEvent e

    The e.

    OnMouseUp(MouseUpEvent)

    Called when [mouse up].

    Declaration
    protected virtual void OnMouseUp(MouseUpEvent e)
    Parameters
    Type Name Description
    MouseUpEvent e

    The e.

    RegisterCallbacksOnTarget()

    Called to register event callbacks on the target element.

    Declaration
    protected override void RegisterCallbacksOnTarget()
    Overrides
    Manipulator.RegisterCallbacksOnTarget()

    UnregisterCallbacksFromTarget()

    Called to unregister event callbacks from the target element.

    Declaration
    protected override void UnregisterCallbacksFromTarget()
    Overrides
    Manipulator.UnregisterCallbacksFromTarget()

    See Also

    EdgeConnector
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 18, 2022
    Terms of use