this.fromPos = fromContainer.getNextInsertPosition(); this.toPos   = toContainer.getNextInsertPosition();
this.fromPos = (fromContainer != null ? fromContainer.getNextInsertPosition(): null); this.toPos   = (toContainer != null ? toContainer.getNextInsertPosition() : null);
    public Transition(ShapeGraphic shape, ShapeContainer fromContainer, ShapeContainer toContainer) {        this.shape = shape;        this.fromContainer = fromContainer;        this.toContainer = toContainer;        this.fromPos = fromContainer.getNextInsertPosition();        this.toPos   = toContainer.getNextInsertPosition();        firstStep = true;        lastStep = false;    }