예제 #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;
        }
예제 #2
0
파일: Layout.cs 프로젝트: ernado/Owl
 /// <summary>
 /// Получение маркеров.
 /// </summary>
 /// <param name="diagram"></param>
 /// <returns></returns>
 public abstract List<Marker> CreateMarkers(Layout diagram);
예제 #3
0
파일: Layout.cs 프로젝트: ernado/Owl
 public override List<Marker> CreateMarkers(Layout diagram)
 {
     throw new NotImplementedException();
 }
예제 #4
0
파일: Layout.cs 프로젝트: 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;
        }
예제 #5
0
파일: Layout.cs 프로젝트: 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;
        }
예제 #6
0
 /// <summary>
 /// Получение маркеров.
 /// </summary>
 /// <param name="diagram"></param>
 /// <returns></returns>
 public abstract List <Marker> CreateMarkers(Layout diagram);
예제 #7
0
 public override List <Marker> CreateMarkers(Layout diagram)
 {
     throw new NotImplementedException();
 }