|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.AbstractRenderer
org.apache.fop.render.svg.SVGRenderer
Field Summary | |
---|---|
protected float |
currentBlue
|
protected java.lang.String |
currentFontName
The current (internal) font name |
protected int |
currentFontSize
The current font size in millipoints |
protected float |
currentGreen
|
protected float |
currentRed
The current colour's red, green and blue component |
protected java.util.Map |
fontNames
|
protected java.util.Map |
fontStyles
|
protected java.util.Map |
options
options |
protected int |
pageHeight
|
protected int |
pageNumber
|
protected int |
pageWidth
|
protected java.awt.Color |
saveColor
|
Fields inherited from class org.apache.fop.render.AbstractRenderer |
---|
currentAreaContainerXPosition, currentXPosition, currentYPosition, idReferences, log |
Constructor Summary | |
---|---|
SVGRenderer()
|
Method Summary | |
---|---|
protected 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 void |
addLine(int x1,
int y1,
int x2,
int y2,
int th,
float r,
float g,
float b)
add a line to the current stream |
protected void |
addRect(int x,
int y,
int w,
int h,
boolean drawAsOutline)
draw a filled rectangle in the current color |
protected void |
addRect(int x,
int y,
int w,
int h,
float r,
float g,
float b)
draw a rectangle |
protected void |
addRect(int x,
int y,
int w,
int h,
float r,
float g,
float b,
float fr,
float fg,
float fb)
draw a filled rectangle |
static java.awt.Color |
colorType2Color(ColorType ct)
|
protected void |
doFrame(Area area)
|
protected void |
drawFrame()
|
protected void |
drawImageClipped(int x,
int y,
int clipX,
int clipY,
int clipW,
int clipH,
FopImage image,
FontState fs)
Renders an image, clipping it as specified. |
protected void |
drawImageScaled(int x,
int y,
int w,
int h,
FopImage image,
FontState fs)
Renders an image, scaling it to the given width and height. |
protected java.awt.geom.Rectangle2D |
getBounds(Area a)
|
void |
render(Page page)
|
void |
render(Page page,
java.io.OutputStream stream)
render the given area tree to the given stream |
void |
renderDisplaySpace(DisplaySpace space)
render the given display space |
void |
renderForeignObjectArea(ForeignObjectArea area)
render a foreign object area |
void |
renderImageArea(ImageArea area)
Render an image area. |
void |
renderInlineSpace(InlineSpace space)
render the given inline space |
void |
renderLeaderArea(LeaderArea area)
render the given leader area |
void |
renderPage(Page page)
render the given page |
void |
renderSVGArea(SVGArea area)
render the given SVG area |
protected void |
renderSVGDocument(org.w3c.dom.Document doc,
float x,
float y)
|
void |
renderWordArea(WordArea area)
render the given inline area |
void |
setOptions(java.util.Map options)
set up renderer options |
void |
setProducer(java.lang.String producer)
set the producer of the rendering |
void |
setupFontInfo(FontInfo fontInfo)
set up the given FontInfo |
void |
startRenderer(java.io.OutputStream outputStream)
|
void |
stopRenderer(java.io.OutputStream outputStream)
|
Methods inherited from class org.apache.fop.render.AbstractRenderer |
---|
doBackground, drawImage, getIDReferences, renderAreaContainer, renderBlockArea, renderBodyAreaContainer, renderLineArea, renderRegionAreaContainer, renderRegions, renderSpanArea, setLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int pageWidth
protected int pageHeight
protected int pageNumber
protected java.util.Map fontNames
protected java.util.Map fontStyles
protected java.awt.Color saveColor
protected java.lang.String currentFontName
protected int currentFontSize
protected float currentRed
protected float currentGreen
protected float currentBlue
protected java.util.Map options
Constructor Detail |
public SVGRenderer()
Method Detail |
public void setOptions(java.util.Map options)
protected void addLine(int x1, int y1, int x2, int y2, int th, float r, float g, float b)
x1
- the start x location in millipointsy1
- the start y location in millipointsx2
- the end x location in millipointsy2
- the end y location in millipointsth
- the thickness in millipointsr
- the red componentg
- the green componentb
- the blue componentprotected void addRect(int x, int y, int w, int h, float r, float g, float b)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsr
- the red componentg
- the green componentb
- the blue componentprotected void addRect(int x, int y, int w, int h, float r, float g, float b, float fr, float fg, float fb)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsr
- the red component of edgesg
- the green component of edgesb
- the blue component of edgesfr
- the red component of the fillfg
- the green component of the fillfb
- the blue component of the fillprotected void addRect(int x, int y, int w, int h, boolean drawAsOutline)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsdrawAsOutline
- true for draw, false for fillprotected void addFilledRect(int x, int y, int w, int h, ColorType col)
AbstractRenderer
addFilledRect
in class AbstractRenderer
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsprotected void drawFrame()
public void render(Page page, java.io.OutputStream stream) throws java.io.IOException
Renderer
java.io.IOException
public void render(Page page) throws java.io.IOException
java.io.IOException
public void renderPage(Page page)
Renderer
protected void doFrame(Area area)
doFrame
in class AbstractRenderer
protected java.awt.geom.Rectangle2D getBounds(Area a)
public void setupFontInfo(FontInfo fontInfo) throws FOPException
Renderer
FOPException
public void renderDisplaySpace(DisplaySpace space)
Renderer
protected void drawImageScaled(int x, int y, int w, int h, FopImage image, FontState fs)
drawImageScaled
in class AbstractRenderer
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsimage
- the image to be renderedfs
- the font state to use when rendering text
in non-bitmapped images.protected void drawImageClipped(int x, int y, int clipX, int clipY, int clipW, int clipH, FopImage image, FontState fs)
drawImageClipped
in class AbstractRenderer
x
- the x position of left edge in millipoints.y
- the y position of top edge in millipoints.clipX
- the left edge of the clip in millipointsclipY
- the top edge of the clip in millipointsclipW
- the clip width in millipointsclipH
- the clip height in millipointsfs
- the font state to use when rendering text
in non-bitmapped images.public void renderImageArea(ImageArea area)
AbstractRenderer
renderImageArea
in interface Renderer
renderImageArea
in class AbstractRenderer
area
- the image area to renderpublic void renderWordArea(WordArea area)
Renderer
public void renderInlineSpace(InlineSpace space)
Renderer
public void renderLeaderArea(LeaderArea area)
Renderer
area
- area to renderpublic void renderSVGArea(SVGArea area)
Renderer
protected void renderSVGDocument(org.w3c.dom.Document doc, float x, float y)
public void setProducer(java.lang.String producer)
Renderer
public static java.awt.Color colorType2Color(ColorType ct)
public void renderForeignObjectArea(ForeignObjectArea area)
Renderer
public void startRenderer(java.io.OutputStream outputStream) throws java.io.IOException
java.io.IOException
public void stopRenderer(java.io.OutputStream outputStream) throws java.io.IOException
java.io.IOException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |