Class: MoveTo

Kekule.ChemObjOperation. MoveTo

new MoveTo(chemObject, newCoord, coordMode, useAbsBaseCoord)

Operation of changing a chemObject's coord.
Parameters:
Name Type Description
chemObject Kekule.ChemObject Target chem object.
newCoord Hash
coordMode Int
useAbsBaseCoord Bool
Properties:
Name Type Description
newCoord Hash
oldCoord Hash If old coord is not set, this property will be automatically calculated when execute the operation.
coordMode Int
useAbsBaseCoord Bool
Source:

Extends

Methods

execute()

Execute this command.
Inherited From:
Source:

isReversible() → {Bool}

Indicate whether this command can be undone. Default is true. Descendants should override this method if unreversible.
Inherited From:
Source:
Returns:
Type
Bool

reverse()

Undo command execution.
Inherited From:
Source:

Kekule.ChemObjOperation. MoveTo

Methods

execute()

Execute this command.
Inherited From:
Source:

isReversible() → {Bool}

Indicate whether this command can be undone. Default is true. Descendants should override this method if unreversible.
Inherited From:
Source:
Returns:
Type
Bool

reverse()

Undo command execution.
Inherited From:
Source: