public void alignRight(ArrayList<Element> selectedElements) {
        /* Most higher - value 0 */
        int maxRight = Integer.MIN_VALUE;
        int currentRight = 0;
        for (Element e : selectedElements) {
            if (e instanceof AbsPlace) {
                AbsPlace a = (AbsPlace) e;
                currentRight = a.getX() + a.getWidth();
            }
            if (e instanceof Node) {
                Node n = (Node) e;
                currentRight = n.getX() + n.getWidth();
            }
            if (e instanceof Transition) {
                Transition t = (Transition) e;
                currentRight = t.getX() + t.getWidth();
            }

            if (currentRight > maxRight) {
                maxRight = currentRight;
            }
            // Arc is nothing //
        }
        for (Element e : selectedElements) {
            if (e instanceof AbsPlace) {
                AbsPlace a = (AbsPlace) e;
                a.setX(maxRight - a.getWidth());
            }
            if (e instanceof Node) {
                Node n = (Node) e;
                n.setX(maxRight - n.getWidth());
            }
            if (e instanceof Transition) {
                Transition t = (Transition) e;
                t.setX(maxRight - t.getWidth());
            }
            // Arc is nothing //
        }
    }