fi.hut.tml.xsmiles.mlfc.xslfo.render
Class CommonExtensions

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xslfo.render.CommonExtensions

public class CommonExtensions
extends java.lang.Object

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

Version:
$Revision: 6514 $
Author:
Mikko Honkala

Field Summary
protected  int activeLink
           
protected  java.awt.Container container
           
protected  java.util.Vector linkComponents
           
protected  java.util.Hashtable mlfcList
           
protected  MLFCListener mlfcListener
           
protected static int PADX
           
protected static int PADY
           
protected  int pageHeight
           
protected  org.apache.fop.render.Renderer renderer
           
protected  org.apache.fop.viewer.Translator res
           
protected  double scaleFactor
           
protected  java.util.Hashtable widgets
           
protected  XMLDocument xmldoc
           
 
Constructor Summary
CommonExtensions(org.apache.fop.render.Renderer a_renderer, MLFCListener ml, XMLDocument doc)
          Constructor.
 
Method Summary
 void followActiveLink()
          Navigates to the page pointed by the link that is active
 void initPage(int aPageNumber, double aScale, int aPageHeight, java.util.Vector linkSets)
           
 void moveActiveLinkDown()
          Move the active link up (linksComponents--) I'll arrange a method in XSLFOMLFC for this
 void moveActiveLinkUp()
          Move the active link up (--linksComponents) I'll arrange a method in XSLFOMLFC for this
protected  void removeComponents(java.util.Hashtable fields, java.awt.Container p)
          set's components on the previous page invisible
 int renderExternalImageArea(org.apache.fop.image.ImageArea area, java.awt.Rectangle rect)
          XSmiles extension: External SVG images using SVGMLFC
 int renderFormArea(FormWidgetArea area, java.awt.Rectangle rect)
           
 void renderLinks(java.util.Vector linkSets)
           
 void renderLinkSet(org.apache.fop.layout.LinkSet linkSet)
           
 void setParentComponent(java.awt.Container cont)
           
protected  void showWidget(FormWidgetArea area, int posx, int posy)
          This is called for every widget on the current page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

res

protected org.apache.fop.viewer.Translator res

container

protected java.awt.Container container

pageHeight

protected int pageHeight

widgets

protected java.util.Hashtable widgets

mlfcList

protected java.util.Hashtable mlfcList

linkComponents

protected java.util.Vector linkComponents

activeLink

protected int activeLink

renderer

protected org.apache.fop.render.Renderer renderer

PADX

protected static final int PADX
See Also:
Constant Field Values

PADY

protected static final int PADY
See Also:
Constant Field Values

scaleFactor

protected double scaleFactor

mlfcListener

protected MLFCListener mlfcListener

xmldoc

protected XMLDocument xmldoc
Constructor Detail

CommonExtensions

public CommonExtensions(org.apache.fop.render.Renderer a_renderer,
                        MLFCListener ml,
                        XMLDocument doc)
Constructor.

Method Detail

setParentComponent

public void setParentComponent(java.awt.Container cont)

initPage

public void initPage(int aPageNumber,
                     double aScale,
                     int aPageHeight,
                     java.util.Vector linkSets)

renderLinks

public void renderLinks(java.util.Vector linkSets)

renderLinkSet

public void renderLinkSet(org.apache.fop.layout.LinkSet linkSet)

moveActiveLinkUp

public void moveActiveLinkUp()
Move the active link up (--linksComponents) I'll arrange a method in XSLFOMLFC for this


moveActiveLinkDown

public void moveActiveLinkDown()
Move the active link up (linksComponents--) I'll arrange a method in XSLFOMLFC for this


followActiveLink

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


removeComponents

protected void removeComponents(java.util.Hashtable fields,
                                java.awt.Container p)
set's components on the previous page invisible


renderFormArea

public int renderFormArea(FormWidgetArea area,
                          java.awt.Rectangle rect)

showWidget

protected void showWidget(FormWidgetArea area,
                          int posx,
                          int posy)
This is called for every widget on the current page. It checks whether the component exists in the area object if it doesn't -> it is created if it does -> it is set visible


renderExternalImageArea

public int renderExternalImageArea(org.apache.fop.image.ImageArea area,
                                   java.awt.Rectangle rect)
XSmiles extension: External SVG images using SVGMLFC



X-Smiles 1.2