public void MouseEnter(object sender, CrossStateData data) { if (sender != null && sender is BranchLabelModel) { Program.AggregationFocus((BranchLabelModel)sender); } }
public void MouseLeave(object sender, CrossStateData data) { if (sender != data.AttachedBranch) { Program.AggregationFocus(null); } }
public void MouseEnter(object sender, CrossStateData data) { if (Aimed == null || sender == Aimed) { Graph.GetInstance().HighlightAsFocused((GraphItemModel)sender); } }
public void MouseMove(CrossStateData data, MouseEventArgs e) { Graph g = Graph.GetInstance(); g.Move(data.MouseDisplacement); _moved = true; }
public void MouseUp(object sender, CrossStateData data, MouseButtonEventArgs e) { if (sender != null && sender == Aimed) { Program.GetInstance().Show(Aimed); } Aimed = null; MouseEnter(sender, data); }
void MouseUp(CrossStateData data, MouseButtonEventArgs e) { if (e.ChangedButton == MouseButton.Left) { if (!_moved) { Program.Show(null); } ChangeState(Normal.GetInstance()); } }
public void MouseMove(CrossStateData data, MouseEventArgs e) { if (Aimed != null && Aimed is BranchLabelModel) { data.AttachedBranch = (BranchLabelModel)Aimed; MovingBranch mb = MovingBranch.GetInstance(); mb.SetBranchLabel(data.AttachedBranch); Graph.GetInstance().CaptureMaouse(); ChangeState(mb); } }
public void MouseDown(object sender, CrossStateData data, MouseButtonEventArgs e) { if (e.ChangedButton == MouseButton.Left) { if (sender == null) { Graph.GetInstance().CaptureMaouse(); ChangeState(MovingCanvas.GetInstance()); } else { Aimed = (GraphItemModel)sender; } } }
void MouseUp(CrossStateData data, MouseButtonEventArgs e) { if (e.ChangedButton != MouseButton.Left) { return; } if (Program.AggregationFocused != null) { Program.Aggregate(Program.AggregationFocused, data.AttachedBranch); } ChangeState(Normal.GetInstance(), data); if (_moved == false) { Program.Show(data.AttachedBranch); } }
public void MouseLeaveWindow(CrossStateData data) { ChangeState(Normal.GetInstance()); }
public void WindowMouseUp(object sender, CrossStateData data, MouseButtonEventArgs e) { Aimed = null; MouseEnter(sender, data); }
public void MouseWheelMove(CrossStateData data, int delta) { }
public void MouseUp(object sender, CrossStateData data, MouseButtonEventArgs e) { MouseUp(data, e); }
public void MouseLeaveWindow(CrossStateData data) { }
public void WindowMouseDown(object sender, CrossStateData data, MouseButtonEventArgs e) { }
public void MouseLeave(object sender, CrossStateData data) { Graph.GetInstance().HighlightAsFocused(null); }
public void MouseWheelMove(CrossStateData data, int delta) { CommitManager.GetInstance().BranchLabelToMouse(data.AttachedBranch, data.MousePoint); }
void ChangeState(IProgramState state, CrossStateData data) { CommitManager.GetInstance().RestoreBranchLabel(data.AttachedBranch); Program.AggregationFocus(null); Program.ChangeState(state); }
public void MouseLeave(object sender, CrossStateData data) { }
public void MouseEnter(object sender, CrossStateData data) { }
public void MouseMove(CrossStateData data, MouseEventArgs e) { CommitManager.GetInstance().MoveBranch(data.MouseDisplacement); _moved = true; }