public override void CreatePath(iTextSharp.text.pdf.PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, iTextSharp.text.Rectangle rectangle) { if (contentByte == null) { throw new ArgumentNullException("contentByte"); } if (style == null) { throw new ArgumentNullException("style"); } if (rectangle == null) { throw new ArgumentNullException("rectangle"); } if ((line == null)||(line.Thickness < 1)) { BaseShape.FillBackGround(contentByte,style,rectangle); } else if ((style.BackColor == GlobalValues.DefaultBackColor)) { BaseShape.SetupShape(contentByte,style); contentByte.SetLineWidth(UnitConverter.FromPixel(line.Thickness).Point); contentByte.MoveTo(rectangle.Left ,rectangle.Top ); contentByte.LineTo(rectangle.Left, rectangle.Top - rectangle.Height); contentByte.LineTo(rectangle.Left + rectangle.Width, rectangle.Top - rectangle.Height); contentByte.LineTo(rectangle.Left + rectangle.Width, rectangle.Top); contentByte.LineTo(rectangle.Left, rectangle.Top); BaseShape.FinishShape(contentByte); } else { BaseShape.FillBackGround(contentByte,style,rectangle); } }
public override void CreatePath(iTextSharp.text.pdf.PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, iTextSharp.text.Rectangle rectangle) { throw new NotImplementedException(); }
public override void CreatePath(iTextSharp.text.pdf.PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, Point from,Point to) { throw new NotImplementedException(); }
public override void CreatePath(iTextSharp.text.pdf.PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, iTextSharp.text.Rectangle rectangle) { if (contentByte == null) { throw new ArgumentNullException("contentByte"); } if (rectangle == null) { throw new ArgumentNullException("rectangle"); } if ((line == null) || (line.Thickness < 1)) { BaseShape.FillBackGround(contentByte, style, rectangle); } else if ((style.BackColor == GlobalValues.DefaultBackColor)) { BaseShape.SetupShape(contentByte, style); contentByte.SetLineWidth(UnitConverter.FromPixel(line.Thickness).Point); contentByte.Ellipse(rectangle.Left, rectangle.Top, rectangle.Left + rectangle.Width, rectangle.Top - rectangle.Height); BaseShape.FinishShape(contentByte); } else { BaseShape.FillBackGround(contentByte, style, rectangle); } }
// http://www.mikesdotnetting.com/Article/88/iTextSharp-Drawing-shapes-and-Graphics public override void CreatePath(iTextSharp.text.pdf.PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, iTextSharp.text.Rectangle rectangle) { if (contentByte == null) { throw new ArgumentNullException("contentByte"); } if (style == null) { throw new ArgumentNullException("style"); } if (rectangle == null) { throw new ArgumentNullException("rectangle"); } if (line == null) { BaseShape.FillBackGround(contentByte,style,rectangle); } else { BaseShape.SetupShape(contentByte,style); contentByte.SetLineWidth(UnitConverter.FromPixel(line.Thickness).Point); contentByte.RoundRectangle(rectangle.Left, rectangle.Bottom, rectangle.Width, rectangle.Height, CornerRadius); BaseShape.FinishShape(contentByte); } }
public void DrawShape(PdfContentByte cb, BaseLine line, IBaseStyleDecorator style, iTextSharp.text.Rectangle r) { this.CreatePath(cb, line, style, r); }
// http://www.mikesdotnetting.com/Article/88/iTextSharp-Drawing-shapes-and-Graphics public override void CreatePath(iTextSharp.text.pdf.PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, iTextSharp.text.Rectangle rectangle) { if (contentByte == null) { throw new ArgumentNullException("contentByte"); } if (style == null) { throw new ArgumentNullException("style"); } if (rectangle == null) { throw new ArgumentNullException("rectangle"); } if (line == null) { BaseShape.FillBackGround(contentByte, style, rectangle); } else { BaseShape.SetupShape(contentByte, style); contentByte.SetLineWidth(UnitConverter.FromPixel(line.Thickness).Point); contentByte.RoundRectangle(rectangle.Left, rectangle.Bottom, rectangle.Width, rectangle.Height, CornerRadius); BaseShape.FinishShape(contentByte); } }
public void DrawShape(PdfContentByte cb, BaseLine line, IBaseStyleDecorator style, Point from, Point to) { this.CreatePath(cb, line, style, from, to); }
protected static void FillBackGround(iTextSharp.text.pdf.PdfContentByte contentByte, IBaseStyleDecorator style, iTextSharp.text.Rectangle rectangle) { contentByte.SetColorFill(style.PdfBackColor); contentByte.Rectangle(rectangle.Left, rectangle.Top - rectangle.Height, rectangle.Width, rectangle.Height); contentByte.Fill(); }
public override void CreatePath(iTextSharp.text.pdf.PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, Point from,Point to) { if (contentByte == null) { throw new ArgumentNullException("contentByte"); } BaseShape.SetupShape(contentByte,style); contentByte.SetLineWidth(UnitConverter.FromPixel(line.Thickness).Point); contentByte.MoveTo(from.X,from.Y ); contentByte.LineTo(to.X,to.Y); BaseShape.FinishShape(contentByte); }
public override void CreatePath(iTextSharp.text.pdf.PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, Point from, Point to) { if (contentByte == null) { throw new ArgumentNullException("contentByte"); } BaseShape.SetupShape(contentByte, style); contentByte.SetLineWidth(UnitConverter.FromPixel(line.Thickness).Point); contentByte.MoveTo(from.X, from.Y); contentByte.LineTo(to.X, to.Y); BaseShape.FinishShape(contentByte); }
public abstract void CreatePath (PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, Point from, Point to);
static void SetDimension (FrameworkElement element,IBaseStyleDecorator decorator) { element.Width = decorator.DisplayRectangle.Width; element.Height = decorator.DisplayRectangle.Height; }
public void DrawShape(PdfContentByte cb, BaseLine line, IBaseStyleDecorator style, Point from,Point to) { this.CreatePath(cb,line,style,from,to); }
public abstract void CreatePath (PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, iTextSharp.text.Rectangle rectangle);
public BaseExportColumn() { this.styleDecorator = new BaseStyleDecorator(System.Drawing.Color.White, System.Drawing.Color.Black); }
public void DrawShape(PdfContentByte cb, BaseLine line, IBaseStyleDecorator style, iTextSharp.text.Rectangle r) { this.CreatePath(cb,line,style,r); }
// public ExportGraphicContainer (IExportContainer itemStyle,bool isContainer):base(itemStyle as BaseStyleDecorator) public ExportGraphicContainer(IBaseStyleDecorator itemStyle) : base(itemStyle as BaseStyleDecorator) { }
public BaseExportColumn(IBaseStyleDecorator itemStyle, bool isContainer) { this.styleDecorator = itemStyle; this.isContainer = isContainer; }
public abstract void CreatePath(PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, iTextSharp.text.Rectangle rectangle);
public ExportGraphic (IBaseStyleDecorator itemStyle,bool isContainer):base(itemStyle,isContainer) { }
public ExportGraphic(IBaseStyleDecorator itemStyle) : base(itemStyle) { }
protected static void SetupShape(PdfContentByte cb, IBaseStyleDecorator style) { cb.SetColorStroke(style.PdfFrameColor); cb.SetColorFill(style.PdfBackColor); }
protected static void SetupShape (PdfContentByte cb,IBaseStyleDecorator style) { cb.SetColorStroke(style.PdfFrameColor); cb.SetColorFill(style.PdfBackColor); }
public ExportGraphic (IBaseStyleDecorator itemStyle):base(itemStyle) { }
protected static void FillBackGround (iTextSharp.text.pdf.PdfContentByte contentByte, IBaseStyleDecorator style, iTextSharp.text.Rectangle rectangle) { contentByte.SetColorFill(style.PdfBackColor); contentByte.Rectangle (rectangle.Left, rectangle.Top - rectangle.Height , rectangle.Width,rectangle.Height); contentByte.Fill(); }
// public ExportGraphicContainer (IExportContainer itemStyle,bool isContainer):base(itemStyle as BaseStyleDecorator) public ExportGraphicContainer (IBaseStyleDecorator itemStyle):base(itemStyle as BaseStyleDecorator) { }
public ExportGraphic(IBaseStyleDecorator itemStyle, bool isContainer) : base(itemStyle, isContainer) { }
public abstract void CreatePath(PdfContentByte contentByte, BaseLine line, IBaseStyleDecorator style, Point from, Point to);
public BaseExportColumn(IBaseStyleDecorator styleDecorator) { this.StyleDecorator = styleDecorator; }
static void SetDimension(FrameworkElement element, IBaseStyleDecorator decorator) { element.Width = decorator.DisplayRectangle.Width; element.Height = decorator.DisplayRectangle.Height; }