Class Scale


  • public final class Scale
    extends java.lang.Object
    Class Scale holds static information used to scale all GUI elements.
    Author:
    David Ripton
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static int scale  
    • Constructor Summary

      Constructors 
      Constructor Description
      Scale()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void fitScreenRes()
      Set the scale so that the MasterBoard fits on the screen.
      static int get()  
      (package private) static void set​(int scale)  
      • Methods inherited from class java.lang.Object

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

      • scale

        static int scale
    • Constructor Detail

      • Scale

        public Scale()
    • Method Detail

      • get

        public static int get()
      • set

        static void set​(int scale)
      • fitScreenRes

        static void fitScreenRes()
        Set the scale so that the MasterBoard fits on the screen. Default scale should be 15 for screen resolutions with height 1000 or more. For less, scale it down linearly.