|
aXSL API 0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SvgGraphic
Interface for SVG Graphic objects.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.axsl.graphic.Graphic |
---|
Graphic.Compression, Graphic.Type |
Method Summary | |
---|---|
void |
awtPaint(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D.Float contentRectangle,
java.awt.geom.Rectangle2D.Float clipRectangle,
int pageHeight)
Paints the SVG on an AWT window. |
void |
drawPdfDocument(java.io.OutputStream output)
Draws the SVG as a complete PDF document. |
void |
drawPdfStreamContent(java.io.OutputStream output,
GraphicPdfContext pdfContext,
FontConsumer fontConsumer,
boolean strokeText)
Draws the SVG into the content of a PDF document. |
void |
drawPs(java.io.OutputStream output,
FontConsumer fontConsumer,
boolean strokeText,
boolean commentsEnabled)
Draws the SVG into a PostScript document. |
org.w3c.dom.svg.SVGDocument |
getSvgDocument()
Return the encapsulated SVGDocument. |
Methods inherited from interface org.axsl.graphic.Graphic |
---|
absoluteHeight, absoluteWidth, close, getBitsPerComponent, getColorSpace, getCompressionType, getContent, getContentSize, getGraphicType, getLinks, getMimeType, getName, getRawSamples, getTransparentColor, getUrl, isInverted, isTransparent, pixelHeight, pixelWidth |
Method Detail |
---|
org.w3c.dom.svg.SVGDocument getSvgDocument() throws GraphicException
GraphicException
- If an error occurs retrieving the SVG Document.void awtPaint(java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D.Float contentRectangle, java.awt.geom.Rectangle2D.Float clipRectangle, int pageHeight)
graphics
- The Graphics instance into which the painting should
be done.contentRectangle
- The rectangle to which the graphic should be
scaled during drawing.clipRectangle
- The rectangle to which the content should be clipped
after any scaling.pageHeight
- The height of the page, in millipoints.void drawPs(java.io.OutputStream output, FontConsumer fontConsumer, boolean strokeText, boolean commentsEnabled)
output
- The output stream to which the SVG should be written.fontConsumer
- The FontConsumer used for resolving and tracking
fonts.strokeText
- Indicates whether text should be converted to strokes
(true) or whether it should be drawn with fonts (false). In most cases
it is highly recommended that this value be set to false.commentsEnabled
- Indicates whether comments should be written to
the output.void drawPdfStreamContent(java.io.OutputStream output, GraphicPdfContext pdfContext, FontConsumer fontConsumer, boolean strokeText) throws GraphicException
output
- The output stream into which the SVG should be written.pdfContext
- The PDF context in which this content is being written.fontConsumer
- The FontConsumer used for resolving and tracking
fonts.strokeText
- Indicates whether text should be converted to strokes
(true) or whether it should be drawn with fonts (false). In most cases
it is highly recommended that this value be set to false.
GraphicException
- For errors writing the PDF document.void drawPdfDocument(java.io.OutputStream output) throws GraphicException
output
- The output stream into which the PDF should be written.
GraphicException
- For errors writing the PDF document.
|
aXSL API 0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.