net.sf.jasperreports.engine
Interface JRAlignment

All Known Subinterfaces:
JRImage, JRPrintText, JRStaticText, JRTextElement, JRTextField
All Known Implementing Classes:
JRBaseImage, JRBasePrintText, JRBaseStaticText, JRBaseTextElement, JRBaseTextField, JRDesignImage, JRDesignStaticText, JRDesignTextElement, JRDesignTextField, JRFillImage, JRFillStaticText, JRFillTextElement, JRFillTextField, JRTemplatePrintText

public interface JRAlignment

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,v 1.10 2005/07/15 13:06:54 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

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.
 byte getVerticalAlignment()
          Gets the text vertical alignment.
 void setHorizontalAlignment(byte horizontalAlignment)
          Sets the text horizontal alignment.
 void setVerticalAlignment(byte verticalAlignment)
          Gets the text vertical alignment.
 

Field Detail

HORIZONTAL_ALIGN_LEFT

public static final byte HORIZONTAL_ALIGN_LEFT
See Also:
Constant Field Values

HORIZONTAL_ALIGN_CENTER

public static final byte HORIZONTAL_ALIGN_CENTER
See Also:
Constant Field Values

HORIZONTAL_ALIGN_RIGHT

public static final byte HORIZONTAL_ALIGN_RIGHT
See Also:
Constant Field Values

HORIZONTAL_ALIGN_JUSTIFIED

public static final byte HORIZONTAL_ALIGN_JUSTIFIED
See Also:
Constant Field Values

VERTICAL_ALIGN_TOP

public static final byte VERTICAL_ALIGN_TOP
See Also:
Constant Field Values

VERTICAL_ALIGN_MIDDLE

public static final byte VERTICAL_ALIGN_MIDDLE
See Also:
Constant Field Values

VERTICAL_ALIGN_BOTTOM

public static final byte VERTICAL_ALIGN_BOTTOM
See Also:
Constant Field Values

VERTICAL_ALIGN_JUSTIFIED

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

getHorizontalAlignment

public byte getHorizontalAlignment()
Gets the text horizontal alignment.

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

setHorizontalAlignment

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

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

getVerticalAlignment

public byte getVerticalAlignment()
Gets the text vertical alignment.

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

setVerticalAlignment

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

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


© 2001-2005 JasperSoft Corporation www.jaspersoft.com