rails.ui.swing
Class Scale

java.lang.Object
  extended by rails.ui.swing.Scale

public final class Scale
extends java.lang.Object

Class Scale holds static information used to scale all GUI elements.


Field Summary
static double fontScale
           
static int scale
           
 
Constructor Summary
Scale()
           
 
Method Summary
static void fitScreenRes()
          Set the scale so that the MasterBoard fits on the screen.
static int get()
           
static double getFontScale()
           
static void initFromConfiguration()
           
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

public static int scale

fontScale

public static double fontScale
Constructor Detail

Scale

public Scale()
Method Detail

get

public static int get()

set

public static void set(int scale)

getFontScale

public static double getFontScale()

initFromConfiguration

public static void initFromConfiguration()

fitScreenRes

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