|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 IDReferences |
idReferences
|
protected 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 void |
doBackground(Area area,
int x,
int y,
int w,
int h)
Renders an area's background. |
protected abstract void |
doFrame(Area area)
|
protected void |
drawImage(int x,
int y,
FopImage image,
FontState fs)
Renders an image, rendered at the image's intrinsic size. |
protected abstract void |
drawImageClipped(int x,
int y,
int clipX,
int clipY,
int clipW,
int clipH,
FopImage image,
FontState fs)
Renders an image, clipping it as specified. |
protected abstract void |
drawImageScaled(int x,
int y,
int w,
int h,
FopImage image,
FontState fs)
Renders an image, scaling it to the given width and height. |
IDReferences |
getIDReferences()
|
void |
renderAreaContainer(AreaContainer area)
render area container |
void |
renderBlockArea(BlockArea area)
render block area |
void |
renderBodyAreaContainer(BodyAreaContainer area)
render the given area container |
void |
renderImageArea(ImageArea area)
Render an image area. |
void |
renderLineArea(LineArea area)
render line area |
void |
renderRegionAreaContainer(AreaContainer area)
render region area container |
void |
renderRegions(Page page)
render region areas |
void |
renderSpanArea(SpanArea area)
render the given span area |
void |
setLogger(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, renderInlineSpace, renderLeaderArea, renderPage, renderSVGArea, renderWordArea, setOptions, setProducer, setupFontInfo, startRenderer, stopRenderer |
Field Detail |
protected Logger log
protected int currentYPosition
protected int currentXPosition
protected int currentAreaContainerXPosition
protected IDReferences idReferences
Constructor Detail |
public AbstractRenderer()
Method Detail |
public void setLogger(Logger logger)
Renderer
setLogger
in interface Renderer
public void renderSpanArea(SpanArea area)
Renderer
renderSpanArea
in interface Renderer
protected abstract void doFrame(Area area)
protected void doBackground(Area area, int x, int y, int w, int h)
x
- the x position of the left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsprotected 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 millipointsprotected void drawImage(int x, int y, FopImage image, FontState fs)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsimage
- the image to be renderedfs
- the font state to use when rendering text
in non-bitmapped images.protected abstract void drawImageScaled(int x, int y, int w, int h, FopImage image, FontState fs)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsimage
- the image to be renderedfs
- the font state to use when rendering text
in non-bitmapped images.protected abstract void drawImageClipped(int x, int y, int clipX, int clipY, int clipW, int clipH, FopImage image, FontState fs)
x
- the x position of left edge in millipoints.y
- the y position of top edge in millipoints.clipX
- the left edge of the clip in millipointsclipY
- the top edge of the clip in millipointsclipW
- the clip width in millipointsclipH
- the clip height in millipointsfs
- the font state to use when rendering text
in non-bitmapped images.public void renderImageArea(ImageArea area)
renderImageArea
in interface Renderer
area
- the image area to renderpublic void renderBodyAreaContainer(BodyAreaContainer area)
Renderer
renderBodyAreaContainer
in interface Renderer
public void renderRegionAreaContainer(AreaContainer area)
renderRegionAreaContainer
in interface Renderer
area
- the region area container to renderpublic 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 renderpublic void renderRegions(Page page)
page
- the page whose regions to renderpublic IDReferences getIDReferences()
getIDReferences
in interface Renderer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |