|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.ps.FormGenerator
org.apache.xmlgraphics.ps.ImageFormGenerator
public class ImageFormGenerator
Abstract helper class for generating PostScript forms.
Constructor Summary | |
---|---|
ImageFormGenerator(java.lang.String formName,
java.lang.String title,
java.awt.geom.Dimension2D dimensions,
java.awt.Dimension dimensionsPx,
ImageEncoder encoder,
java.awt.color.ColorSpace colorSpace,
boolean invertImage)
Main constructor. |
|
ImageFormGenerator(java.lang.String formName,
java.lang.String title,
java.awt.geom.Dimension2D dimensions,
java.awt.Dimension dimensionsPx,
ImageEncoder encoder,
java.awt.color.ColorSpace colorSpace,
int bitsPerComponent,
boolean invertImage)
Main constructor. |
|
ImageFormGenerator(java.lang.String formName,
java.lang.String title,
java.awt.geom.Dimension2D dimensions,
java.awt.image.RenderedImage image,
boolean invertImage)
Main constructor. |
Method Summary | |
---|---|
protected void |
generateAdditionalDataStream(PSGenerator gen)
Generates some PostScript code right after the form definition (used primarily for bitmap data). |
protected void |
generatePaintProc(PSGenerator gen)
Generates the PostScript code for the PaintProc of the form. |
protected java.lang.String |
getDataName()
Returns the name of the data segment associated with this image form. |
Methods inherited from class org.apache.xmlgraphics.ps.FormGenerator |
---|
generate, getBBox, getDimensions, getFormName, getMatrix, getTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageFormGenerator(java.lang.String formName, java.lang.String title, java.awt.geom.Dimension2D dimensions, java.awt.image.RenderedImage image, boolean invertImage)
formName
- the form's nametitle
- the form's title or nulldimensions
- the form's dimensions in units (usually points)image
- the imageinvertImage
- true if the image shall be invertedpublic ImageFormGenerator(java.lang.String formName, java.lang.String title, java.awt.geom.Dimension2D dimensions, java.awt.Dimension dimensionsPx, ImageEncoder encoder, java.awt.color.ColorSpace colorSpace, int bitsPerComponent, boolean invertImage)
formName
- the form's nametitle
- the form's title or nulldimensions
- the form's dimensions in units (usually points)dimensionsPx
- the form's dimensions in pixelsencoder
- the image encodercolorSpace
- the target color spacebitsPerComponent
- the bits per componentinvertImage
- true if the image shall be invertedpublic ImageFormGenerator(java.lang.String formName, java.lang.String title, java.awt.geom.Dimension2D dimensions, java.awt.Dimension dimensionsPx, ImageEncoder encoder, java.awt.color.ColorSpace colorSpace, boolean invertImage)
formName
- the form's nametitle
- the form's title or nulldimensions
- the form's dimensions in units (usually points)dimensionsPx
- the form's dimensions in pixelsencoder
- the image encodercolorSpace
- the target color spaceinvertImage
- true if the image shall be invertedMethod Detail |
---|
protected java.lang.String getDataName()
protected void generatePaintProc(PSGenerator gen) throws java.io.IOException
generatePaintProc
in class FormGenerator
gen
- the PostScript generator
java.io.IOException
- if an I/O error occursprotected void generateAdditionalDataStream(PSGenerator gen) throws java.io.IOException
generateAdditionalDataStream
in class FormGenerator
gen
- the PostScript generator
java.io.IOException
- if an I/O error occurs
|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |