|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.report.targets.pageable.output.AbstractOutputTarget | +--com.jrefinery.report.ext.junit.base.functionality.DebugOutputTarget
Field Summary |
Fields inherited from interface com.jrefinery.report.targets.pageable.OutputTarget |
AUTHOR, TITLE |
Constructor Summary | |
DebugOutputTarget(java.awt.print.PageFormat format)
Creates a new output target. |
Method Summary | |
void |
beginPage(com.jrefinery.report.targets.pageable.physicals.PhysicalPage page)
Signals that a page is being started. |
void |
close()
Closes the target. |
void |
configure(com.jrefinery.report.util.ReportConfiguration config)
Configures the output target. |
com.jrefinery.report.targets.pageable.OutputTarget |
createDummyWriter()
Creates an output target that mimics a real output target, but produces no output. |
com.jrefinery.report.targets.base.layout.SizeCalculator |
createTextSizeCalculator(com.jrefinery.report.targets.FontDefinition font)
Creates a size calculator for the current state of the output target. |
void |
drawDrawable(com.jrefinery.report.DrawableContainer drawable)
Draws a drawable relative to the current position. |
void |
drawImage(com.jrefinery.report.ImageReference image)
Draws a image relative to the specified coordinates. |
void |
drawShape(java.awt.Shape shape)
Draws a shape relative to the current position. |
void |
drawString(java.lang.String text)
Draws a string at the current cursor position. |
void |
endPage()
Signals that the current page is ended. |
void |
fillShape(java.awt.Shape shape)
Fills the shape relative to the current position. |
com.jrefinery.report.targets.FontDefinition |
getFont()
Returns the current font. |
java.awt.Paint |
getPaint()
Returns the current paint. |
java.awt.Stroke |
getStroke()
Returns the current stroke. |
boolean |
isOpen()
Returns true if the target is open, and false otherwise. |
void |
open()
Opens the target. |
void |
setFont(com.jrefinery.report.targets.FontDefinition font)
Sets the font. |
void |
setPaint(java.awt.Paint paint)
Sets the paint. |
void |
setStroke(java.awt.Stroke stroke)
Defines the current stroke for the target. |
Methods inherited from class com.jrefinery.report.targets.pageable.output.AbstractOutputTarget |
createContentFactory, getContentFactory, getHorizontalAlignmentBorder, getLogicalPage, getOperationBounds, getProperty, getProperty, getPropertyNames, getVerticalAlignmentBorder, setOperationBounds, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DebugOutputTarget(java.awt.print.PageFormat format)
format
- the page format.Method Detail |
public void open() throws com.jrefinery.report.targets.pageable.OutputTargetException
com.jrefinery.report.targets.pageable.OutputTargetException
- if there is some problem opening the target.public boolean isOpen()
public void close()
public void beginPage(com.jrefinery.report.targets.pageable.physicals.PhysicalPage page)
page
- the physical page.public void endPage() throws com.jrefinery.report.targets.pageable.OutputTargetException
com.jrefinery.report.targets.pageable.OutputTargetException
- if there is some problem with the target.public com.jrefinery.report.targets.FontDefinition getFont()
public void setFont(com.jrefinery.report.targets.FontDefinition font) throws com.jrefinery.report.targets.pageable.OutputTargetException
font
- the font.
com.jrefinery.report.targets.pageable.OutputTargetException
- if there is a problem setting the font.public java.awt.Stroke getStroke()
public void setStroke(java.awt.Stroke stroke) throws com.jrefinery.report.targets.pageable.OutputTargetException
The stroke is used to draw the outlines of shapes.
stroke
- the stroke.
com.jrefinery.report.targets.pageable.OutputTargetException
- if there is a problem setting the stroke.public java.awt.Paint getPaint()
public void setPaint(java.awt.Paint paint) throws com.jrefinery.report.targets.pageable.OutputTargetException
paint
- The paint.
com.jrefinery.report.targets.pageable.OutputTargetException
- if there is a problem setting the paint.public void drawString(java.lang.String text)
text
- the text.public void drawShape(java.awt.Shape shape)
shape
- the shape to draw.public void fillShape(java.awt.Shape shape)
shape
- the shape to draw.public void drawDrawable(com.jrefinery.report.DrawableContainer drawable)
drawable
- the drawable to draw.public void drawImage(com.jrefinery.report.ImageReference image) throws com.jrefinery.report.targets.pageable.OutputTargetException
image
- The image to draw (as ImageReference for possible embedding of raw data).
com.jrefinery.report.targets.pageable.OutputTargetException
- if there is a problem setting the paint.public com.jrefinery.report.targets.pageable.OutputTarget createDummyWriter()
public void configure(com.jrefinery.report.util.ReportConfiguration config)
config
- the configuration.public com.jrefinery.report.targets.base.layout.SizeCalculator createTextSizeCalculator(com.jrefinery.report.targets.FontDefinition font) throws com.jrefinery.report.targets.base.layout.SizeCalculatorException
font
- the font.
com.jrefinery.report.targets.base.layout.SizeCalculatorException
- if there is a problem with the output target.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |