|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.output.OutputTarget
org.foray.render.Renderer
org.foray.render.PrintRenderer
public abstract class PrintRenderer
Abstract base class of "Print" type renderers.
Field Summary |
---|
Fields inherited from class org.foray.render.Renderer |
---|
SHADING_WEIGHT_BLUE, SHADING_WEIGHT_GREEN, SHADING_WEIGHT_RED |
Constructor Summary | |
---|---|
PrintRenderer(org.apache.commons.logging.Log logger)
Constructor. |
Method Summary | |
---|---|
int[] |
getFontSources()
|
abstract org.axsl.output.DocumentConfiguration |
getOutputConfiguration()
Returns the output configuration for this renderer. |
protected int |
getOverlineYPosition(org.axsl.galley.TextArea area)
Computes the Y position that should be used for the overline stroke. |
protected int |
getThroughYPosition(org.axsl.galley.TextArea area)
Computes the Y position that should be used for the through stroke. |
protected int |
getUnderlineYPosition(org.axsl.galley.TextArea area)
Computes the Y position that should be used for the underline stroke. |
protected void |
markBorder(org.axsl.galley.BorderPaddingArea area)
Marks the border, if any, for the given area. |
void |
render(org.axsl.galley.LeaderArea area)
|
void |
render(org.axsl.galley.TextArea area)
|
protected void |
renderGenericSpace(org.axsl.galley.TextArea area)
Render a "space", that is, an area that has no text or other content, but that may have features like underscore, overscore, and through-score. |
Methods inherited from class org.foray.render.Renderer |
---|
colorToFloat, convertMillipointRectangle, drawGraphic, drawLine, drawRectangle, getAreaTree, getPixelsPerInch, markBackground, render, render, render, render, render, render, render, render, render, render, render, render, render, render, render, render, render, render, renderChildren, renderDocumentNodes, renderRegions, renderTextSegment, resetTextCursor, setGalley, shadingPercent, toPoints |
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 |
Methods inherited from interface org.axsl.output.OutputTarget |
---|
outputStreamRequired, setApplicationName, setApplicationNameShort, setApplicationVersion, setDeveloperUrlShort, setFontConsumer, setOutputStream, setStrokeText, startOutput, stopOutput |
Constructor Detail |
---|
public PrintRenderer(org.apache.commons.logging.Log logger)
logger
- The logger.Method Detail |
---|
protected void markBorder(org.axsl.galley.BorderPaddingArea area) throws org.axsl.galley.GalleyVisitorException
Renderer
markBorder
in class Renderer
area
- The area whose border is to be drawn.
org.axsl.galley.GalleyVisitorException
- For errors during rendering.protected void renderGenericSpace(org.axsl.galley.TextArea area) throws org.axsl.galley.GalleyVisitorException
area
- The area whose "space" features are to be rendered.
org.axsl.galley.GalleyVisitorException
- For errors during rendering.protected int getUnderlineYPosition(org.axsl.galley.TextArea area)
area
- The area whose metrics should be used for the computation.
protected int getOverlineYPosition(org.axsl.galley.TextArea area)
area
- The area whose metrics should be used for the computation.
protected int getThroughYPosition(org.axsl.galley.TextArea area)
area
- The area whose metrics should be used for the computation.
public void render(org.axsl.galley.LeaderArea area) throws org.axsl.galley.GalleyVisitorException
org.axsl.galley.GalleyVisitorException
public void render(org.axsl.galley.TextArea area) throws org.axsl.galley.GalleyVisitorException
org.axsl.galley.GalleyVisitorException
public int[] getFontSources()
public abstract 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 |