public class PostscriptWriter extends JComponentWriter
Note:
This writer does not work with Components that rely on clipping, like e.g.
scroll lists. Here the complete list is printed, instead of only in the
borders of the scroll list (may overlap other components!). This is due to
the way, clipping is handled in Postscript. There was no easy way around
this issue. :-(
PostscriptGraphics
Constructor and Description |
---|
PostscriptWriter()
initializes the object
|
PostscriptWriter(javax.swing.JComponent c)
initializes the object with the given Component
|
PostscriptWriter(javax.swing.JComponent c,
java.io.File f)
initializes the object with the given Component and filename
|
Modifier and Type | Method and Description |
---|---|
void |
generateOutput()
generates the actual output
|
java.lang.String |
getDescription()
returns the name of the writer, to display in the FileChooser.
|
java.lang.String |
getExtension()
returns the extension (incl.
|
static void |
main(java.lang.String[] args)
for testing only
|
getComponent, getCustomHeight, getCustomWidth, getFile, getScalingEnabled, getUseCustomDimensions, getXScale, getYScale, setComponent, setCustomHeight, setCustomWidth, setFile, setScale, setScalingEnabled, setUseCustomDimensions, toOutput, toOutput, toOutput
public PostscriptWriter()
public PostscriptWriter(javax.swing.JComponent c)
c
- the component to print in the output formatpublic PostscriptWriter(javax.swing.JComponent c, java.io.File f)
c
- the component to print in the output formatf
- the file to store the output inpublic java.lang.String getDescription()
getDescription
in class JComponentWriter
public java.lang.String getExtension()
getExtension
in class JComponentWriter
public void generateOutput() throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception