|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.targets.pageable.output.AbstractOutputTarget
com.jrefinery.report.targets.pageable.output.DummyOutputTarget
The dummy output target wraps an output target for the layouting process, so that no real output is done.
This implementation forwards all requests belonging to the LayoutSupport functionality to the wrapped OutputTarget. All other method calls are ignored.
LayoutSupport
Field Summary |
Fields inherited from interface com.jrefinery.report.targets.pageable.OutputTarget |
AUTHOR, TITLE |
Constructor Summary | |
DummyOutputTarget(OutputTarget backend)
Creates a new output target based on the given backend. |
Method Summary | |
void |
beginPage(PhysicalPage page)
This method does nothing. |
void |
close()
Closes the target. |
void |
configure(ReportConfiguration config)
This method does nothing. |
OutputTarget |
createDummyWriter()
Creates an output target that mimics a real output target, but produces no output. |
SizeCalculator |
createTextSizeCalculator(FontDefinition font)
Creates a size calculator for the current state of the output target. |
void |
drawDrawable(DrawableContainer drawable)
Draws a drawable relative to the current position. |
void |
drawImage(ImageReference image)
This method does nothing. |
void |
drawShape(java.awt.Shape shape)
This method does nothing. |
void |
drawString(java.lang.String text)
This method does nothing. |
void |
endPage()
This method does nothing. |
void |
fillShape(java.awt.Shape shape)
This method does nothing. |
ContentFactory |
getContentFactory()
Returns the assigned content factory for the target. |
FontDefinition |
getFont()
Returns the current font. |
float |
getHorizontalAlignmentBorder()
Returns the element alignment. |
java.awt.Paint |
getPaint()
Returns the current paint. |
java.awt.Stroke |
getStroke()
Returns the current stroke. |
float |
getVerticalAlignmentBorder()
Returns the element alignment. |
boolean |
isOpen()
Returns true if the target is open, and false otherwise. |
void |
open()
Opens the target. |
void |
restoreState()
Restores the state from the beginning of the page. |
void |
setFont(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, getLogicalPage, getOperationBounds, getProperty, getProperty, getPropertyNames, setOperationBounds, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DummyOutputTarget(OutputTarget backend)
backend
- the original outputtarget, that should be used in this proxy.Method Detail |
public void open() throws OutputTargetException
OutputTargetException
- if there is some problem opening the target.public boolean isOpen()
public void close()
public void beginPage(PhysicalPage page)
page
- the physical page.public void endPage() throws OutputTargetException
OutputTargetException
- if there is some problem with the target.public void restoreState() throws OutputTargetException
OutputTargetException
- if there is some problem with the target.public FontDefinition getFont()
public void setFont(FontDefinition font) throws OutputTargetException
font
- the font.
OutputTargetException
- if there is a problem setting the font.public java.awt.Stroke getStroke()
public void setStroke(java.awt.Stroke stroke) throws OutputTargetException
The stroke is used to draw the outlines of shapes.
stroke
- the stroke.
OutputTargetException
- if there is a problem setting the stroke.public java.awt.Paint getPaint()
public void setPaint(java.awt.Paint paint) throws OutputTargetException
paint
- The paint.
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 drawImage(ImageReference image) throws OutputTargetException
image
- The image to draw (as ImageReference for possible embedding of raw data).
OutputTargetException
- if there is a problem setting the paint.public OutputTarget createDummyWriter()
public void configure(ReportConfiguration config)
config
- the configuration.public SizeCalculator createTextSizeCalculator(FontDefinition font) throws SizeCalculatorException
font
- the font.
SizeCalculatorException
- if there is a problem with the output target.public float getHorizontalAlignmentBorder()
mod(X, horizontalAlignment) == 0
and
mod(Y, verticalAlignment) == 0
getHorizontalAlignmentBorder
in interface LayoutSupport
getHorizontalAlignmentBorder
in class AbstractOutputTarget
public float getVerticalAlignmentBorder()
mod(X, horizontalAlignment) == 0
and
mod(Y, verticalAlignment) == 0
getVerticalAlignmentBorder
in interface LayoutSupport
getVerticalAlignmentBorder
in class AbstractOutputTarget
public ContentFactory getContentFactory()
getContentFactory
in interface LayoutSupport
getContentFactory
in class AbstractOutputTarget
public void drawDrawable(DrawableContainer drawable)
drawable
- the drawable to draw.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |