Package sc2002.FCS1.grp2.helpers
Class ReceiptPrinter
Object
ReceiptPrinter
A visual effect to emulate the feel of printing a receipt with a dot matrix printer.
Instead of showing all texts at once, it prints it out at about 30ms per character.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateThis class should only be used statically with theprint(String)method. -
Method Summary
-
Constructor Details
-
ReceiptPrinter
private ReceiptPrinter()This class should only be used statically with theprint(String)method.
-
-
Method Details
-
print
Invoke this to print text character by character, emulating the effect of a dot matrix printer.- Parameters:
contents- The text to be printed.
-