|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.report.targets.pageable.AlignedLogicalPageWrapper
The AlignedLogicalPageWrapper corrects all values of the wrapped LogicalPage so that the bounds are aligned for a given LayoutSupport.
Constructor Summary | |
AlignedLogicalPageWrapper(LogicalPage logicalPage,
LayoutSupport support)
Creates a AlignedLogicalPageWrapper, which wraps the logicalpage to obey to the alignment defined by the LayoutSupport. |
Method Summary | |
void |
addBand(java.awt.geom.Rectangle2D bounds,
Band band)
Adds a band to the logical page. |
void |
close()
Closes the page. |
float |
getHeight()
Returns the page height, aligned by the vertical alignment of the layout support. |
OutputTarget |
getOutputTarget()
Gets the output target. |
java.awt.print.PageFormat |
getPhysicalPageFormat()
Returns the aligned physical page format. |
float |
getWidth()
Returns the page width, aligned by the horizontal alignment of the layout support. |
boolean |
isEmpty()
Returns true if the page is empty, and false otherwise. |
boolean |
isOpen()
Returns true if the page is open, and false otherwise. |
LogicalPage |
newInstance()
Creates a new instance of a logical page. |
void |
open()
Opens the page. |
void |
replaySpool(Spool operations)
Replays a spool.A spool is a collection of previously prepared content which should be printed later. |
void |
setOutputTarget(OutputTarget target)
Sets the output target for the page. |
Spool |
spoolBand(java.awt.geom.Rectangle2D bounds,
Band band)
Generate a spool. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AlignedLogicalPageWrapper(LogicalPage logicalPage, LayoutSupport support)
logicalPage
- the logical page that is alignedsupport
- the layout support which defines the alignment.
java.lang.NullPointerException
- if one of the parameters is null.Method Detail |
public float getWidth()
getWidth
in interface LogicalPage
public float getHeight()
getHeight
in interface LogicalPage
public boolean isOpen()
isOpen
in interface LogicalPage
public boolean isEmpty()
isEmpty
in interface LogicalPage
public void close()
close
in interface LogicalPage
public void open()
open
in interface LogicalPage
public void replaySpool(Spool operations)
replaySpool
in interface LogicalPage
operations
- the spool that should be replayed.public Spool spoolBand(java.awt.geom.Rectangle2D bounds, Band band) throws OutputTargetException
The spool can be saved, cloned and replayed at a later time.
spoolBand
in interface LogicalPage
bounds
- the bounds.band
- the band.
OutputTargetException
- if there is a problem with the output target.public void addBand(java.awt.geom.Rectangle2D bounds, Band band) throws OutputTargetException
addBand
in interface LogicalPage
bounds
- the bounds.band
- the band.
OutputTargetException
- if there is a problem with the output target.public java.awt.print.PageFormat getPhysicalPageFormat()
getPhysicalPageFormat
in interface LogicalPage
public OutputTarget getOutputTarget()
getOutputTarget
in interface LogicalPage
public void setOutputTarget(OutputTarget target)
setOutputTarget
in interface LogicalPage
target
- the output target.public LogicalPage newInstance()
newInstance
in interface LogicalPage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |