Exemplo n.º 1
0
		public override IExportColumn CreateExportColumn()
		{
			var ex = new ExportCircle();
			ex.Location = Location;
			ex.ForeColor = ForeColor;
			ex.BackColor = BackColor;
			ex.Size = Size;
			ex.DesiredSize = Size;
			ex.Thickness = Thickness;
			ex.DashStyle = DashStyle;
			return ex;
		}
Exemplo n.º 2
0
 public virtual void Visit(ExportCircle exportCircle)
 {
 }
Exemplo n.º 3
0
		public override void Visit(ExportCircle exportCircle)
		{
			var pen = FixedDocumentCreator.CreateWpfPen(exportCircle);
			var rad = CalcRad(exportCircle.Size);
			
			var visual = new DrawingVisual();
			using (var dc = visual.RenderOpen()){
				
				dc.DrawEllipse(FixedDocumentCreator.ConvertBrush(exportCircle.BackColor),
				                 pen,
				                 new Point(exportCircle.Location.X + rad.X,
				                           exportCircle.Location.Y + rad.Y),
				                 rad.X,
				                 rad.Y);
				                           
				                 
			}
			var dragingElement = new DrawingElement(visual);
			UIElement = dragingElement;
		}
Exemplo n.º 4
0
 public override void Visit(ExportCircle exportCircle)
 {
     var savedLocation = containerLocation;
     var pen = PdfHelper.CreatePen(exportCircle);
     xGraphics.DrawEllipse(pen,
                           PdfHelper.CreateBrush(exportCircle.BackColor) ,
                           new XRect(containerLocation.ToXPoints(),
                                     exportCircle.Size.ToXSize()));
     RenderContainerInternal (exportCircle,savedLocation);
 }
Exemplo n.º 5
0
		public override void Visit(ExportCircle exportCircle){
			var drawingElement = CreateCircle(exportCircle);
			var containerCanvas =  CreateItemsInContainer(exportCircle.ExportedItems);
			containerCanvas.Children.Insert(0,drawingElement);
			UIElement = containerCanvas;
		}
Exemplo n.º 6
0
		public override void Visit(ExportCircle exportCircle){
			var pen = PdfHelper.CreateDashedPen(exportCircle);
			xGraphics.DrawEllipse(pen,
			                PdfHelper.CreateBrush(exportCircle.BackColor) ,
			                new XRect(containerLocation.ToXPoints(),
			                          exportCircle.Size.ToXSize()));
		}
Exemplo n.º 7
0
		public override void Visit(ExportCircle exportCircle){
			var columnLocation = containerLocation;
			columnLocation.Offset(exportCircle.Location);
			var pen = PdfHelper.PdfPen(exportCircle);
			pen.DashStyle = PdfHelper.DashStyle(exportCircle);
			gfx.DrawEllipse(pen,new XRect(columnLocation.ToXPoints(),
			                                exportCircle.Size.ToXSize()));
		}