|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.pdfbox.util.TextPosition
This represents a character and a position on the screen of those characters.
| Constructor Summary | |
|---|---|
protected |
TextPosition()
|
|
TextPosition(float xPos,
float yPos,
float xScl,
float yScl,
float totalWidthValue,
float[] individualWidths,
float heightValue,
float spaceWidth,
String string,
PDFont currentFont,
float fontSizeValue,
float ws)
Constructor. |
| Method Summary | |
|---|---|
String |
getCharacter()
This will the character that will be displayed on the screen. |
PDFont |
getFont()
This will get the font for the text being drawn. |
float |
getFontSize()
This will get the font size that this object is suppose to be drawn at. |
float |
getHeight()
This will get the maximum height of all characters in this string. |
float[] |
getIndividualWidths()
Get the widths of each individual character. |
float |
getWidth()
This will get the width of this character. |
float |
getWidthOfSpace()
This will get the width of a space character. |
float |
getWordSpacing()
This will get the current word spacing. |
float |
getX()
This will get the x position of the character. |
float |
getXScale()
|
float |
getY()
This will get the y position of the character. |
float |
getYScale()
|
void |
setIndividualWidths(float[] individualWidths)
Set the individual widths of every character. |
void |
setXScale(float scale)
|
void |
setYScale(float scale)
|
String |
toString()
Show the string data for this text position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected TextPosition()
public TextPosition(float xPos,
float yPos,
float xScl,
float yScl,
float totalWidthValue,
float[] individualWidths,
float heightValue,
float spaceWidth,
String string,
PDFont currentFont,
float fontSizeValue,
float ws)
xPos - The x coordinate of the character.yPos - The y coordinate of the character.xScl - The x scaling of the character.yScl - The y scaling of the character.totalWidthValue - The width of all the characters.individualWidths - The width of each individual character.heightValue - The height of the character.spaceWidth - The width of the space character.string - The character to be displayed.currentFont - The current for for this text position.fontSizeValue - The new font size.ws - The word spacing parameter| Method Detail |
public String getCharacter()
public float getX()
public float getY()
public float getWidth()
public float getHeight()
public float getFontSize()
public PDFont getFont()
public float getWordSpacing()
public float getWidthOfSpace()
public float getXScale()
public void setXScale(float scale)
scale - The xScale to set.public float getYScale()
public void setYScale(float scale)
scale - The yScale to set.public float[] getIndividualWidths()
public void setIndividualWidths(float[] individualWidths)
individualWidths - The individual widths of characters.public String toString()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||