Class DotPrinter<T>

java.lang.Object
VASSAL.tools.concurrent.listener.DotPrinter<T>
All Implemented Interfaces:
EventListener<T>

public class DotPrinter<T> extends Object implements EventListener<T>
Prints dots to a stream in response to events.
Since:
3.2.0
Author:
Joel Uckelman
  • Field Details

  • Constructor Details

    • DotPrinter

      public DotPrinter(PrintStream out)
      Creates a DotPrinter.
      Parameters:
      out - the PrintStream which receives the dots
  • Method Details

    • receive

      public void receive(Object src, T event)
      Receive notification of an event.
      Specified by:
      receive in interface EventListener<T>
      Parameters:
      src - the source of the event
      event - the event