|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.ps.FormGenerator
public abstract class FormGenerator
Abstract helper class for generating PostScript forms.
Constructor Summary | |
---|---|
FormGenerator(java.lang.String formName,
java.lang.String title,
java.awt.geom.Dimension2D dimensions)
Main constructor. |
Method Summary | |
---|---|
PSResource |
generate(PSGenerator gen)
Generates the PostScript form. |
protected void |
generateAdditionalDataStream(PSGenerator gen)
Generates some PostScript code right after the form definition (used primarily for bitmap data). |
protected abstract void |
generatePaintProc(PSGenerator gen)
Generates the PostScript code for the PaintProc of the form. |
protected java.awt.geom.Rectangle2D |
getBBox()
Returns the form's bounding box. |
java.awt.geom.Dimension2D |
getDimensions()
returns the form's dimensions. |
java.lang.String |
getFormName()
Returns the form's name. |
protected java.awt.geom.AffineTransform |
getMatrix()
Returns the matrix for use in the form. |
java.lang.String |
getTitle()
Returns the form's title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormGenerator(java.lang.String formName, java.lang.String title, java.awt.geom.Dimension2D dimensions)
formName
- the form's nametitle
- the form's title or nulldimensions
- the form's dimensionsMethod Detail |
---|
public java.lang.String getFormName()
public java.lang.String getTitle()
public java.awt.geom.Dimension2D getDimensions()
protected abstract void generatePaintProc(PSGenerator gen) throws java.io.IOException
gen
- the PostScript generator
java.io.IOException
- if an I/O error occursprotected void generateAdditionalDataStream(PSGenerator gen) throws java.io.IOException
gen
- the PostScript generator
java.io.IOException
- if an I/O error occursprotected java.awt.geom.AffineTransform getMatrix()
protected java.awt.geom.Rectangle2D getBBox()
public PSResource generate(PSGenerator gen) throws java.io.IOException
gen
- the PostScript generator
java.io.IOException
- if an I/O error occurs
|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |