Class TextPosition
java.lang.Object
com.independentsoft.office.odf.styles.TextPosition
Represents the text positions.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the TextPosition class.TextPosition(String position)Initializes a new instance of the TextPosition class.TextPosition(String verticalPosition, int fontHeight)Initializes a new instance of the TextPosition class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.intGets the font height of the text.Gets the vertical positions of the text.voidsetFontHeight(int fontHeight)Sets the font height of the text.voidsetVerticalPosition(String verticalPosition)Sets the vertical positions of the text.toString()Converts the value of the current TextPosition object to its equivalent string representation.
-
Constructor Details
-
TextPosition
public TextPosition()Initializes a new instance of the TextPosition class. -
TextPosition
Initializes a new instance of the TextPosition class.- Parameters:
position- the position
-
TextPosition
Initializes a new instance of the TextPosition class.- Parameters:
verticalPosition- the vertical positionfontHeight- the font height
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current TextPosition object to its equivalent string representation. -
getVerticalPosition
Gets the vertical positions of the text.- Returns:
- the vertical position
-
setVerticalPosition
Sets the vertical positions of the text.- Parameters:
verticalPosition- the new vertical position
-
getFontHeight
public int getFontHeight()Gets the font height of the text.- Returns:
- the font height
-
setFontHeight
public void setFontHeight(int fontHeight)Sets the font height of the text.- Parameters:
fontHeight- the new font height
-