2

I have a grid on which boxes can be placed like in the image below. The main constraint is that two boxes must not overlap. Box X is not allowed to be on top of box E.

elements on a 2d grid

Now given each box should be allowed to be copied and pasted, what would be a good way to determine the target position for the pasted box?

In other 2D applications like Photoshop pasted elements overlap the original element or just are placed in the center of the screen. (As already discussed over there)

But if there is no space for the element to fit in the center of the screen, what would a user expect where the element appears?

Are there any applications which have already solved this?

Would it be a good idea to expand the paste operation by one step, allowing the user to select a suitable position by them self?

  • pressing ctrl+v to enter pasting mode
  • demand clicking on a point giving feedback if the position is allowed
  • if yes then inserting the element

I think this could be to complicated compared to copy/paste in other applications.

1 Answer 1

3

The idiom that comes to my mind is from computer games that allow you to place buildings, etc., on a map. Many games have the item follow your mouse when you place it on a map, but it has a red highlight or is grayed out if you hover over an invalid location.

This is usually a drag-and-drop paradigm, but I think it would work well for pasting if you can't allow objects to be pasted just anywhere. When the user pastes the object, there is a red or green outline of it (for example) following the mouse, depending on whether the location is valid, until the user clicks on a location.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.