iText 7 7.1.9 API
iText.Kernel.Pdf.Canvas.Draw.ILineDrawer Interface Reference

The ILineDrawer defines a drawing operation on a iText.Kernel.Pdf.Canvas.PdfCanvas More...

Inheritance diagram for iText.Kernel.Pdf.Canvas.Draw.ILineDrawer:
iText.Kernel.Pdf.Canvas.Draw.DashedLine iText.Kernel.Pdf.Canvas.Draw.DottedLine iText.Kernel.Pdf.Canvas.Draw.SolidLine

Public Member Functions

void  Draw (PdfCanvas canvas, Rectangle drawArea)
  Performs configurable drawing operations related to specific region coordinates on a canvas. More...
 
float  GetLineWidth ()
  Gets the width of the line More...
 
void  SetLineWidth (float lineWidth)
  Sets line width in points More...
 
Color  GetColor ()
  Gets the color of the line More...
 
void  SetColor (Color color)
  Sets line color More...
 

Detailed Description

The ILineDrawer defines a drawing operation on a iText.Kernel.Pdf.Canvas.PdfCanvas

The ILineDrawer defines a drawing operation on a iText.Kernel.Pdf.Canvas.PdfCanvas
This interface allows to customize the 'empty' space in a com.itextpdf.layout.element.TabStop through a Strategy design pattern

Member Function Documentation

◆ Draw()

void iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.Draw ( PdfCanvas  canvas,
Rectangle  drawArea 
)

Performs configurable drawing operations related to specific region coordinates on a canvas.

Parameters
canvas the canvas to draw on
drawArea the rectangle in relation to which to fulfill drawing instructions

Implemented in iText.Kernel.Pdf.Canvas.Draw.DottedLine, iText.Kernel.Pdf.Canvas.Draw.DashedLine, and iText.Kernel.Pdf.Canvas.Draw.SolidLine.

◆ GetColor()

Color iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.GetColor ( )

Gets the color of the line

Returns
color of the line

Implemented in iText.Kernel.Pdf.Canvas.Draw.DottedLine, iText.Kernel.Pdf.Canvas.Draw.DashedLine, and iText.Kernel.Pdf.Canvas.Draw.SolidLine.

◆ GetLineWidth()

float iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.GetLineWidth ( )

Gets the width of the line

Returns
width of the line

Implemented in iText.Kernel.Pdf.Canvas.Draw.DottedLine, iText.Kernel.Pdf.Canvas.Draw.DashedLine, and iText.Kernel.Pdf.Canvas.Draw.SolidLine.

◆ SetColor()

void iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.SetColor ( Color  color )

◆ SetLineWidth()

void iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.SetLineWidth ( float  lineWidth )

Sets line width in points

Parameters
lineWidth new line width

Implemented in iText.Kernel.Pdf.Canvas.Draw.DottedLine, iText.Kernel.Pdf.Canvas.Draw.DashedLine, and iText.Kernel.Pdf.Canvas.Draw.SolidLine.