Class ShowTextWithPositioning


  • public class ShowTextWithPositioning
    extends java.lang.Object
    This example shows how to justify a string using the showTextWithPositioning method. First only spaces are adjusted, and then every letter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static float FONT_SIZE  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void doIt​(java.lang.String message, java.lang.String outfile)  
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

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

      • ShowTextWithPositioning

        private ShowTextWithPositioning()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • doIt

        public static void doIt​(java.lang.String message,
                                java.lang.String outfile)
                         throws java.io.IOException
        Throws:
        java.io.IOException