VASSAL
Class Info

java.lang.Object
  |
  +--VASSAL.Info

public final class Info
extends java.lang.Object

Class for storing release-related information


Method Summary
static int compareVersions(java.lang.String v1, java.lang.String v2)
          A valid verson format is "w.x.y[bz]", where 'w','x','y', and 'z' are integers.
static java.awt.Rectangle getScreenBounds(java.awt.Component c)
          If running JRE 1.4, we can take into account the screen insets (i.e.
static java.lang.String getVersion()
           
static boolean is2dEnabled()
           
static boolean isDndEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVersion

public static java.lang.String getVersion()
Returns:
the version of the VASSAL engine

isDndEnabled

public static boolean isDndEnabled()
Returns:
true if this platform supports Swing Drag and Drop

getScreenBounds

public static java.awt.Rectangle getScreenBounds(java.awt.Component c)
If running JRE 1.4, we can take into account the screen insets (i.e. Windows taskbar)
Returns:
 

is2dEnabled

public static boolean is2dEnabled()
Returns:
true if this platform supports Java2D

compareVersions

public static int compareVersions(java.lang.String v1,
                                  java.lang.String v2)
A valid verson format is "w.x.y[bz]", where 'w','x','y', and 'z' are integers.
Returns:
a negative number if v2 is a later version the v1, a positive number if an earlier version, or zero if the versions are the same.