net.sf.colossus.gui
Class Scale

java.lang.Object
  extended by net.sf.colossus.gui.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
(package private) static int scale
           
 
Constructor Summary
Scale()
           
 
Method Summary
(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.