iText 7 7.1.9 API
iText.Kernel.Pdf.Canvas.Draw.SolidLine Class Reference

Implementation of ILineDrawer which draws a solid horizontal line along the bottom edge of the specified rectangle. More...

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

Public Member Functions

  SolidLine ()
  Constructs an instance of solid line drawer More...
 
  SolidLine (float lineWidth)
  Constructs an instance of solid line drawer with the specified line thickness More...
 
virtual void  Draw (PdfCanvas canvas, Rectangle drawArea)
  Performs configurable drawing operations related to specific region coordinates on a canvas. More...
 
virtual float  GetLineWidth ()
  Gets line width in points More...
 
virtual void  SetLineWidth (float lineWidth)
  Sets line width in points More...
 
virtual Color  GetColor ()
  Gets the color of the line More...
 
virtual void  SetColor (Color color)
  Sets line color More...
 

Detailed Description

Implementation of ILineDrawer which draws a solid horizontal line along the bottom edge of the specified rectangle.

Constructor & Destructor Documentation

◆ SolidLine() [1/2]

iText.Kernel.Pdf.Canvas.Draw.SolidLine.SolidLine ( )
inline

Constructs an instance of solid line drawer

◆ SolidLine() [2/2]

iText.Kernel.Pdf.Canvas.Draw.SolidLine.SolidLine ( float  lineWidth )
inline

Constructs an instance of solid line drawer with the specified line thickness

Parameters
lineWidth line width

Member Function Documentation

◆ Draw()

virtual void iText.Kernel.Pdf.Canvas.Draw.SolidLine.Draw ( PdfCanvas  canvas,
Rectangle  drawArea 
)
inlinevirtual

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

Implements iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.

◆ GetColor()

virtual Color iText.Kernel.Pdf.Canvas.Draw.SolidLine.GetColor ( )
inlinevirtual

Gets the color of the line

Returns
color of the line

Implements iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.

◆ GetLineWidth()

virtual float iText.Kernel.Pdf.Canvas.Draw.SolidLine.GetLineWidth ( )
inlinevirtual

Gets line width in points

Returns
line thickness

Implements iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.

◆ SetColor()

virtual void iText.Kernel.Pdf.Canvas.Draw.SolidLine.SetColor ( Color  color )
inlinevirtual

Sets line color

Parameters
color new line color

Implements iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.

◆ SetLineWidth()

virtual void iText.Kernel.Pdf.Canvas.Draw.SolidLine.SetLineWidth ( float  lineWidth )
inlinevirtual

Sets line width in points

Parameters
lineWidth new line width

Implements iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.