コード例 #1
0
ファイル: Ellipse.cs プロジェクト: akimovatatiana/OOD
 public Ellipse(Rect <double> frame, IOutlineStyle outlineStyle, IStyle fillStyle)
     : base(frame, outlineStyle, fillStyle)
 {
 }
コード例 #2
0
ファイル: Triangle.cs プロジェクト: protasov-ilja/OOD
 public Triangle(Rect <float> frame, IOutlineStyle outlineStyle, IStyle fillStyle)
     : base(frame, outlineStyle, fillStyle)
 {
 }
コード例 #3
0
 public Shape(Rect <double> frame, IOutlineStyle outlineStyle = null, IStyle fillStyle = null)
 {
     _frame        = frame;
     _outlineStyle = outlineStyle ?? new OutlineStyle();
     _fillStyle    = fillStyle ?? new Style();
 }
コード例 #4
0
 public Group(IComponent component)
 {
     _shapes.Add(component);
     _fillStyle    = new FillStyleGroup(GetFillStyle());
     _outlineStyle = new OutlineStyleGroup(GetOutlineStyle());
 }
コード例 #5
0
ファイル: Shape.cs プロジェクト: protasov-ilja/OOD
 public Shape(Rect <float> frame, IOutlineStyle outlineStyle, IStyle fillStyle)
 {
     SetFrame(frame);
     OutlineStyle = outlineStyle;
     FillStyle    = fillStyle;
 }