fi.hut.tml.xsmiles.mlfc.xslfo.render.jdk12
Class XSmilesAWTRenderer

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xslfo.render.jdk12.AWTRenderer2
      extended byfi.hut.tml.xsmiles.mlfc.xslfo.render.jdk12.XSmilesAWTRenderer
All Implemented Interfaces:
AWTRendererInterface, java.awt.print.Pageable, java.awt.print.Printable, org.apache.fop.render.Renderer

public class XSmilesAWTRenderer
extends AWTRenderer2
implements org.apache.fop.render.Renderer, AWTRendererInterface

Links XSMiles extensions in CommonExtensions to the org.apache.fop.awt.AWTRenderer. - Form components - Links - Embedded SVG & SMIL

Version:
$Revision: 6514 $
Author:
Mikko Honkala

Field Summary
protected  CommonExtensions common
           
protected  java.awt.Container container
           
protected  MLFCListener mlfcListener
           
protected static int PADX
           
protected static int PADY
           
protected  org.apache.fop.viewer.Translator res
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.xslfo.render.jdk12.AWTRenderer2
currentAreaContainerXPosition, currentBlue, currentFontName, currentFontSize, currentGreen, currentRed, currentXPosition, currentYPosition, fontNames, fontStyles, graphics, idReferences, options, pageHeight, pageList, pageNumber, pageWidth, parent, progressListener, saveColor, scaleFactor
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Fields inherited from interface java.awt.print.Pageable
UNKNOWN_NUMBER_OF_PAGES
 
Constructor Summary
XSmilesAWTRenderer(org.apache.fop.viewer.Translator aRes, MLFCListener ml, XMLDocument doc)
          Constructor.
 
Method Summary
 void followActiveLink()
          Navigates to the page pointed by the link that is active
protected  java.awt.Rectangle getRectangle(org.apache.fop.layout.Area a)
           
 java.awt.Component getRenderedComponent()
           
 void moveActiveLinkDown()
          Moves the "active" link down
 void moveActiveLinkUp()
          Moves the "active" link up
 void render(int aPageNumber)
           
 void renderFormArea(FormWidgetArea area)
           
 void renderImageArea(org.apache.fop.image.ImageArea area)
          XSmiles extension: External SVG images using SVGMLFC
 void setAreaTree(org.apache.fop.layout.AreaTree atree)
           
 void setParentComponent(java.awt.Container cont)
           
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.xslfo.render.jdk12.AWTRenderer2
addLine, addRect, addRect, addRect, colorType2Color, drawFrame, getBounds, getLastRenderedPage, getNumberOfPages, getPageCount, getPageFormat, getPageNumber, getPrintable, getScaleFactor, print, removePage, render, render, renderAreaContainer, renderBlockArea, renderBodyAreaContainer, renderDisplaySpace, renderForeignObjectArea, renderInlineSpace, renderLeaderArea, renderLineArea, renderPage, renderSpanArea, renderSVGArea, renderSVGDocument, renderWordArea, setComponent, setOptions, setPageNumber, setProducer, setProgressListener, setScaleFactor, setupFontInfo, startRenderer, stopRenderer, transform
 
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, renderAreaContainer, renderBlockArea, renderBodyAreaContainer, renderDisplaySpace, renderForeignObjectArea, renderInlineSpace, renderLeaderArea, renderLineArea, renderPage, renderSpanArea, renderSVGArea, renderWordArea, setOptions, setProducer, setupFontInfo, startRenderer, stopRenderer
 
Methods inherited from interface fi.hut.tml.xsmiles.mlfc.xslfo.render.AWTRendererInterface
getPageCount, setPageNumber, setScaleFactor
 

Field Detail

res

protected org.apache.fop.viewer.Translator res

container

protected java.awt.Container container

common

protected CommonExtensions common

PADX

protected static final int PADX
See Also:
Constant Field Values

PADY

protected static final int PADY
See Also:
Constant Field Values

mlfcListener

protected MLFCListener mlfcListener
Constructor Detail

XSmilesAWTRenderer

public XSmilesAWTRenderer(org.apache.fop.viewer.Translator aRes,
                          MLFCListener ml,
                          XMLDocument doc)
Constructor.

Method Detail

setParentComponent

public void setParentComponent(java.awt.Container cont)
Specified by:
setParentComponent in interface AWTRendererInterface

render

public void render(int aPageNumber)
Specified by:
render in interface AWTRendererInterface
Overrides:
render in class AWTRenderer2

followActiveLink

public void followActiveLink()
Navigates to the page pointed by the link that is active

Specified by:
followActiveLink in interface AWTRendererInterface

moveActiveLinkDown

public void moveActiveLinkDown()
Moves the "active" link down

Specified by:
moveActiveLinkDown in interface AWTRendererInterface

moveActiveLinkUp

public void moveActiveLinkUp()
Moves the "active" link up

Specified by:
moveActiveLinkUp in interface AWTRendererInterface

renderFormArea

public void renderFormArea(FormWidgetArea area)
Specified by:
renderFormArea in interface AWTRendererInterface

setAreaTree

public void setAreaTree(org.apache.fop.layout.AreaTree atree)
Specified by:
setAreaTree in interface AWTRendererInterface

renderImageArea

public void renderImageArea(org.apache.fop.image.ImageArea area)
XSmiles extension: External SVG images using SVGMLFC

Specified by:
renderImageArea in interface org.apache.fop.render.Renderer
Overrides:
renderImageArea in class AWTRenderer2

getRenderedComponent

public java.awt.Component getRenderedComponent()
Specified by:
getRenderedComponent in interface AWTRendererInterface

getRectangle

protected java.awt.Rectangle getRectangle(org.apache.fop.layout.Area a)


X-Smiles 1.2