REFACTORING: Added SplineStates to GraphicsSpline, which manage now the correct painting and mouse events