Class TextAreaWriter

java.lang.Object
java.io.Writer
loci.plugins.config.TextAreaWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class TextAreaWriter extends Writer
Writer implementation that writes to a JTextArea document.
Author:
Curtis Rueden ctrueden at wisc.edu
  • Field Details

    • textArea

      private JTextArea textArea
      Text area component to which output should be written.
  • Constructor Details

    • TextAreaWriter

      public TextAreaWriter(JTextArea textArea)
      Constructs a new TextAreaWriter around the given text area component.
  • Method Details

    • close

      public void close()
      Closing a TextAreaWriter does nothing.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class Writer
    • flush

      public void flush()
      Flushing a TextAreaWriter does nothing .
      Specified by:
      flush in interface Flushable
      Specified by:
      flush in class Writer
    • write

      public void write(char[] cbuf, int off, int len)
      Writes the given characters to the associated text area component.
      Specified by:
      write in class Writer