org.jfree.report.layout
Interface LayoutSupport

All Known Subinterfaces:
OutputTarget
All Known Implementing Classes:
AbstractOutputTarget, DefaultLayoutSupport

public interface LayoutSupport

The LayoutSupport contains all methods required to estaminate sizes for the content-creation.

Author:
Thomas Morgner
See Also:
Content

Method Summary
 SizeCalculator createTextSizeCalculator(FontDefinition font)
          Creates a size calculator for the current state of the output target.
 ContentFactory getContentFactory()
          Returns the assigned content factory for the target.
 float getHorizontalAlignmentBorder()
          Returns the element alignment.
 float getVerticalAlignmentBorder()
          Returns the element alignment.
 

Method Detail

createTextSizeCalculator

public SizeCalculator createTextSizeCalculator(FontDefinition font)
                                        throws SizeCalculatorException
Creates a size calculator for the current state of the output target. The calculator is used to calculate the string width and line height and later maybe more...

Parameters:
font - the font.
Returns:
the size calculator.
Throws:
SizeCalculatorException - if there is a problem with the output target.

getVerticalAlignmentBorder

public float getVerticalAlignmentBorder()
Returns the element alignment. Elements will be layouted aligned to this border, so that mod(X, horizontalAlignment) == 0 and mod(Y, verticalAlignment) == 0. Returning 0 will disable the alignment.

Returns:
the vertical alignment grid boundry

getHorizontalAlignmentBorder

public float getHorizontalAlignmentBorder()
Returns the element alignment. Elements will be layouted aligned to this border, so that mod(X, horizontalAlignment) == 0 and mod(Y, verticalAlignment) == 0. Returning 0 will disable the alignment.

Returns:
the vertical alignment grid boundry

getContentFactory

public ContentFactory getContentFactory()
Returns the assigned content factory for the target.

Returns:
the content factory.