affectionPoint.getX() - getRadius(), affectionPoint.getY() - getRadius(), getWidth(), getHeight());
}
@Override
public ModelElement getAdjustedAssociatedElement(Point2D scrolledPoint, GraphController controller) {
AreaModel event = (AreaModel) getModelElement().clone();
CircleLocationModel circle = new CircleLocationModel();
// setting circlePoint - scrolledPoint is the center
final Point2D circlePoint = Point2DUtils.add(scrolledPoint,0,getRadius());
final GlobalPosition pointOnCircleLine = GlobalPosition.from(circlePoint);
circle.setCenter(GlobalPosition.from(scrolledPoint));
circle.setCirclePoint(pointOnCircleLine);
circle.setRadius(getRadius());
addAffectedEdgesToModel(controller, circle, scrolledPoint);
// return adjusted RoadEvent attribute
event.setLocation(circle);
return event;
}