[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit) / [flowcharts](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.flowcharts) / [commands](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.flowcharts#commands) / [TranslateVisuals](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.flowcharts#translatevisuals) / TranslateVisuals

# Class: TranslateVisuals

[commands](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.flowcharts#commands).[TranslateVisuals](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.flowcharts#translatevisuals).TranslateVisuals

Translates visual using a delta

## Hierarchy

- [`TransformVisuals`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals)
↳ **`TranslateVisuals`**


## Table of contents

Constructors
- [new TranslateVisuals(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.flowcharts.commands.translatevisuals.translatevisuals.md#new translatevisuals(options))


Methods
| [execute](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.translatevisuals.translatevisuals#execute) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.translatevisuals.translatevisuals#getclassname) | [getVisuals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.translatevisuals.translatevisuals#getvisuals) |
|  --- | --- | --- |
| [setVisuals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.translatevisuals.translatevisuals#setvisuals) | [undo](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.translatevisuals.translatevisuals#undo) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.translatevisuals.translatevisuals#getclassname-1) |


## Contents

Constructors
#### new TranslateVisuals(options)

• **new TranslateVisuals**(`options`)

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `options` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.flowcharts#translatevisuals#options) | command options |


#### Overrides

TransformVisuals.constructor

Methods
#### execute

▸ **execute**(): `boolean`

Executes the command

#### Returns

`boolean`

true on success, false if not executed

#### Inherited from

[TransformVisuals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals).[execute](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals#execute)

#### getClassName

▸ **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[TransformVisuals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals#getclassname)

#### getVisuals

▸ `Protected` **getVisuals**(): [`Component`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.flowcharts#icomponent#component)[]

Gets the visual collection

#### Returns

[`Component`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.flowcharts#icomponent#component)[]

#### Inherited from

[TransformVisuals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals).[getVisuals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals#getvisuals)

#### setVisuals

▸ `Protected` **setVisuals**(`value`): `void`

Sets the visual collection

#### Parameters

| Name  | Type  |
|  --- | --- |
| `value` | [`Component`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.flowcharts#icomponent#component)[] |


#### Returns

`void`

#### Inherited from

[TransformVisuals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals).[setVisuals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals#setvisuals)

#### undo

▸ **undo**(): `boolean`

Rewinds the command

#### Returns

`boolean`

true on success, false if couldn't be undone

#### Inherited from

[TransformVisuals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals).[undo](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals#undo)

#### getClassName

▸ `Static` **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[TransformVisuals](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.flowcharts.commands.transformvisuals.transformvisuals#getclassname-1)