예제 #1
0
파일: state.cs 프로젝트: dmatveev/graphite
        public override void ProcessClick()
        {
            Graphite.Core.Vertex thisVisual;

            if ((thisVisual = _ui.graphView().SelectedVertex()) == null)
                 return;

            if (_fromVertex != null) {
                _document.ConnectVertex (_fromVertex, thisVisual, 0);
                _document.ConnectVertex (thisVisual, _fromVertex, 0);
            }
            else
                _fromVertex = thisVisual;
        }
예제 #2
0
 public void CreateVertex(Point pt, Shape sh)
 {
     var vertex = new Graphite.Core.Vertex (++_counter, pt);
     vertex.VertexShape = sh;
     AddVertex (vertex);
 }
예제 #3
0
파일: scene.cs 프로젝트: dmatveev/graphite
 public Vertex(Graphite.Core.Vertex vertex)
 {
     _assignedVertex = vertex;
 }
예제 #4
0
파일: state.cs 프로젝트: dmatveev/graphite
 public override void ProcessMouseDown()
 {
     _ui.graphView().TrySelectVertex (_ui.graphView().CurrentPoint());
     _pressed = ((_draggedVertex = _ui.graphView().SelectedVertex()) != null);
 }