net.sf.jasperreports.engine
Interface JRAlignment

All Superinterfaces:
JRStyleContainer
All Known Subinterfaces:
JRImage, JRPrintImage, JRPrintText, JRStaticText, JRTextElement, JRTextField
All Known Implementing Classes:
JRBaseImage, JRBasePrintImage, JRBasePrintText, JRBaseStaticText, JRBaseTextElement, JRBaseTextField, JRDesignImage, JRDesignStaticText, JRDesignTextElement, JRDesignTextField, JRFillImage, JRFillStaticText, JRFillTextElement, JRFillTextField, JRRecordedValuesPrintImage, JRRecordedValuesPrintText, JRTemplateImage, JRTemplatePrintImage, JRTemplatePrintText, JRTemplateText

public interface JRAlignment
extends JRStyleContainer

An interface that defines constants useful for alignment. All report elements that can be aligned in some way implement this interface.

Version:
$Id: JRAlignment.java 3033 2009-08-27 11:46:22Z teodord $
Author:
Teodor Danciu ([email protected])

Field Summary
static byte HORIZONTAL_ALIGN_CENTER
           
static byte HORIZONTAL_ALIGN_JUSTIFIED
           
static byte HORIZONTAL_ALIGN_LEFT
           
static byte HORIZONTAL_ALIGN_RIGHT
           
static byte VERTICAL_ALIGN_BOTTOM
           
static byte VERTICAL_ALIGN_JUSTIFIED
           
static byte VERTICAL_ALIGN_MIDDLE
           
static byte VERTICAL_ALIGN_TOP
           
 
Method Summary
 byte getHorizontalAlignment()
          Gets the text horizontal alignment.
 java.lang.Byte getOwnHorizontalAlignment()
           
 java.lang.Byte getOwnVerticalAlignment()
           
 byte getVerticalAlignment()
          Gets the text vertical alignment.
 void setHorizontalAlignment(byte horizontalAlignment)
          Sets the text horizontal alignment.
 void setHorizontalAlignment(java.lang.Byte horizontalAlignment)
           
 void setVerticalAlignment(byte verticalAlignment)
          Gets the text vertical alignment.
 void setVerticalAlignment(java.lang.Byte verticalAlignment)
           
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
 

Field Detail

HORIZONTAL_ALIGN_LEFT

static final byte HORIZONTAL_ALIGN_LEFT
See Also:
Constant Field Values

HORIZONTAL_ALIGN_CENTER

static final byte HORIZONTAL_ALIGN_CENTER
See Also:
Constant Field Values

HORIZONTAL_ALIGN_RIGHT

static final byte HORIZONTAL_ALIGN_RIGHT
See Also:
Constant Field Values

HORIZONTAL_ALIGN_JUSTIFIED

static final byte HORIZONTAL_ALIGN_JUSTIFIED
See Also:
Constant Field Values

VERTICAL_ALIGN_TOP

static final byte VERTICAL_ALIGN_TOP
See Also:
Constant Field Values

VERTICAL_ALIGN_MIDDLE

static final byte VERTICAL_ALIGN_MIDDLE
See Also:
Constant Field Values

VERTICAL_ALIGN_BOTTOM

static final byte VERTICAL_ALIGN_BOTTOM
See Also:
Constant Field Values

VERTICAL_ALIGN_JUSTIFIED

static final byte VERTICAL_ALIGN_JUSTIFIED
See Also:
Constant Field Values
Method Detail

getHorizontalAlignment

byte getHorizontalAlignment()
Gets the text horizontal alignment.

Returns:
a value representing one of the horizontal alignment constants in JRAlignment

getOwnHorizontalAlignment

java.lang.Byte getOwnHorizontalAlignment()

setHorizontalAlignment

void setHorizontalAlignment(byte horizontalAlignment)
Sets the text horizontal alignment.

Parameters:
horizontalAlignment - a value representing one of the horizontal alignment constants in JRAlignment

setHorizontalAlignment

void setHorizontalAlignment(java.lang.Byte horizontalAlignment)

getVerticalAlignment

byte getVerticalAlignment()
Gets the text vertical alignment.

Returns:
a value representing one of the vertical alignment constants in JRAlignment

getOwnVerticalAlignment

java.lang.Byte getOwnVerticalAlignment()

setVerticalAlignment

void setVerticalAlignment(byte verticalAlignment)
Gets the text vertical alignment.

Parameters:
verticalAlignment - a value representing one of the vertical alignment constants in JRAlignment

setVerticalAlignment

void setVerticalAlignment(java.lang.Byte verticalAlignment)


Copyright © 2010. All Rights Reserved.