HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.pdf.BidiLine Class Reference

Public Member Functions

 BidiLine ()
 
 BidiLine (BidiLine org)
 
bool IsEmpty ()
 
void ClearChunks ()
 
bool GetParagraph (int runDirection)
 
void AddChunk (PdfChunk chunk)
 
void AddChunks (ArrayList chunks)
 
void AddPiece (char c, PdfChunk chunk)
 
void Save ()
 
void Restore ()
 
void MirrorGlyphs ()
 
void DoArabicShapping ()
 
PdfLine ProcessLine (float leftX, float width, int alignment, int runDirection, int arabicOptions)
 
float GetWidth (int startIdx, int lastIdx)
 
ArrayList CreateArrayOfPdfChunks (int startIdx, int endIdx)
 
ArrayList CreateArrayOfPdfChunks (int startIdx, int endIdx, PdfChunk extraPdfChunk)
 
int[] GetWord (int startIdx, int idx)
 
int TrimRight (int startIdx, int endIdx)
 
int TrimLeft (int startIdx, int endIdx)
 
int TrimRightEx (int startIdx, int endIdx)
 
int TrimLeftEx (int startIdx, int endIdx)
 
void Reorder (int start, int end)
 
void Flip (int start, int end)
 

Static Public Member Functions

static bool IsWS (char c)
 

Protected Attributes

int runDirection
 
int pieceSize = pieceSizeStart
 
char[] text = new char[pieceSizeStart]
 
PdfChunk[] detailChunks = new PdfChunk[pieceSizeStart]
 
int totalTextLength = 0
 
byte[] orderLevels = new byte[pieceSizeStart]
 
int[] indexChars = new int[pieceSizeStart]
 
ArrayList chunks = new ArrayList()
 
int indexChunk = 0
 
int indexChunkChar = 0
 
int currentChar = 0
 
int storedRunDirection
 
char[] storedText = new char[0]
 
PdfChunk[] storedDetailChunks = new PdfChunk[0]
 
int storedTotalTextLength = 0
 
byte[] storedOrderLevels = new byte[0]
 
int[] storedIndexChars = new int[0]
 
int storedIndexChunk = 0
 
int storedIndexChunkChar = 0
 
int storedCurrentChar = 0
 
bool shortStore
 
int arabicOptions
 

Static Protected Attributes

static IntHashtable mirrorChars = new IntHashtable()
 

Detailed Description

Does all the line bidirectional processing with PdfChunk assembly.

Author
Paulo Soares (psoar.nosp@m.es@c.nosp@m.onsis.nosp@m.te.p.nosp@m.t)

Constructor & Destructor Documentation

◆ BidiLine() [1/2]

iTextSharp.text.pdf.BidiLine.BidiLine ( )

Creates new BidiLine

◆ BidiLine() [2/2]

iTextSharp.text.pdf.BidiLine.BidiLine ( BidiLine  org)

Member Function Documentation

◆ AddChunk()

void iTextSharp.text.pdf.BidiLine.AddChunk ( PdfChunk  chunk)

◆ AddChunks()

void iTextSharp.text.pdf.BidiLine.AddChunks ( ArrayList  chunks)

◆ AddPiece()

void iTextSharp.text.pdf.BidiLine.AddPiece ( char  c,
PdfChunk  chunk 
)

◆ ClearChunks()

void iTextSharp.text.pdf.BidiLine.ClearChunks ( )

◆ CreateArrayOfPdfChunks() [1/2]

ArrayList iTextSharp.text.pdf.BidiLine.CreateArrayOfPdfChunks ( int  startIdx,
int  endIdx 
)

◆ CreateArrayOfPdfChunks() [2/2]

ArrayList iTextSharp.text.pdf.BidiLine.CreateArrayOfPdfChunks ( int  startIdx,
int  endIdx,
PdfChunk  extraPdfChunk 
)

◆ DoArabicShapping()

void iTextSharp.text.pdf.BidiLine.DoArabicShapping ( )

◆ Flip()

void iTextSharp.text.pdf.BidiLine.Flip ( int  start,
int  end 
)

◆ GetParagraph()

bool iTextSharp.text.pdf.BidiLine.GetParagraph ( int  runDirection)

◆ GetWidth()

float iTextSharp.text.pdf.BidiLine.GetWidth ( int  startIdx,
int  lastIdx 
)

Gets the width of a range of characters.

