| java.lang.Object org.pdfbox.util.TextPosition
TextPosition | public class TextPosition (Code) | | This represents a character and a position on the screen of those characters.
author: Ben Litchfield version: $Revision: 1.11 $ |
Constructor Summary | |
public | 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 | |
public String | getCharacter() This will the character that will be displayed on the screen. | public PDFont | getFont() This will get the font for the text being drawn. | public float | getFontSize() This will get the font size that this object is
suppose to be drawn at. | public float | getHeight() This will get the maximum height of all characters in this string. | public float | getWidth() This will get the width of this character. | public float | getWidthOfSpace() This will get the width of a space character. | public float | getWordSpacing() This will get the current word spacing. | public float | getX() This will get the x position of the character. | public float | getXScale() | public float | getY() This will get the y position of the character. | public float | getYScale() | public void | setXScale(float scale) | public void | setYScale(float scale) |
TextPosition | public TextPosition(float xPos, float yPos, float xScl, float yScl, float widthValue, float heightValue, float spaceWidth, String string, PDFont currentFont, float fontSizeValue, float ws)(Code) | | Constructor.
Parameters: xPos - The x coordinate of the character. Parameters: yPos - The y coordinate of the character. Parameters: xScl - The x scaling of the character. Parameters: yScl - The y scaling of the character. Parameters: widthValue - The width of the character. Parameters: heightValue - The height of the character. Parameters: spaceWidth - The width of the space character. Parameters: string - The character to be displayed. Parameters: currentFont - The current for for this text position. Parameters: fontSizeValue - The new font size. Parameters: ws - The word spacing parameter |
getCharacter | public String getCharacter()(Code) | | This will the character that will be displayed on the screen.
The character on the screen. |
getFont | public PDFont getFont()(Code) | | This will get the font for the text being drawn.
The font size. |
getFontSize | public float getFontSize()(Code) | | This will get the font size that this object is
suppose to be drawn at.
The font size. |
getHeight | public float getHeight()(Code) | | This will get the maximum height of all characters in this string.
The maximum height of all characters in this string. |
getWidth | public float getWidth()(Code) | | This will get the width of this character.
The width of this character. |
getWidthOfSpace | public float getWidthOfSpace()(Code) | | This will get the width of a space character. This is useful for some
algorithms such as the text stripper, that need to know the width of a
space character.
The width of a space character. |
getWordSpacing | public float getWordSpacing()(Code) | | This will get the current word spacing.
The current word spacing. |
getX | public float getX()(Code) | | This will get the x position of the character.
The x coordinate of the character. |
getXScale | public float getXScale()(Code) | | Returns the xScale. |
getY | public float getY()(Code) | | This will get the y position of the character.
The y coordinate of the character. |
getYScale | public float getYScale()(Code) | | Returns the yScale. |
setXScale | public void setXScale(float scale)(Code) | | Parameters: scale - The xScale to set. |
setYScale | public void setYScale(float scale)(Code) | | Parameters: scale - The yScale to set. |
|
|