Package VASSAL.tools.concurrent.listener
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 Summary
Fields Modifier and Type Field Description protected PrintStreamout -
Constructor Summary
Constructors Constructor Description DotPrinter(PrintStream out)Creates aDotPrinter. -
Method Summary
-
Field Details
-
out
-
-
Constructor Details
-
DotPrinter
Creates aDotPrinter.- Parameters:
out- thePrintStreamwhich receives the dots
-
-
Method Details
-
receive
Receive notification of an event.- Specified by:
receivein interfaceEventListener<T>- Parameters:
src- the source of the eventevent- the event
-