|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.output.OutputTarget
org.foray.output.Converter
org.foray.output.MIFConverter
public class MIFConverter
Renders areas to MIF. Collects all the Pages and print them out at the end. This means that the MIF renderer does not stream.
| Constructor Summary | |
|---|---|
MIFConverter(org.axsl.mif.MifBook mifBook,
org.apache.commons.logging.Log logger,
org.axsl.output.DocumentConfiguration outputConfig)
Create the MIF renderer. |
|
| Method Summary | |
|---|---|
protected void |
addFilledRect(int x,
int y,
int w,
int h,
Color col)
Creates a filled rectangle in the MIF output. |
void |
convert(org.axsl.fo.fo.Table table)
Converts an FOTree table to a MIF Table. |
void |
convert(org.axsl.fo.fo.TableBody tableBody)
Converts an FOTree table-body to a MIF Table Body. |
void |
convert(org.axsl.fo.fo.TableColumn column)
Converts an FOTree table-column to a MIF Table Column. |
void |
convert(org.axsl.fo.fo.TableRow row)
Converts an FOTree table-row to a MIF Table Row. |
int[] |
getFontSources()
|
org.axsl.output.DocumentConfiguration |
getOutputConfiguration()
Returns the output configuration for this renderer. |
void |
render(org.axsl.fo.fo.Block block)
Render a given FOTree block. |
void |
render(org.axsl.fo.fo.TableCell cell)
Converts an FOTree table-cell to a MIF Table Cell. |
void |
renderPage()
Render a page. |
void |
startOutput()
|
void |
stopOutput()
|
| Methods inherited from class org.foray.output.OutputTarget |
|---|
getApplicationName, getApplicationNameShort, getApplicationVersion, getDeveloperURLShort, getFontConsumer, getLogger, getOutputStream, getStrokeSVGText, outputStreamRequired, setApplicationName, setApplicationNameShort, setApplicationVersion, setDeveloperUrlShort, setFontConsumer, setOutputStream, setStrokeText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MIFConverter(org.axsl.mif.MifBook mifBook,
org.apache.commons.logging.Log logger,
org.axsl.output.DocumentConfiguration outputConfig)
mifBook - The MIF book to be rendered.logger - The logger.outputConfig - The output configuration.| Method Detail |
|---|
public void convert(org.axsl.fo.fo.Table table)
table - The FOtree table to be converted.public void convert(org.axsl.fo.fo.TableBody tableBody)
tableBody - The FOtree table-body to be converted.public void convert(org.axsl.fo.fo.TableRow row)
row - The FOtree table-row to be converted.public void convert(org.axsl.fo.fo.TableColumn column)
column - The FOtree table-column to be converted.public void render(org.axsl.fo.fo.TableCell cell)
cell - The FOtree table-cell to be converted.
protected void addFilledRect(int x,
int y,
int w,
int h,
Color col)
x - The x coordinate of one corner of the rectangle, in millipoints.y - The y coordinate of one corner of the rectangle, in millipoints.w - The width of the rectangle, in millipoints.h - The height of the rectangle, in millipoints.col - The color of the rectangle.public void render(org.axsl.fo.fo.Block block)
block - The FOtree block to be rendered.public void renderPage()
public void startOutput()
throws org.axsl.output.OutputException
org.axsl.output.OutputException
public void stopOutput()
throws org.axsl.output.OutputException
org.axsl.output.OutputExceptionpublic int[] getFontSources()
public org.axsl.output.DocumentConfiguration getOutputConfiguration()
OutputTarget
getOutputConfiguration in class OutputTarget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||