public VectorRedactorRepository(Graphics canvas, Redactor redactor, VectorRedactorConfig config) { Canvas = canvas; _redactor = redactor; canvas.SmoothingMode = SmoothingMode.HighQuality; Layout = new Layout(canvas); WordConfig = new GlyphConfig(config.WordBrush, config.WordPen); LineConfig = new GlyphConfig(config.LineBrush, config.LinePen); RedactorState = RedactorStates.Default; MainGlyph = new CanvasGlyph(WordConfig) { Redactor = _redactor, ParentVectorRedactor = this }; MainGlyph.MainGlyph = MainGlyph; ActiveGlyph = MainGlyph; }
/// <summary> /// Получение маркеров. /// </summary> /// <param name="diagram"></param> /// <returns></returns> public abstract List<Marker> CreateMarkers(Layout diagram);
public override List<Marker> CreateMarkers(Layout diagram) { throw new NotImplementedException(); }
//создание маркера для изменения размера public override List<Marker> CreateMarkers(Layout layout) { var markers = new List<Marker>(); Marker m = new SizeMarker(); m.TargetFigure = this; markers.Add(m); return markers; }
public override List<Marker> CreateMarkers(Layout layout) { var markers = new List<Marker>(); var m1 = new EndLineMarker(0); m1.TargetFigure = this; var m2 = new EndLineMarker(1); m2.TargetFigure = this; markers.Add(m1); markers.Add(m2); return markers; }
/// <summary> /// Получение маркеров. /// </summary> /// <param name="diagram"></param> /// <returns></returns> public abstract List <Marker> CreateMarkers(Layout diagram);
public override List <Marker> CreateMarkers(Layout diagram) { throw new NotImplementedException(); }