|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.render.AbstractRenderer
Abstract base class for all renderers.
Field Summary | |
protected int |
currentAreaContainerXPosition
the horizontal position of the current area container |
protected int |
currentXPosition
the current horizontal position in millipoints from left |
protected int |
currentYPosition
the current vertical position in millipoints from bottom |
protected org.apache.log.Logger |
log
|
Constructor Summary | |
AbstractRenderer()
|
Method Summary | |
protected abstract void |
addFilledRect(int x,
int y,
int w,
int h,
ColorType col)
Add a filled rectangle to the current stream This default implementation calls addRect using the same color for fill and border. |
protected abstract void |
doFrame(Area area)
|
void |
renderAreaContainer(AreaContainer area)
render area container |
void |
renderBlockArea(BlockArea area)
render block area |
void |
renderBodyAreaContainer(BodyAreaContainer area)
render the given area container |
void |
renderLineArea(LineArea area)
render line area |
void |
renderSpanArea(SpanArea area)
render the given span area |
void |
setLogger(org.apache.log.Logger logger)
Set the logger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.fop.render.Renderer |
render, renderDisplaySpace, renderForeignObjectArea, renderImageArea, renderInlineSpace, renderLeaderArea, renderPage, renderSVGArea, renderWordArea, setOptions, setProducer, setupFontInfo, startRenderer, stopRenderer |
Field Detail |
protected org.apache.log.Logger log
protected int currentYPosition
protected int currentXPosition
protected int currentAreaContainerXPosition
Constructor Detail |
public AbstractRenderer()
Method Detail |
public void setLogger(org.apache.log.Logger logger)
Renderer
setLogger
in interface Renderer
public void renderSpanArea(SpanArea area)
Renderer
renderSpanArea
in interface Renderer
protected abstract void doFrame(Area area)
protected abstract void addFilledRect(int x, int y, int w, int h, ColorType col)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsfill
- the fill color/gradientpublic void renderBodyAreaContainer(BodyAreaContainer area)
Renderer
renderBodyAreaContainer
in interface Renderer
public void renderAreaContainer(AreaContainer area)
renderAreaContainer
in interface Renderer
area
- the area container to renderpublic void renderBlockArea(BlockArea area)
renderBlockArea
in interface Renderer
area
- the block area to renderpublic void renderLineArea(LineArea area)
renderLineArea
in interface Renderer
area
- area to render
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |