Table of Contents

Class MoveNode

Namespace
Artemis.UI.Shared.Services.NodeEditor.Commands
Assembly
Artemis.UI.Shared.dll

Represents a node editor command that can be used to move a node.

public class MoveNode : INodeEditorCommand
Inheritance
object
MoveNode
Implements

Constructors

MoveNode(INode, double, double)

Creates a new instance of the MoveNode class.

public MoveNode(INode node, double x, double y)

Parameters

node INode

The node to update.

x double

The new X-position.

y double

The new Y-position.

MoveNode(INode, double, double, double, double)

Creates a new instance of the MoveNode class.

public MoveNode(INode node, double x, double y, double originalX, double originalY)

Parameters

node INode

The node to update.

x double

The new X-position.

y double

The new Y-position.

originalX double

The original X-position.

originalY double

The original Y-position.

Properties

DisplayName

Gets the name of the command

public string DisplayName { get; }

Property Value

string

Methods

Execute()

Executes the command

public void Execute()

Undo()

Undoes the command

public void Undo()