|
||||||||||
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
The abstract OutputTarget implements base code for all OutputTargets. It contains functions to manage the cursor, the pageformat and the line breaking of strings.
Field Summary |
Fields inherited from interface com.jrefinery.report.targets.pageable.OutputTarget |
AUTHOR, TITLE |
Constructor Summary | |
protected |
AbstractOutputTarget(LogicalPage logicalPage)
Creates a new output target. |
protected |
AbstractOutputTarget(java.awt.print.PageFormat format)
Creates a new output target. |
protected |
AbstractOutputTarget(java.awt.print.PageFormat logical,
java.awt.print.PageFormat physical)
Creates a new output target with the specified logical and physical page sizes. |
Method Summary | |
protected ContentFactory |
createContentFactory()
Creates a default content factory, which supports all known content types. |
ContentFactory |
getContentFactory()
Returns the assigned content factory for the target. |
float |
getHorizontalAlignmentBorder()
Returns the element alignment. |
LogicalPage |
getLogicalPage()
Returns the logical page. |
java.awt.geom.Rectangle2D |
getOperationBounds()
Returns the operation bounds. |
java.lang.Object |
getProperty(java.lang.String property)
Queries the property named with property . |
java.lang.Object |
getProperty(java.lang.String property,
java.lang.Object defaultValue)
Queries the property named with property . |
protected java.util.Iterator |
getPropertyNames()
Returns an enumeration of the property names. |
float |
getVerticalAlignmentBorder()
Returns the element alignment. |
void |
setOperationBounds(java.awt.geom.Rectangle2D bounds)
Sets the operation bounds. |
void |
setProperty(java.lang.String property,
java.lang.Object value)
Defines a property for this output target. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jrefinery.report.targets.pageable.OutputTarget |
beginPage, close, configure, createDummyWriter, drawDrawable, drawImage, drawShape, drawString, endPage, fillShape, getFont, getPaint, getStroke, isOpen, open, setFont, setPaint, setStroke |
Methods inherited from interface com.jrefinery.report.targets.base.layout.LayoutSupport |
createTextSizeCalculator |
Constructor Detail |
protected AbstractOutputTarget(java.awt.print.PageFormat format)
format
- the page format.protected AbstractOutputTarget(java.awt.print.PageFormat logical, java.awt.print.PageFormat physical)
logical
- the page format used by this target for layouting.physical
- the page format used by this target for printing.protected AbstractOutputTarget(LogicalPage logicalPage)
logicalPage
- the logical page.Method Detail |
public void setProperty(java.lang.String property, java.lang.Object value)
setProperty
in interface OutputTarget
property
- the name of the property to set (null
not permitted).value
- the value of the property. If the value is null
, the property is
removed from the output target.public java.lang.Object getProperty(java.lang.String property)
property
. If the property is not found,
null
is returned.
getProperty
in interface OutputTarget
property
- the name of the property to be queried
java.lang.NullPointerException
- if property
is nullpublic java.lang.Object getProperty(java.lang.String property, java.lang.Object defaultValue)
property
. If the property is not found, the
default value is returned.
getProperty
in interface OutputTarget
property
- the name of the property to be querieddefaultValue
- the defaultvalue returned if there is no such property
java.lang.NullPointerException
- if property
is nullprotected java.util.Iterator getPropertyNames()
public LogicalPage getLogicalPage()
getLogicalPage
in interface OutputTarget
public void setOperationBounds(java.awt.geom.Rectangle2D bounds)
setOperationBounds
in interface OutputTarget
bounds
- the bounds.public java.awt.geom.Rectangle2D getOperationBounds()
getOperationBounds
in interface OutputTarget
public float getHorizontalAlignmentBorder()
mod(X, horizontalAlignment) == 0
and
mod(Y, verticalAlignment) == 0
getHorizontalAlignmentBorder
in interface LayoutSupport
public float getVerticalAlignmentBorder()
mod(X, horizontalAlignment) == 0
and
mod(Y, verticalAlignment) == 0
getVerticalAlignmentBorder
in interface LayoutSupport
public ContentFactory getContentFactory()
getContentFactory
in interface LayoutSupport
protected ContentFactory createContentFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |