|
aXSL API 0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A PDF Content Stream.
| Method Summary | |
void |
close()
Closes any open logical structures in the content so that it is ready to be output. |
void |
drawGraphic(java.awt.geom.Rectangle2D.Float contentRectangle,
java.awt.geom.Rectangle2D.Float clipRectangle,
Graphic graphic)
Draws a graphic at the current location in the content stream. |
void |
drawLine(java.awt.geom.Line2D.Float line,
float thickness,
float[] dashArray,
float dashPhase,
PDFPathPaint stroke)
Draws a line at the current location in the content stream. |
void |
drawRectangle(java.awt.geom.Rectangle2D.Float rectangle,
boolean stroke,
PDFPathPaint strokePaint,
boolean fill,
PDFPathPaint fillPaint)
Draws a rectangle at the current location in the content stream. |
void |
drawSVGDocument(org.w3c.dom.svg.SVGDocument doc,
java.awt.geom.Rectangle2D.Float contentRectangle,
java.awt.geom.Rectangle2D.Float clipRectangle,
FontConsumer fontConsumer,
boolean strokeSVGText)
Draws an SVG graphic at the current location in the content stream. |
void |
drawText(java.lang.String text)
Draws text at the current location in the content stream. |
void |
setCharacterSpacing(float newCharacterSpacing)
Sets the character spacing. |
void |
setCursor(float originX,
float originY)
Sets the location of the cursor. |
void |
setFont(PDFFont newFont,
float newFontSize)
Sets the font and font size. |
void |
setStrokeColor(PDFColor newStrokeColor)
Sets the stroke color. |
void |
setWordSpacing(float newWordSpacing)
Sets the word spacing. |
| Method Detail |
public void drawLine(java.awt.geom.Line2D.Float line,
float thickness,
float[] dashArray,
float dashPhase,
PDFPathPaint stroke)
line - The line to be drawn.thickness - The thickness of the line to be drawn.dashArray - The dash array to be used for drawing this line.
See the PDF Documentation for information about this array.dashPhase - The dash phase to be used for drawing this line.
See the PDF Documentation for information about this value.stroke - The paint that should be used for stroking this line.
public void drawRectangle(java.awt.geom.Rectangle2D.Float rectangle,
boolean stroke,
PDFPathPaint strokePaint,
boolean fill,
PDFPathPaint fillPaint)
rectangle - The rectangle to be drawn.stroke - Indicates whether the rectangle should be stroked.strokePaint - The paint that should be used to stroke the rectangle.
Ignored if stroke is false.fill - Indicates whether the rectangle should be filled.fillPaint - The paint that should be used to fill the rectangle.
Ignored if fill is false.
public void drawGraphic(java.awt.geom.Rectangle2D.Float contentRectangle,
java.awt.geom.Rectangle2D.Float clipRectangle,
Graphic graphic)
contentRectangle - The rectangle for the content.clipRectangle - The rectangle to which the content rectangle should
be clipped.graphic - The Graphic which should be drawn.
public void drawSVGDocument(org.w3c.dom.svg.SVGDocument doc,
java.awt.geom.Rectangle2D.Float contentRectangle,
java.awt.geom.Rectangle2D.Float clipRectangle,
FontConsumer fontConsumer,
boolean strokeSVGText)
doc - The SVG document to draw.contentRectangle - The rectangle for the content.clipRectangle - The rectangle to which the content rectangle should
be clipped.fontConsumer - The FontConsumer which should be used to resolve
fonts.strokeSVGText - Indicates whether SVG text should be stroked.public void setStrokeColor(PDFColor newStrokeColor)
newStrokeColor - The new stroke color.public void setWordSpacing(float newWordSpacing)
newWordSpacing - The new word spacing, in points.public void setCharacterSpacing(float newCharacterSpacing)
newCharacterSpacing - The new character spacing, in points.
public void setCursor(float originX,
float originY)
originX - The new X (horizontal) coordinate of the cursor, in
points.originY - The new Y (vertical) coordinate of the cursor, in points.
public void setFont(PDFFont newFont,
float newFontSize)
newFont - The new font.newFontSize - The new font size.public void drawText(java.lang.String text)
text - The text to be written into the stream.public void close()
|
aXSL API 0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This documentation was created September 6 2006 by The aXSL Group and may be freely copied. See license for details.