Parameters
startIdxthe first index to calculate
lastIdxthe last inclusive index to calculate
Returns
the sum of all widths

◆ GetWord()

int [] iTextSharp.text.pdf.BidiLine.GetWord ( int  startIdx,
int  idx 
)

◆ IsEmpty()

bool iTextSharp.text.pdf.BidiLine.IsEmpty ( )

◆ IsWS()

static bool iTextSharp.text.pdf.BidiLine.IsWS ( char  c)
static

◆ MirrorGlyphs()

void iTextSharp.text.pdf.BidiLine.MirrorGlyphs ( )

◆ ProcessLine()

PdfLine iTextSharp.text.pdf.BidiLine.ProcessLine ( float  leftX,
float  width,
int  alignment,
int  runDirection,
int  arabicOptions 
)

◆ Reorder()

void iTextSharp.text.pdf.BidiLine.Reorder ( int  start,
int  end 
)

◆ Restore()

void iTextSharp.text.pdf.BidiLine.Restore ( )

◆ Save()

void iTextSharp.text.pdf.BidiLine.Save ( )

◆ TrimLeft()

int iTextSharp.text.pdf.BidiLine.TrimLeft ( int  startIdx,
int  endIdx 
)

◆ TrimLeftEx()

int iTextSharp.text.pdf.BidiLine.TrimLeftEx ( int  startIdx,
int  endIdx 
)

◆ TrimRight()

int iTextSharp.text.pdf.BidiLine.TrimRight ( int  startIdx,
int  endIdx 
)

◆ TrimRightEx()

int iTextSharp.text.pdf.BidiLine.TrimRightEx ( int  startIdx,
int  endIdx 
)

Member Data Documentation

◆ arabicOptions

int iTextSharp.text.pdf.BidiLine.arabicOptions
protected

◆ chunks

ArrayList iTextSharp.text.pdf.BidiLine.chunks = new ArrayList()
protected

◆ currentChar

int iTextSharp.text.pdf.BidiLine.currentChar = 0
protected

◆ detailChunks

PdfChunk [] iTextSharp.text.pdf.BidiLine.detailChunks = new PdfChunk[pieceSizeStart]
protected

◆ indexChars

int [] iTextSharp.text.pdf.BidiLine.indexChars = new int[pieceSizeStart]
protected

◆ indexChunk

int iTextSharp.text.pdf.BidiLine.indexChunk = 0
protected

◆ indexChunkChar

int iTextSharp.text.pdf.BidiLine.indexChunkChar = 0
protected

◆ mirrorChars

IntHashtable iTextSharp.text.pdf.BidiLine.mirrorChars = new IntHashtable()
staticprotected

◆ orderLevels

byte [] iTextSharp.text.pdf.BidiLine.orderLevels = new byte[pieceSizeStart]
protected

◆ pieceSize

int iTextSharp.text.pdf.BidiLine.pieceSize = pieceSizeStart
protected

◆ runDirection

int iTextSharp.text.pdf.BidiLine.runDirection
protected

◆ shortStore

bool iTextSharp.text.pdf.BidiLine.shortStore
protected

◆ storedCurrentChar

int iTextSharp.text.pdf.BidiLine.storedCurrentChar = 0
protected

◆ storedDetailChunks

PdfChunk [] iTextSharp.text.pdf.BidiLine.storedDetailChunks = new PdfChunk[0]
protected

◆ storedIndexChars

int [] iTextSharp.text.pdf.BidiLine.storedIndexChars = new int[0]
protected

◆ storedIndexChunk

int iTextSharp.text.pdf.BidiLine.storedIndexChunk = 0
protected

◆ storedIndexChunkChar

int iTextSharp.text.pdf.BidiLine.storedIndexChunkChar = 0
protected

◆ storedOrderLevels

byte [] iTextSharp.text.pdf.BidiLine.storedOrderLevels = new byte[0]
protected

◆ storedRunDirection

int iTextSharp.text.pdf.BidiLine.storedRunDirection
protected

◆ storedText

char [] iTextSharp.text.pdf.BidiLine.storedText = new char[0]
protected

◆ storedTotalTextLength

int iTextSharp.text.pdf.BidiLine.storedTotalTextLength = 0
protected

◆ text

char [] iTextSharp.text.pdf.BidiLine.text = new char[pieceSizeStart]
protected

◆ totalTextLength

int iTextSharp.text.pdf.BidiLine.totalTextLength = 0
protected

The documentation for this class was generated from the following file: