@Override
    public void running(BehaviorEvent event) {
        if (state != IDLE && target != null) {
            int x = event.getX(), y = event.getY();
            if (group.contains(x, y)) {
                Point p = group.parentToChild(new Point(x, y));
                if (!onePoint) {
                    resize(target, startPoint.x, startPoint.y, p.x, p.y);
                } else {
                    resize(target, p.x, p.y, p.x, p.y);
                }
                state = RUNNING_INSIDE;
            } else {
                state = RUNNING_OUTSIDE;
            }
        }
    }