1 package net.mograsim.logic.model.editor.states;
3 import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
4 import net.mograsim.logic.model.editor.Editor;
5 import net.mograsim.logic.model.editor.handles.Handle.HandleClickInfo;
7 public class StateManager
9 private EditorState state;
11 public StateManager(Editor session)
13 state = new SelectionState(session, this);
17 public EditorState getState()
22 public void setState(EditorState state)
49 public void duplicate()
59 public void mouseMoved(double x, double y)
61 state.mouseMoved(x, y);
64 public void select(Point pos, boolean additive)
66 state.select(pos, additive);
69 public boolean clickedHandle(HandleClickInfo handleClickInfo)
71 return state.clickedHandle(handleClickInfo);
74 public void boxSelect()