Class PostscriptWriter

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, Serializable

    public class PostscriptWriter
    extends ScalableComponentWriter
    Outputs EPS files.

    Valid options are:

    -D (property: debug)
             If set to true, scheme may output additional info to the console.
    -file <> (property: file)
             The file to save the image to.
             default: .
    -scaling (property: scalingEnabled)
             If set to true, then scaling will be used.
    -scale-x <double> (property: XScale)
             The scaling factor for the X-axis.
             default: 1.0
    -scale-y <double> (property: YScale)
             The scaling factor for the Y axis.
             default: 1.0
    -custom-dimensions (property: useCustomDimensions)
             Whether to use custom dimensions or use the component's ones.
    -custom-width <int> (property: customWidth)
             The custom width.
             default: -1
    -custom-height <int> (property: customHeight)
             The custom height.
             default: -1

    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. :-(

    Based on weka.gui.visualize.PostscriptWriter
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    PostscriptGraphics, Serialized Form