|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.render.AbstractRenderer | +--org.apache.fop.render.mif.MIFRenderer
Renders areas to MIF. Collects all the Pages and print them out at the end. This means that the MIF renderer does not stream.
Field Summary | |
protected int |
currentXPosition
the current horizontal position in millipoints from left |
protected int |
currentYPosition
the current vertical position in millipoints from bottom |
protected MIFDocument |
mifDoc
the MIF Document being created |
protected java.util.Map |
options
options |
Fields inherited from class org.apache.fop.render.AbstractRenderer |
currentAreaContainerXPosition, idReferences, log |
Constructor Summary | |
MIFRenderer()
create the MIF renderer |
Method Summary | |
protected 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 |
doFrame(Area area)
|
protected 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 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. |
void |
render(Page page,
java.io.OutputStream outputStream)
render the given area tree to the given stream |
void |
renderAreaContainer(AreaContainer area)
render area container |
void |
renderBlockArea(BlockArea area)
render the given block area |
void |
renderDisplaySpace(DisplaySpace space)
render the given display space |
void |
renderForeignObjectArea(ForeignObjectArea area)
render a foreign object area |
void |
renderImageArea(ImageArea area)
render the given image area |
void |
renderInlineArea(InlineArea area)
render the given inline area |
void |
renderInlineSpace(InlineSpace space)
render the given inline space |
void |
renderLeaderArea(LeaderArea area)
render the given leader area |
void |
renderLineArea(LineArea area)
render the given line area |
void |
renderPage(Page page)
render the given page |
void |
renderSpanArea(SpanArea area)
render the given span area |
void |
renderSVGArea(SVGArea area)
render the given SVG area |
void |
renderWordArea(WordArea area)
render the given inline area |
void |
setOptions(java.util.Map options)
set up renderer options |
void |
setProducer(java.lang.String producer)
set the producer of the rendering |
void |
setupFontInfo(FontInfo fontInfo)
set up the given FontInfo |
void |
startRenderer(java.io.OutputStream outputStream)
Default start renderer method. |
void |
stopRenderer(java.io.OutputStream outputStream)
Default stop renderer method. |
Methods inherited from class org.apache.fop.render.AbstractRenderer |
doBackground, drawImage, getIDReferences, renderBodyAreaContainer, renderRegionAreaContainer, renderRegions, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int currentYPosition
protected int currentXPosition
protected MIFDocument mifDoc
protected java.util.Map options
Constructor Detail |
public MIFRenderer()
Method Detail |
public void setOptions(java.util.Map options)
public void setupFontInfo(FontInfo fontInfo)
public void setProducer(java.lang.String producer)
public void renderAreaContainer(AreaContainer area)
AbstractRenderer
renderAreaContainer
in class AbstractRenderer
org.apache.fop.render.AbstractRenderer
area
- the area container to renderprotected void addFilledRect(int x, int y, int w, int h, ColorType col)
AbstractRenderer
addFilledRect
in class AbstractRenderer
org.apache.fop.render.AbstractRenderer
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/gradientprotected void doFrame(Area area)
doFrame
in class AbstractRenderer
public void renderSpanArea(SpanArea area)
Renderer
renderSpanArea
in class AbstractRenderer
public void renderBlockArea(BlockArea area)
renderBlockArea
in class AbstractRenderer
org.apache.fop.render.AbstractRenderer
area
- the block area to renderpublic void renderDisplaySpace(DisplaySpace space)
public void renderSVGArea(SVGArea area)
public void renderForeignObjectArea(ForeignObjectArea area)
public void renderWordArea(WordArea area)
Renderer
protected void drawImageScaled(int x, int y, int w, int h, FopImage image, FontState fs)
drawImageScaled
in class AbstractRenderer
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 void drawImageClipped(int x, int y, int clipX, int clipY, int clipW, int clipH, FopImage image, FontState fs)
drawImageClipped
in class AbstractRenderer
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 millipointsfill
- the image to be renderedfs
- the font state to use when rendering text
in non-bitmapped images.public void renderImageArea(ImageArea area)
renderImageArea
in class AbstractRenderer
org.apache.fop.render.AbstractRenderer
area
- the image area to renderpublic void renderInlineArea(InlineArea area)
public void renderInlineSpace(InlineSpace space)
public void renderLineArea(LineArea area)
renderLineArea
in class AbstractRenderer
org.apache.fop.render.AbstractRenderer
area
- area to renderpublic void renderPage(Page page)
public void renderLeaderArea(LeaderArea area)
public void startRenderer(java.io.OutputStream outputStream) throws java.io.IOException
public void stopRenderer(java.io.OutputStream outputStream) throws java.io.IOException
public void render(Page page, java.io.OutputStream outputStream)
Renderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |