jmri
Class Scale

java.lang.Object
  extended by jmri.Scale

public class Scale
extends Object

Provide values and methods related to layout scale.

*

Since:
2.5.4
Author:
Dave Duchamp Copyright (C) 2009

Field Summary
static int G
           
static int HO
           
static int N
           
static int NUM_SCALES
           
static int O
           
static int S
           
static int TT
           
static int UK_N
           
static int UK_O
           
static int UK_OO
           
static int Z
           
 
Constructor Summary
Scale()
           
 
Method Summary
static double getScaleFactor(int scale)
          scaleFactor is a number less than 1 representing the reduction from full size.
static String getScaleID(int scale)
          Provide a standard human-readable indication of scale that includes both name (letter) and reduction ratio.
static String getShortScaleID(int scale)
          Provide the short name for the scale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Z

public static final int Z
See Also:
Constant Field Values

N

public static final int N
See Also:
Constant Field Values

TT

public static final int TT
See Also:
Constant Field Values

HO

public static final int HO
See Also:
Constant Field Values

S

public static final int S
See Also:
Constant Field Values

O

public static final int O
See Also:
Constant Field Values

G

public static final int G
See Also:
Constant Field Values

UK_N

public static final int UK_N
See Also:
Constant Field Values

UK_OO

public static final int UK_OO
See Also:
Constant Field Values

UK_O

public static final int UK_O
See Also:
Constant Field Values

NUM_SCALES

public static final int NUM_SCALES
See Also:
Constant Field Values
Constructor Detail

Scale

public Scale()
Method Detail

getScaleFactor

public static double getScaleFactor(int scale)
scaleFactor is a number less than 1 representing the reduction from full size.


getScaleID

public static String getScaleID(int scale)
Provide a standard human-readable indication of scale that includes both name (letter) and reduction ratio.


getShortScaleID

public static String getShortScaleID(int scale)
Provide the short name for the scale.



Copyright © 1997 - 2009 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads