类 PostscriptWriter

java.lang.Object
weka.gui.visualize.JComponentWriter
weka.gui.visualize.PostscriptWriter

public class PostscriptWriter extends JComponentWriter
This class takes any Component and outputs it to a Postscript file.

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

版本:
$Revision: 7059 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • PostscriptWriter

      public PostscriptWriter()
      initializes the object
    • PostscriptWriter

      public PostscriptWriter(JComponent c)
      initializes the object with the given Component
      参数:
      c - the component to print in the output format
    • PostscriptWriter

      public PostscriptWriter(JComponent c, File f)
      initializes the object with the given Component and filename
      参数:
      c - the component to print in the output format
      f - the file to store the output in
  • 方法详细资料

    • getDescription

      public String getDescription()
      returns the name of the writer, to display in the FileChooser. must be overridden in the derived class.
      指定者:
      getDescription 在类中 JComponentWriter
      返回:
      the name of the writer
    • getExtension

      public String getExtension()
      returns the extension (incl. ".") of the output format, to use in the FileChooser. must be overridden in the derived class.
      指定者:
      getExtension 在类中 JComponentWriter
      返回:
      the file extension
    • generateOutput

      public void generateOutput() throws Exception
      generates the actual output
      抛出:
      Exception - if something goes wrong
    • main

      public static void main(String[] args) throws Exception
      for testing only
      抛出:
      Exception