org.apache.fop.render
Class AbstractRenderer

java.lang.Object
  |
  +--org.apache.fop.render.AbstractRenderer
All Implemented Interfaces:
Renderer
Direct Known Subclasses:
AWTRenderer, MIFRenderer, PrintRenderer, PSRenderer, SVGRenderer

public abstract class AbstractRenderer
extends java.lang.Object
implements Renderer

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

log

protected org.apache.log.Logger log

currentYPosition

protected int currentYPosition
the current vertical position in millipoints from bottom

currentXPosition

protected int currentXPosition
the current horizontal position in millipoints from left

currentAreaContainerXPosition

protected int currentAreaContainerXPosition
the horizontal position of the current area container
Constructor Detail

AbstractRenderer

public AbstractRenderer()
Method Detail

setLogger

public void setLogger(org.apache.log.Logger logger)
Description copied from interface: Renderer
Set the logger
Specified by:
setLogger in interface Renderer

renderSpanArea

public void renderSpanArea(SpanArea area)
Description copied from interface: Renderer
render the given span area
Specified by:
renderSpanArea in interface Renderer

doFrame

protected abstract void doFrame(Area area)

addFilledRect

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.
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

renderBodyAreaContainer

public void renderBodyAreaContainer(BodyAreaContainer area)
Description copied from interface: Renderer
render the given area container
Specified by:
renderBodyAreaContainer in interface Renderer

renderAreaContainer

public void renderAreaContainer(AreaContainer area)
render area container
Specified by:
renderAreaContainer in interface Renderer
Parameters:
area - the area container to render

renderBlockArea

public void renderBlockArea(BlockArea area)
render block area
Specified by:
renderBlockArea in interface Renderer
Parameters:
area - the block area to render

renderLineArea

public void renderLineArea(LineArea area)
render line area
Specified by:
renderLineArea in interface Renderer
Parameters:
area - area to render


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