|
|||||||||||
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 | |
TextPosition(float xPos,
float yPos,
float xScl,
float yScl,
float widthValue,
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 |
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 |
setXScale(float scale)
|
void |
setYScale(float scale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextPosition(float xPos, float yPos, float xScl, float yScl, float widthValue, 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.widthValue
- The width of the 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 parameterMethod 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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |