Package net.sf.jasperreports.engine
Interface JRTextAlignment
- All Superinterfaces:
JRStyleContainer
- All Known Subinterfaces:
JRPrintText,JRStaticText,JRTextElement,JRTextField
- All Known Implementing Classes:
JRBasePrintText,JRBaseStaticText,JRBaseTextElement,JRBaseTextField,JRDesignStaticText,JRDesignTextElement,JRDesignTextField,JRFillStaticText,JRFillTextElement,JRFillTextField,JRRecordedValuesPrintText,JRTemplatePrintText,JRTemplateText
An interface that defines constants useful for text alignment.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Method Summary
Modifier and TypeMethodDescriptionGets the text horizontal alignment.Gets the text vertical alignment.voidsetHorizontalTextAlign(HorizontalTextAlignEnum horizontalAlignment) Sets the text horizontal alignment.voidsetVerticalTextAlign(VerticalTextAlignEnum verticalAlignment) Gets the text vertical alignment.Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Method Details
-
getHorizontalTextAlign
HorizontalTextAlignEnum getHorizontalTextAlign()Gets the text horizontal alignment.- Returns:
- a value representing one of the horizontal text alignment constants in
HorizontalTextAlignEnum
-
getOwnHorizontalTextAlign
HorizontalTextAlignEnum getOwnHorizontalTextAlign() -
setHorizontalTextAlign
Sets the text horizontal alignment.- Parameters:
horizontalAlignment- a value representing one of the horizontal text alignment constants inHorizontalTextAlignEnum
-
getVerticalTextAlign
VerticalTextAlignEnum getVerticalTextAlign()Gets the text vertical alignment.- Returns:
- a value representing one of the vertical text alignment constants in
VerticalTextAlignEnum
-
getOwnVerticalTextAlign
VerticalTextAlignEnum getOwnVerticalTextAlign() -
setVerticalTextAlign
Gets the text vertical alignment.- Parameters:
verticalAlignment- a value representing one of the vertical text alignment constants inVerticalTextAlignEnum
-