Point location = point0.getTranslated(translation);
location.x -= ACTION_SIZE/2;
location.y -= ACTION_SIZE/2;
return location;
} else {
NodeFigure nodeFigure = (NodeFigure) figure;
List<IFigure> children = nodeFigure.getActionsContainer().getChildren();
IFigure prevFigure;
if (children.size() > actionIndex) {
prevFigure = children.get(children.size() - 1 - actionIndex);
} else {
prevFigure = children.get(0);