Moving Presentation Shapes

AnyLogic supports two ways of moving presentation shapes. First, you can specify shape's coordinates in pixels in the shape's properties view. And also there is more visual way of moving shapes in the graphical editor using the mouse. 

As a rule, when you draw your presentation, it is more convenient to position shapes directly in the editor. While shape properties are commonly used when you need to define how shape should move during the model simulation – the behavior can be easily defined using the corresponding dynamic properties of the shape.

 To move a shape graphically
  1. Drag the shape using the mouse, or
    Select the shape in the graphical editor by clicking on it and move it by pressing the arrow keys on your keyboard.
 To define shape coordinates in pixels
  1. Select the shape in the graphical editor by clicking on it. 
  2. In the Position and size section of the Properties view, enter the shape's x- and y-coordinates in X and Y edit boxes correspondingly. 

Using modifier keys

When moving presentation shapes, you can use the Ctrl, Alt and Shift modifier keys to perform additional actions. Modifier keys can work in combination, e.g., Ctrl+Alt+drag creates a copy of the element while allowing to move it with snapping to grid temporarily disabled.

 To create a copy of the shape

  1. Press and hold the Ctrl key (Mac OS: Cmd key) and drag the shape using the mouse.

 To move a shape without snapping it to grid

By default, shapes snap to the graphical editor grid. Use can temporarily disable snapping to grid when moving a shape.

  1. Press and hold the Alt key (Mac OS: Option key) and drag the shape using the mouse, or
    Press and hold the Alt key and move the shape by pressing the arrow keys on your keyboard.
 To shift a shape horizontally / vertically
  1. Press and hold the Shift key and drag the shape using the mouse. The shape will only move horizontally or vertically, depending on the dragging direction, thus maintaining vertical / horizontal center alignment.