Class Scale

java.lang.Object
net.sf.colossus.gui.Scale

public final class Scale extends 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
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
    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 Details

    • scale

      static int scale
  • Constructor Details

    • Scale

      public Scale()
  • Method Details

    • 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.