org.jfree.report.modules.output.pageable.base
Class AlignedLogicalPage

java.lang.Object
  |
  +--org.jfree.report.modules.output.pageable.base.AlignedLogicalPage

public class AlignedLogicalPage
extends java.lang.Object
implements LogicalPage

The AlignedLogicalPage corrects all values of the page format so that the bounds are aligned for a given LayoutSupport.

Author:
Thomas Morgner

Constructor Summary
AlignedLogicalPage(LayoutSupport support, PageDefinition pageDefinition)
          Creates a AlignedLogicalPageWrapper, which wraps the logicalpage to obey to the alignment defined by the LayoutSupport.
 
Method Summary
 float getHeight()
          Returns the page height, aligned by the vertical alignment of the layout support.
 LayoutSupport getLayoutSupport()
          Gets the output target metrics.
 float getWidth()
          Returns the page width, aligned by the horizontal alignment of the layout support.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignedLogicalPage

public AlignedLogicalPage(LayoutSupport support,
                          PageDefinition pageDefinition)
Creates a AlignedLogicalPageWrapper, which wraps the logicalpage to obey to the alignment defined by the LayoutSupport.
Parameters:
support - the layout support which defines the alignment.
Throws:
java.lang.NullPointerException - if one of the parameters is null.
Method Detail

getWidth

public float getWidth()
Returns the page width, aligned by the horizontal alignment of the layout support.
Specified by:
getWidth in interface LogicalPage
Returns:
the page width.

getHeight

public float getHeight()
Returns the page height, aligned by the vertical alignment of the layout support.
Specified by:
getHeight in interface LogicalPage
Returns:
the page height.

getLayoutSupport

public LayoutSupport getLayoutSupport()
Gets the output target metrics.
Specified by:
getLayoutSupport in interface LogicalPage
Returns:
the output target metrics.