org.pentaho.reporting.engine.classic.core.layout
Class LegacyLayoutSupport

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.layout.LegacyLayoutSupport
All Implemented Interfaces:
LayoutSupport

Deprecated. Like the base class, this class cannot be used to create a valid precomputation of the report layout.

public class LegacyLayoutSupport
extends Object
implements LayoutSupport

Creation-Date: 08.04.2007, 15:49:03

Author:
Thomas Morgner

Constructor Summary
LegacyLayoutSupport(OutputProcessorMetaData outputProcessorMetaData)
          Deprecated.  
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyLayoutSupport

public LegacyLayoutSupport(OutputProcessorMetaData outputProcessorMetaData)
Deprecated. 
Method Detail

createTextSizeCalculator

public 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...

Specified by:
createTextSizeCalculator in interface LayoutSupport
Parameters:
font - the font.
Returns:
the size calculator.
Throws:
SizeCalculatorException - if there is a problem with the output target.

getVerticalAlignmentBorder

public 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.

Specified by:
getVerticalAlignmentBorder in interface LayoutSupport
Returns:
the vertical alignment grid boundry

getHorizontalAlignmentBorder

public 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.

Specified by:
getHorizontalAlignmentBorder in interface LayoutSupport
Returns:
the vertical alignment grid boundry

getInternalVerticalAlignmentBorder

public 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.

Specified by:
getInternalVerticalAlignmentBorder in interface LayoutSupport
Returns:
the vertical alignment grid boundry

getInternalHorizontalAlignmentBorder

public 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.

Specified by:
getInternalHorizontalAlignmentBorder in interface LayoutSupport
Returns:
the vertical alignment grid boundry

isImageResolutionMappingActive

public boolean isImageResolutionMappingActive()
Deprecated. 
Description copied from interface: LayoutSupport
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.

Specified by:
isImageResolutionMappingActive in interface LayoutSupport
Returns:
true, if the image-resolution mapping is active, false otherwise.