示例#1
0
 public void MouseEnter(object sender, CrossStateData data)
 {
     if (sender != null && sender is BranchLabelModel)
     {
         Program.AggregationFocus((BranchLabelModel)sender);
     }
 }
示例#2
0
 public void MouseLeave(object sender, CrossStateData data)
 {
     if (sender != data.AttachedBranch)
     {
         Program.AggregationFocus(null);
     }
 }
示例#3
0
 public void MouseEnter(object sender, CrossStateData data)
 {
     if (Aimed == null || sender == Aimed)
     {
         Graph.GetInstance().HighlightAsFocused((GraphItemModel)sender);
     }
 }
示例#4
0
        public void MouseMove(CrossStateData data, MouseEventArgs e)
        {
            Graph g = Graph.GetInstance();

            g.Move(data.MouseDisplacement);
            _moved = true;
        }
示例#5
0
 public void MouseUp(object sender, CrossStateData data, MouseButtonEventArgs e)
 {
     if (sender != null && sender == Aimed)
     {
         Program.GetInstance().Show(Aimed);
     }
     Aimed = null;
     MouseEnter(sender, data);
 }
示例#6
0
 void MouseUp(CrossStateData data, MouseButtonEventArgs e)
 {
     if (e.ChangedButton == MouseButton.Left)
     {
         if (!_moved)
         {
             Program.Show(null);
         }
         ChangeState(Normal.GetInstance());
     }
 }
示例#7
0
 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);
     }
 }
示例#8
0
 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;
         }
     }
 }
示例#9
0
 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);
     }
 }
示例#10
0
 public void MouseLeaveWindow(CrossStateData data)
 {
     ChangeState(Normal.GetInstance());
 }
示例#11
0
 public void WindowMouseUp(object sender, CrossStateData data, MouseButtonEventArgs e)
 {
     Aimed = null;
     MouseEnter(sender, data);
 }
示例#12
0
 public void MouseWheelMove(CrossStateData data, int delta)
 {
 }
示例#13
0
 public void MouseUp(object sender, CrossStateData data, MouseButtonEventArgs e)
 {
     MouseUp(data, e);
 }
示例#14
0
 public void MouseLeaveWindow(CrossStateData data)
 {
 }
示例#15
0
 public void WindowMouseDown(object sender, CrossStateData data, MouseButtonEventArgs e)
 {
 }
示例#16
0
 public void MouseLeave(object sender, CrossStateData data)
 {
     Graph.GetInstance().HighlightAsFocused(null);
 }
示例#17
0
 public void MouseWheelMove(CrossStateData data, int delta)
 {
     CommitManager.GetInstance().BranchLabelToMouse(data.AttachedBranch, data.MousePoint);
 }
示例#18
0
 void ChangeState(IProgramState state, CrossStateData data)
 {
     CommitManager.GetInstance().RestoreBranchLabel(data.AttachedBranch);
     Program.AggregationFocus(null);
     Program.ChangeState(state);
 }
示例#19
0
 public void MouseLeave(object sender, CrossStateData data)
 {
 }
示例#20
0
 public void MouseEnter(object sender, CrossStateData data)
 {
 }
示例#21
0
 public void MouseMove(CrossStateData data, MouseEventArgs e)
 {
     CommitManager.GetInstance().MoveBranch(data.MouseDisplacement);
     _moved = true;
 }