public override void Visit(ExportCircle exportCircle) { var drawingElement = CreateCircle(exportCircle); var containerCanvas = CreateItemsInContainer(exportCircle.ExportedItems); containerCanvas.Children.Insert(0, drawingElement); UIElement = containerCanvas; }
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())); }
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); }
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())); }
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); }
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; }
public virtual void Visit(ExportCircle exportCircle) { }