Class: MoveAndResize

Kekule.ChemObjOperation. MoveAndResize

new MoveAndResize(chemObject, newDimension, newCoord, coordMode, useAbsCoord)

Operation of changing a chem object's size and coord.
Parameters:
Name Type Description
chemObject Kekule.ChemObject Target chem object.
newDimension Hash {width, height}
newCoord Hash
coordMode Int
useAbsCoord Bool
Properties:
Name Type Description
newDimension Hash
oldDimension Hash If old dimension is not set, this property will be automatically calculated when execute the operation.
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. MoveAndResize

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: