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

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

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

Public Member Functions

  DottedLine ()
  Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle. More...
 
  DottedLine (float lineWidth, float gap)
  Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle. More...
 
  DottedLine (float lineWidth)
  Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle. More...
 
virtual void  Draw (PdfCanvas canvas, Rectangle drawArea)
  Performs configurable drawing operations related to specific region coordinates on a canvas. More...
 
virtual float  GetGap ()
  Getter for the gap between the center of the dots of the dotted line. More...
 
virtual void  SetGap (float gap)
  Setter for the gap between the center of the dots of the dotted line. 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 dotted horizontal line along the bottom edge of the specified rectangle.

Constructor & Destructor Documentation

◆ DottedLine() [1/3]

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

Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.

◆ DottedLine() [2/3]

iText.Kernel.Pdf.Canvas.Draw.DottedLine.DottedLine ( float  lineWidth,
float  gap 
)
inline

Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.

Parameters
lineWidth the width of the line
gap the gap between the center of the dots of the dotted line.

◆ DottedLine() [3/3]

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

Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.

Parameters
lineWidth the width of the line

Member Function Documentation

◆ Draw()

virtual void iText.Kernel.Pdf.Canvas.Draw.DottedLine.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.DottedLine.GetColor ( )
inlinevirtual

Gets the color of the line

Returns
color of the line

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

◆ GetGap()

virtual float iText.Kernel.Pdf.Canvas.Draw.DottedLine.GetGap ( )
inlinevirtual

Getter for the gap between the center of the dots of the dotted line.

Returns
the gap between the center of the dots

◆ GetLineWidth()

virtual float iText.Kernel.Pdf.Canvas.Draw.DottedLine.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.DottedLine.SetColor ( Color  color )
inlinevirtual

Sets line color

Parameters
color new line color

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

◆ SetGap()

virtual void iText.Kernel.Pdf.Canvas.Draw.DottedLine.SetGap ( float  gap )
inlinevirtual

Setter for the gap between the center of the dots of the dotted line.

Parameters
gap the gap between the center of the dots

◆ SetLineWidth()

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

Sets line width in points

Parameters
lineWidth new line width

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