protected override void FinishDrawing() { LineShape go = new LineShape(_Points[0].layerCoord, _Points[1].layerCoord); //go.Pen.EndCap = new System.Drawing.Drawing2D.AdjustableArrowCap(2,1,true); LineCapEx cap = LineCapEx.FromName("ArrowF10"); cap.Size = 10; go.Pen.EndCap = cap; // deselect the text tool this._grac.CurrentGraphToolType = typeof(GraphControllerMouseHandlers.ObjectPointerMouseHandler); _grac.Layers[_grac.CurrentLayerNumber].GraphObjects.Add(go); _grac.RefreshGraph(); }
protected override void FinishDrawing() { LineShape go = new LineShape(_Points[0].layerCoord, _Points[1].layerCoord); //go.Pen.EndCap = new System.Drawing.Drawing2D.AdjustableArrowCap(2,1,true); LineCapEx cap = LineCapEx.FromName("ArrowF10"); cap.Size = 10; go.Pen.EndCap = cap; // deselect the text tool _grac.SetGraphToolFromInternal(Altaxo.Gui.Graph.Viewing.GraphToolType.ObjectPointer); _grac.ActiveLayer.GraphObjects.Add(go); _grac.WinFormsController.RefreshGraph(); }
void SetDataSource(LineCapEx selected) { if (_lineCaps == null) { SetDefaultValues(); } if (!_lineCaps.ContainsKey(selected.Name)) { _lineCaps.Add(selected.Name, selected); } this.BeginUpdate(); Items.Clear(); foreach (KeyValuePair <string, LineCapEx> o in _lineCaps) { Items.Add(o.Value); } SelectedItem = LineCapEx.FromName(selected.Name); this.EndUpdate(); }