org.apache.fop.render.mif
Class MIFRenderer

java.lang.Object
  |
  +--org.apache.fop.render.AbstractRenderer
        |
        +--org.apache.fop.render.mif.MIFRenderer
All Implemented Interfaces:
Renderer

public class MIFRenderer
extends AbstractRenderer

Renderer that renders areas to MIF Modified by Mark Lillywhite mark-fop@inomial.com. Updated to collect all the Pages and print them out at the end. This means that the MIF renderer does not stream, but on the other hand it should still work. I don't have an MIF view to test it with, you see.


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.Hashtable options
          options
 
Fields inherited from class org.apache.fop.render.AbstractRenderer
currentAreaContainerXPosition, 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)
           
 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.Hashtable 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
renderBodyAreaContainer, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentYPosition

protected int currentYPosition
the current vertical position in millipoints from bottom

currentXPosition

protected int currentXPosition
the current horizontal position in millipoints from left

mifDoc

protected MIFDocument mifDoc
the MIF Document being created

options

protected java.util.Hashtable options
options
Constructor Detail

MIFRenderer

public MIFRenderer()
create the MIF renderer
Method Detail

setOptions

public void setOptions(java.util.Hashtable options)
set up renderer options

setupFontInfo

public void setupFontInfo(FontInfo fontInfo)
set up the given FontInfo

setProducer

public void setProducer(java.lang.String producer)
set the producer of the rendering

renderAreaContainer

public void renderAreaContainer(AreaContainer area)
Description copied from class: AbstractRenderer
render area container
Overrides:
renderAreaContainer in class AbstractRenderer
Following copied from class: org.apache.fop.render.AbstractRenderer
Parameters:
area - the area container to render

addFilledRect

protected void addFilledRect(int x,
                             int y,
                             int w,
                             int h,
                             ColorType col)
Description copied from class: AbstractRenderer
Add a filled rectangle to the current stream This default implementation calls addRect using the same color for fill and border.
Overrides:
addFilledRect in class AbstractRenderer
Following copied from class: org.apache.fop.render.AbstractRenderer
Parameters:
x - the x position of left edge in millipoints
y - the y position of top edge in millipoints
w - the width in millipoints
h - the height in millipoints
fill - the fill color/gradient

doFrame

protected void doFrame(Area area)
Overrides:
doFrame in class AbstractRenderer

renderSpanArea

public void renderSpanArea(SpanArea area)
Description copied from interface: Renderer
render the given span area
Overrides:
renderSpanArea in class AbstractRenderer

renderBlockArea

public void renderBlockArea(BlockArea area)
render the given block area
Overrides:
renderBlockArea in class AbstractRenderer
Following copied from class: org.apache.fop.render.AbstractRenderer
Parameters:
area - the block area to render

renderDisplaySpace

public void renderDisplaySpace(DisplaySpace space)
render the given display space

renderSVGArea

public void renderSVGArea(SVGArea area)
render the given SVG area

renderForeignObjectArea

public void renderForeignObjectArea(ForeignObjectArea area)
render a foreign object area

renderWordArea

public void renderWordArea(WordArea area)
Description copied from interface: Renderer
render the given inline area

renderImageArea

public void renderImageArea(ImageArea area)
render the given image area

renderInlineArea

public void renderInlineArea(InlineArea area)
render the given inline area

renderInlineSpace

public void renderInlineSpace(InlineSpace space)
render the given inline space

renderLineArea

public void renderLineArea(LineArea area)
render the given line area
Overrides:
renderLineArea in class AbstractRenderer
Following copied from class: org.apache.fop.render.AbstractRenderer
Parameters:
area - area to render

renderPage

public void renderPage(Page page)
render the given page

renderLeaderArea

public void renderLeaderArea(LeaderArea area)
render the given leader area

startRenderer

public void startRenderer(java.io.OutputStream outputStream)
                   throws java.io.IOException
Default start renderer method. This would normally be overridden. (mark-fop@inomial.com).

stopRenderer

public void stopRenderer(java.io.OutputStream outputStream)
                  throws java.io.IOException
Default stop renderer method. This would normally be overridden. (mark-fop@inomial.com)

render

public void render(Page page,
                   java.io.OutputStream outputStream)
Description copied from interface: Renderer
render the given area tree to the given stream


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.