org.pentaho.reporting.engine.classic.core.layout
Interface LayoutSupport

All Known Implementing Classes:
DefaultLayoutSupport, LegacyLayoutSupport

Deprecated. This one should be removed. It is no longer needed by the system and may lead to invalid results. Functions should not make assumptions about the size of the report elements.

public interface LayoutSupport

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

Author:
Thomas Morgner

Method Summary
 SizeCalculator createTextSizeCalculator(FontDefinition font)
          Deprecated. Creates a size calculator for the current state of the output target.
 float getHorizontalAlignmentBorder()
          Deprecated. Returns the element alignment.
 long getInternalHorizontalAlignmentBorder()
          Deprecated. Returns the element alignment.
 long getInternalVerticalAlignmentBorder()
          Deprecated. Returns the element alignment.
 float getVerticalAlignmentBorder()
          Deprecated. Returns the element alignment.
 boolean isImageResolutionMappingActive()
          Deprecated. Checks, if the layouter uses the System's native resolution to compute the size of images.
 

Method Detail

createTextSizeCalculator

SizeCalculator createTextSizeCalculator(FontDefinition font)
                                        throws SizeCalculatorException
Deprecated. 
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

float getVerticalAlignmentBorder()
Deprecated. 
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

float getHorizontalAlignmentBorder()
Deprecated. 
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

getInternalVerticalAlignmentBorder

long getInternalVerticalAlignmentBorder()
Deprecated. 
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.

Q&D Hack: Save some cycles of processor time by computing that thing only once.

Returns:
the vertical alignment grid boundry

getInternalHorizontalAlignmentBorder

long getInternalHorizontalAlignmentBorder()
Deprecated. 
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.

Q&D Hack: Save some cycles of processor time by computing that thing only once.

Returns:
the vertical alignment grid boundry

isImageResolutionMappingActive

boolean isImageResolutionMappingActive()
Deprecated. 
Checks, if the layouter uses the System's native resolution to compute the size of images. This fixes problems with the HTML output, which assumes that images are rendered with a resolution of 96dpi.

Returns:
true, if the image-resolution mapping is active, false otherwise.