|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jfree.report.modules.output.pageable.base.output.AbstractOutputTarget
The abstract OutputTarget implements base code for all pageable OutputTargets. This implementation contains base functions to process the MetaPage objects to create the real output.
| Fields inherited from interface org.jfree.report.modules.output.pageable.base.OutputTarget |
AUTHOR,
TITLE |
| Constructor Summary | |
protected |
AbstractOutputTarget()
|
| Method Summary | |
protected abstract void |
beginPage(PageDefinition page,
int index)
|
void |
configure(org.jfree.util.Configuration config)
Configures the output target. |
protected ContentFactory |
createContentFactory()
Creates a default content factory, which supports all known content types. |
protected abstract void |
drawDrawable(MetaElement element,
DrawableContent d)
|
protected abstract void |
drawImage(ImageContent content)
|
protected abstract void |
drawShape(java.awt.Shape s)
|
protected abstract void |
endPage()
|
protected abstract void |
fillShape(java.awt.Shape s)
|
LayoutManagerCache |
getCache()
|
ContentFactory |
getContentFactory()
Returns the assigned content factory for the target. |
protected abstract FontDefinition |
getFont()
|
float |
getHorizontalAlignmentBorder()
Returns the element alignment. |
long |
getInternalHorizontalAlignmentBorder()
Returns the element alignment. |
protected StrictBounds |
getInternalOperationBounds()
|
protected StrictBounds |
getInternalPageBounds()
|
long |
getInternalVerticalAlignmentBorder()
Returns the element alignment. |
protected java.awt.geom.Rectangle2D |
getOperationBounds()
|
protected java.awt.geom.Rectangle2D |
getPageBounds()
|
protected abstract java.awt.Paint |
getPaint()
|
java.lang.String |
getProperty(java.lang.String property)
Queries the property named with property. |
java.lang.String |
getProperty(java.lang.String property,
java.lang.String defaultValue)
Queries the property named with property. |
protected java.util.Iterator |
getPropertyNames()
Returns an enumeration of the property names. |
protected ReportDefinition |
getReport()
|
protected abstract java.awt.Stroke |
getStroke()
|
float |
getVerticalAlignmentBorder()
Returns the element alignment. |
boolean |
isImageResolutionMappingActive()
|
protected abstract boolean |
isPaintSupported(java.awt.Paint p)
|
protected void |
printAnchorContent(MetaElement element,
Content content)
|
protected void |
printBand(MetaBand band,
StrictBounds bounds)
Prints all elements of the band, which are within the given bounds. |
protected void |
printContainerContent(MetaElement element,
Content content)
|
protected void |
printContent(MetaElement element,
Content content)
|
protected void |
printDrawableContent(MetaElement element,
Content content)
|
protected void |
printElement(MetaElement element,
StrictBounds bounds)
|
protected void |
printHRefForCurrentContent(java.lang.String href,
java.lang.String hrefWindow)
|
protected void |
printHRefTarget(MetaElement element,
java.lang.String target)
|
protected void |
printImageContent(MetaElement element,
Content content)
|
void |
printPage(MetaPage content,
PageDefinition page,
int index)
|
protected void |
printShapeContent(MetaElement element,
Content content)
|
protected abstract void |
printText(java.lang.String text)
|
protected void |
printTextContent(MetaElement element,
Content content)
|
protected void |
printTextLine(TextLine c,
java.lang.String hrefTarget,
java.lang.String hrefWindow)
Add a single content junk (in most cases a single line or a line fragment) to the list of PhysicalOperations. |
protected abstract void |
setFont(FontDefinition f)
|
protected void |
setInternalOperationBounds(StrictBounds operationBounds)
Correct the given bounds to fit on the page. |
protected void |
setPageBounds(java.awt.geom.Rectangle2D pageBounds)
|
protected abstract void |
setPaint(java.awt.Paint p)
|
void |
setProperty(java.lang.String property,
java.lang.String value)
Defines a property for this output target. |
void |
setReport(ReportDefinition report)
|
protected abstract void |
setStroke(java.awt.Stroke s)
|
protected void |
updateFont(FontDefinition f)
|
protected void |
updatePaint(java.awt.Paint paint)
|
protected void |
updateStroke(java.awt.Stroke stroke)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
protected AbstractOutputTarget()
| Method Detail |
public void configure(org.jfree.util.Configuration config)
config - the configuration.
public void setProperty(java.lang.String property,
java.lang.String value)
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.String getProperty(java.lang.String property)
property. If the property is not found,
null is returned.property - the name of the property to be queriedproperty is null
public java.lang.String getProperty(java.lang.String property,
java.lang.String defaultValue)
property. If the property is not found,
the default value is returned.property - the name of the property to be querieddefaultValue - the defaultvalue returned if there is no such propertyproperty is nullprotected java.util.Iterator getPropertyNames()
public float getHorizontalAlignmentBorder()
mod(X, horizontalAlignment) == 0 and mod(Y,
verticalAlignment) == 0public float getVerticalAlignmentBorder()
mod(X, horizontalAlignment) == 0 and mod(Y,
verticalAlignment) == 0public long getInternalVerticalAlignmentBorder()
mod(X, horizontalAlignment) == 0 and mod(Y,
verticalAlignment) == 0. Returning 0 will disable the alignment.
Q&D Hack: Save some cycles of processor time by computing that thing only once.public long getInternalHorizontalAlignmentBorder()
mod(X, horizontalAlignment) == 0 and mod(Y,
verticalAlignment) == 0. Returning 0 will disable the alignment.
Q&D Hack: Save some cycles of processor time by computing that thing only once.public ContentFactory getContentFactory()
protected ContentFactory createContentFactory()
protected abstract void beginPage(PageDefinition page,
int index)
throws OutputTargetException
protected abstract void endPage()
throws OutputTargetException
public void printPage(MetaPage content,
PageDefinition page,
int index)
throws OutputTargetException
protected void printBand(MetaBand band,
StrictBounds bounds)
throws OutputTargetException
band - the band that should be printedbounds - the bounds for that band.
protected void printHRefTarget(MetaElement element,
java.lang.String target)
protected void printElement(MetaElement element,
StrictBounds bounds)
throws OutputTargetException
protected void printContent(MetaElement element,
Content content)
throws OutputTargetException
protected void printHRefForCurrentContent(java.lang.String href,
java.lang.String hrefWindow)
protected void printTextContent(MetaElement element,
Content content)
throws OutputTargetException
protected void printShapeContent(MetaElement element,
Content content)
throws OutputTargetException
protected void printImageContent(MetaElement element,
Content content)
throws OutputTargetException
protected void printDrawableContent(MetaElement element,
Content content)
throws OutputTargetException
protected void printContainerContent(MetaElement element,
Content content)
throws OutputTargetException
protected void printAnchorContent(MetaElement element,
Content content)
throws OutputTargetException
protected java.awt.geom.Rectangle2D getOperationBounds()
protected StrictBounds getInternalOperationBounds()
protected void setInternalOperationBounds(StrictBounds operationBounds)
operationBounds - the operation boundsprotected void setPageBounds(java.awt.geom.Rectangle2D pageBounds)
protected java.awt.geom.Rectangle2D getPageBounds()
protected StrictBounds getInternalPageBounds()
protected void printTextLine(TextLine c,
java.lang.String hrefTarget,
java.lang.String hrefWindow)
c - the content.protected abstract void printText(java.lang.String text)
protected void updateFont(FontDefinition f)
throws OutputTargetException
protected abstract void setFont(FontDefinition f)
throws OutputTargetException
protected abstract FontDefinition getFont()
protected void updatePaint(java.awt.Paint paint)
protected abstract void setPaint(java.awt.Paint p)
protected abstract java.awt.Paint getPaint()
protected abstract boolean isPaintSupported(java.awt.Paint p)
protected void updateStroke(java.awt.Stroke stroke)
throws OutputTargetException
public LayoutManagerCache getCache()
protected abstract void setStroke(java.awt.Stroke s)
throws OutputTargetException
protected abstract java.awt.Stroke getStroke()
protected abstract void drawShape(java.awt.Shape s)
protected abstract void fillShape(java.awt.Shape s)
protected abstract void drawDrawable(MetaElement element,
DrawableContent d)
throws OutputTargetException
protected abstract void drawImage(ImageContent content)
throws OutputTargetException
public boolean isImageResolutionMappingActive()
public void setReport(ReportDefinition report)
protected ReportDefinition getReport()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||