Example #1
0
        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;
        }
Example #2
0
File: Layout.cs Project: ernado/Owl
 /// <summary>
 /// Получение маркеров.
 /// </summary>
 /// <param name="diagram"></param>
 /// <returns></returns>
 public abstract List<Marker> CreateMarkers(Layout diagram);
Example #3
0
File: Layout.cs Project: ernado/Owl
 public override List<Marker> CreateMarkers(Layout diagram)
 {
     throw new NotImplementedException();
 }
Example #4
0
File: Layout.cs Project: ernado/Owl
        //создание маркера для изменения размера
        public override List<Marker> CreateMarkers(Layout layout)
        {
            var markers = new List<Marker>();
            Marker m = new SizeMarker();
            m.TargetFigure = this;
            markers.Add(m);

            return markers;
        }
Example #5
0
File: Layout.cs Project: ernado/Owl
        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;
        }
Example #6
0
 /// <summary>
 /// Получение маркеров.
 /// </summary>
 /// <param name="diagram"></param>
 /// <returns></returns>
 public abstract List <Marker> CreateMarkers(Layout diagram);
Example #7
0
 public override List <Marker> CreateMarkers(Layout diagram)
 {
     throw new NotImplementedException();
 }