|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lowagie.text.pdf.PdfLine
PdfLine defines an array with PdfChunk-objects
that fit into 1 line.
| Field Summary | |
protected int |
alignment
The alignment of the line. |
protected float |
height
The heigth of the line. |
protected boolean |
isRTL
|
protected float |
left
The left indentation of the line. |
protected ArrayList |
line
The arraylist containing the chunks. |
protected PdfChunk |
listSymbol
The listsymbol (if necessary). |
protected boolean |
newlineSplit
true if the chunk splitting was caused by a newline. |
protected float |
originalWidth
The original width. |
protected float |
symbolIndent
The listsymbol (if necessary). |
protected float |
width
The width of the line. |
| Constructor Summary | |
(package private) |
PdfLine(float left,
float remainingWidth,
int alignment,
boolean newlineSplit,
ArrayList line,
boolean isRTL)
|
(package private) |
PdfLine(float left,
float right,
int alignment,
float height)
Constructs a new PdfLine-object. |
| Method Summary | |
(package private) PdfChunk |
add(PdfChunk chunk)
Adds a PdfChunk to the PdfLine. |
PdfChunk |
getChunk(int idx)
Gets a PdfChunk by index. |
float |
getDescender()
|
int |
getLastStrokeChunk()
Gets the index of the last PdfChunk with metric attributes |
(package private) float |
getMaxSize()
Gets the maximum size of all the fonts used in this line including images (if there are images in the line and if the leading has to be changed). |
(package private) float |
getMaxSizeSimple()
Gets the maximum size of all the fonts used in this line including images. |
float |
getOriginalWidth()
Gets the original width of the line. |
float |
getWidthCorrected(float charSpacing,
float wordSpacing)
|
boolean |
hasToBeJustified()
Checks if this line has to be justified. |
(package private) float |
height()
Returns the height of the line. |
(package private) float |
indentLeft()
Returns the left indentation of the line taking the alignment of the line into account. |
boolean |
isNewlineSplit()
Checks if a newline caused the line split. |
(package private) boolean |
isRTL()
|
Iterator |
iterator()
Returns an iterator of PdfChunks. |
float |
listIndent()
Return the indentation needed to show the listsymbol. |
PdfChunk |
listSymbol()
Returns the listsymbol of this line. |
(package private) int |
numberOfSpaces()
Returns the number of space-characters in this line. |
void |
resetAlignment()
Resets the alignment of this line. |
void |
setListItem(ListItem listItem)
Sets the listsymbol of this line. |
int |
size()
Returns the number of chunks in the line. |
String |
toString()
Get the string representation of what is in this line. |
(package private) float |
widthLeft()
Returns the width that is left, after a maximum of characters is added to the line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ArrayList line
protected float left
protected float width
protected int alignment
protected float height
protected PdfChunk listSymbol
protected float symbolIndent
protected boolean newlineSplit
true if the chunk splitting was caused by a newline.
protected float originalWidth
protected boolean isRTL
| Constructor Detail |
PdfLine(float left,
float right,
int alignment,
float height)
PdfLine-object.
left - the limit of the line at the leftright - the limit of the line at the rightalignment - the alignment of the lineheight - the height of the line
PdfLine(float left,
float remainingWidth,
int alignment,
boolean newlineSplit,
ArrayList line,
boolean isRTL)
| Method Detail |
PdfChunk add(PdfChunk chunk)
PdfChunk to the PdfLine.
chunk - the PdfChunk to add
null if the chunk could be added completely; if not
a PdfChunk containing the part of the chunk that could
not be added is returnedpublic int size()
public Iterator iterator()
PdfChunks.
Iteratorfloat height()
float indentLeft()
public boolean hasToBeJustified()
true if the alignment equals ALIGN_JUSTIFIED and there is some width left.public void resetAlignment()
The alignment of the last line of for instance a Paragraph
that has to be justified, has to be reset to ALIGN_LEFT.
float widthLeft()
int numberOfSpaces()
public void setListItem(ListItem listItem)
This is only necessary for the first line of a ListItem.
listItem - the list symbolpublic PdfChunk listSymbol()
PdfChunk if the line has a listsymbol; null otherwisepublic float listIndent()
public String toString()
Stringpublic boolean isNewlineSplit()
true if a newline caused the line splitpublic int getLastStrokeChunk()
PdfChunk with metric attributes
PdfChunk with metric attributespublic PdfChunk getChunk(int idx)
PdfChunk by index.
idx - the index
PdfChunk or null if beyond the arraypublic float getOriginalWidth()
float getMaxSize()
float getMaxSizeSimple()
boolean isRTL()
public float getWidthCorrected(float charSpacing,
float wordSpacing)
public float getDescender()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||