Class Scroller


  • public class Scroller
    extends java.lang.Object
    A Utilities class to create a scrolling message
    • Constructor Summary

      Constructors 
      Constructor Description
      Scroller​(java.lang.String message, int width, int spaceBetween)
      Instantiates a new Scroller.
    • Method Summary

      Modifier and Type Method Description
      java.lang.String current()
      Current string.
      java.lang.String next()
      Get the next originalMessage
      java.lang.String previous()
      Previous string.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Scroller

        public Scroller​(java.lang.String message,
                        int width,
                        int spaceBetween)
        Instantiates a new Scroller.
        Parameters:
        message - the message
        width - the width
        spaceBetween - the space between
    • Method Detail

      • current

        public java.lang.String current()
        Current string.
        Returns:
        the string
      • next

        public java.lang.String next()
        Get the next originalMessage
        Returns:
        string
      • previous

        public java.lang.String previous()
        Previous string.
        Returns:
        the string