public abstract class FormGenerator extends Object
| Constructor and Description |
|---|
FormGenerator(String formName,
String title,
Dimension2D dimensions)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 Rectangle2D |
getBBox()
Returns the form's bounding box.
|
Dimension2D |
getDimensions()
returns the form's dimensions.
|
String |
getFormName()
Returns the form's name.
|
protected AffineTransform |
getMatrix()
Returns the matrix for use in the form.
|
String |
getTitle()
Returns the form's title.
|
public FormGenerator(String formName, String title, Dimension2D dimensions)
formName - the form's nametitle - the form's title or nulldimensions - the form's dimensionspublic String getFormName()
public String getTitle()
public Dimension2D getDimensions()
protected abstract void generatePaintProc(PSGenerator gen) throws IOException
gen - the PostScript generatorIOException - if an I/O error occursprotected void generateAdditionalDataStream(PSGenerator gen) throws IOException
gen - the PostScript generatorIOException - if an I/O error occursprotected AffineTransform getMatrix()
protected Rectangle2D getBBox()
public PSResource generate(PSGenerator gen) throws IOException
gen - the PostScript generatorIOException - if an I/O error occursCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.