|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.render.pcl.PCLSVGRenderer
Renderer that renders SVG to PCL
Field Summary | |
protected java.lang.String |
currentFontName
the current (internal) font name |
protected int |
currentFontSize
the current font size in millipoints |
protected int |
currentXPosition
the current horizontal position in millipoints from left |
protected int |
currentYPosition
the current vertical position in millipoints from bottom |
Constructor Summary | |
PCLSVGRenderer(PCLRenderer rend,
FontState fs,
java.lang.String font,
int size,
int xpos,
int ypos,
int ph,
int xo)
create the SVG renderer |
Method Summary | |
protected void |
addLine(float x1,
float y1,
float x2,
float y2,
PDFColor sc,
float sw)
|
protected void |
addPolyline(java.util.Vector points,
int posx,
int posy,
PDFColor fc,
PDFColor sc,
float sw,
boolean close)
|
protected void |
addRect(float x,
float y,
float w,
float h,
float rx,
float ry,
PDFColor fc,
PDFColor sc,
float sw)
add a filled rectangle to the current stream |
protected float |
addSVGStr(FontState fs,
float currentX,
java.lang.String str,
boolean spacing)
Adds an svg string to the output. |
protected void |
handleSwitchElement(int posx,
int posy,
org.w3c.dom.svg.SVGSwitchElement ael)
Handles the SVG switch element. |
protected org.w3c.dom.svg.SVGElement |
locateDef(java.lang.String ref,
org.w3c.dom.svg.SVGElement currentElement)
Locates a defined element in an svg document. |
void |
renderElement(org.w3c.dom.svg.SVGElement area,
int posx,
int posy)
Main rendering selection. |
void |
renderGArea(org.w3c.dom.svg.SVGGElement area,
int posx,
int posy)
|
void |
renderImage(java.lang.String href,
float x,
float y,
float width,
float height)
|
protected void |
renderSVG(org.w3c.dom.svg.SVGSVGElement svg,
int x,
int y)
Renders an SVG element in an SVG document. |
protected void |
renderSymbol(org.w3c.dom.svg.SVGSymbolElement symbol,
int x,
int y)
A symbol has a viewbox and preserve aspect ratio. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String currentFontName
protected int currentFontSize
protected int currentYPosition
protected int currentXPosition
Constructor Detail |
public PCLSVGRenderer(PCLRenderer rend, FontState fs, java.lang.String font, int size, int xpos, int ypos, int ph, int xo)
Method Detail |
protected void renderSVG(org.w3c.dom.svg.SVGSVGElement svg, int x, int y)
public void renderGArea(org.w3c.dom.svg.SVGGElement area, int posx, int posy)
protected void handleSwitchElement(int posx, int posy, org.w3c.dom.svg.SVGSwitchElement ael)
protected void addLine(float x1, float y1, float x2, float y2, PDFColor sc, float sw)
protected void addRect(float x, float y, float w, float h, float rx, float ry, PDFColor fc, PDFColor sc, float sw)
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 addPolyline(java.util.Vector points, int posx, int posy, PDFColor fc, PDFColor sc, float sw, boolean close)
public void renderImage(java.lang.String href, float x, float y, float width, float height)
protected void renderSymbol(org.w3c.dom.svg.SVGSymbolElement symbol, int x, int y)
public void renderElement(org.w3c.dom.svg.SVGElement area, int posx, int posy)
protected float addSVGStr(FontState fs, float currentX, java.lang.String str, boolean spacing)
protected org.w3c.dom.svg.SVGElement locateDef(java.lang.String ref, org.w3c.dom.svg.SVGElement currentElement)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |