java.lang.Object
com.lowagie.text.pdf.PdfLine
Deprecated.
PdfLine defines an array with PdfChunk-objects
that fit into 1 line.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intDeprecated.The alignment of the line.protected floatDeprecated.The height of the line.protected booleanDeprecated.protected floatDeprecated.The left indentation of the line.Deprecated.The arraylist containing the chunks.protected ChunkDeprecated.The listsymbol (if necessary).protected booleanDeprecated.trueif the chunk splitting was caused by a newline.protected floatDeprecated.The original width.protected floatDeprecated.The listsymbol (if necessary).protected floatDeprecated.The width of the line. -
Method Summary
Modifier and TypeMethodDescriptionfloatDeprecated.Gets the maximum size of the ascender for all the fonts used in this line.getChunk(int idx) Deprecated.Gets aPdfChunkby index.floatDeprecated.Gets the biggest descender for all the fonts used in this line.intDeprecated.Gets the index of the lastPdfChunkwith metric attributesintDeprecated.Returns the length of a line in UTF32 charactersfloatDeprecated.Gets the original width of the line.floatgetWidthCorrected(float charSpacing, float wordSpacing) Deprecated.Gets a width corrected with a charSpacing and wordSpacing.booleanDeprecated.Checks if this line has to be justified.booleanDeprecated.Checks if a newline caused the line split.iterator()Deprecated.Returns an iterator ofPdfChunks.floatDeprecated.Return the indentation needed to show the listsymbol.Deprecated.Returns the listsymbol of this line.voidDeprecated.Resets the alignment of this line.voidsetListItem(ListItem listItem) Deprecated.Sets the listsymbol of this line.intsize()Deprecated.Returns the number of chunks in the line.toString()Deprecated.Get the string representation of what is in this line.
-
Field Details
-
line
Deprecated.The arraylist containing the chunks. -
left
protected float leftDeprecated.The left indentation of the line. -
width
protected float widthDeprecated.The width of the line. -
alignment
protected int alignmentDeprecated.The alignment of the line. -
height
protected float heightDeprecated.The height of the line. -
listSymbol
Deprecated.The listsymbol (if necessary). -
symbolIndent
protected float symbolIndentDeprecated.The listsymbol (if necessary). -
newlineSplit
protected boolean newlineSplitDeprecated.trueif the chunk splitting was caused by a newline. -
originalWidth
protected float originalWidthDeprecated.The original width. -
isRTL
protected boolean isRTLDeprecated.
-
-
Method Details
-
size
public int size()Deprecated.Returns the number of chunks in the line.- Returns:
- a value
-
iterator
Deprecated.Returns an iterator ofPdfChunks.- Returns:
- an
Iterator
-
hasToBeJustified
public boolean hasToBeJustified()Deprecated.Checks if this line has to be justified.- Returns:
trueif the alignment equals ALIGN_JUSTIFIED and there is some width left.
-
resetAlignment
public void resetAlignment()Deprecated.Resets the alignment of this line.The alignment of the last line of for instance a
Paragraphthat has to be justified, has to be reset to ALIGN_LEFT. -
setListItem
Deprecated.Sets the listsymbol of this line.This is only necessary for the first line of a
ListItem.- Parameters:
listItem- the list symbol
-
listSymbol
Deprecated.Returns the listsymbol of this line.- Returns:
- a
PdfChunkif the line has a listsymbol;nullotherwise
-
listIndent
public float listIndent()Deprecated.Return the indentation needed to show the listsymbol.- Returns:
- a value
-
toString
Deprecated.Get the string representation of what is in this line. -
GetLineLengthUtf32
public int GetLineLengthUtf32()Deprecated.Returns the length of a line in UTF32 characters- Returns:
- the length in UTF32 characters
- Since:
- 2.1.2
-
isNewlineSplit
public boolean isNewlineSplit()Deprecated.Checks if a newline caused the line split.- Returns:
trueif a newline caused the line split
-
getLastStrokeChunk
public int getLastStrokeChunk()Deprecated.Gets the index of the lastPdfChunkwith metric attributes- Returns:
- the last
PdfChunkwith metric attributes
-
getChunk
Deprecated.Gets aPdfChunkby index.- Parameters:
idx- the index- Returns:
- the
PdfChunkor null if beyond the array
-
getOriginalWidth
public float getOriginalWidth()Deprecated.Gets the original width of the line.- Returns:
- the original width of the line
-
getWidthCorrected
public float getWidthCorrected(float charSpacing, float wordSpacing) Deprecated.Gets a width corrected with a charSpacing and wordSpacing.- Parameters:
charSpacing- the spacing between characterswordSpacing- the spacing between words- Returns:
- a corrected width
-
getAscender
public float getAscender()Deprecated.Gets the maximum size of the ascender for all the fonts used in this line.- Returns:
- maximum size of all the ascenders used in this line
-
getDescender
public float getDescender()Deprecated.Gets the biggest descender for all the fonts used in this line. Note that this is a negative number.- Returns:
- maximum size of all the ascenders used in this line
-