Package VASSAL
Class Info
java.lang.Object
VASSAL.Info
public final class Info extends Object
Class for storing release-related information
-
Field Summary
Fields Modifier and Type Field Description static StringjavaBinPathThe path to the JVM binary. -
Method Summary
Modifier and Type Method Description static intcompareVersions(String v0, String v1)Deprecated.static FilegetBaseDir()Returns the directory where VASSAL is installed.static FilegetBinDir()static FilegetConfDir()static FilegetDocDir()static FilegetHomeDir()static intgetInstanceID()Returns the instance id for this process.static FilegetPrefsDir()static RectanglegetScreenBounds(Component c)static FilegetTempDir()static StringgetVersion()A valid version format is "w.x.[y|bz]", where 'w','x','y', and 'z' are integers.static booleanhasOldFormat(String version)static booleanis2dEnabled()Deprecated.since Java 1.4 is now requiredstatic booleanisDndEnabled()Deprecated.Check is no longer necessary since Java 1.4+ is required.static booleanisMacOSX()Deprecated.UseSystemUtils.IS_OS_MAC_OSXinsteadstatic booleanisModuleTooNew(String version)
-
Field Details
-
javaBinPath
The path to the JVM binary.
-
-
Method Details
-
getVersion
A valid version format is "w.x.[y|bz]", where 'w','x','y', and 'z' are integers. In the version number, w.x are the major/minor release number, y is the bug-fix release number, and the 'b' indicates a beta release, e.g. 3.0b2.- Returns:
- the version of the VASSAL engine.
-
getInstanceID
public static int getInstanceID()Returns the instance id for this process. The instance id will be be unique across the Module Manager and its children. -
getScreenBounds
- Returns:
- size of screen accounting for the screen insets (i.e. Windows taskbar)
-
isMacOSX
Deprecated.UseSystemUtils.IS_OS_MAC_OSXinstead -
isModuleTooNew
-
hasOldFormat
-
compareVersions
Deprecated.Compares VASSAL version strings. This method is guaranteed to correctly compare the current version string with any other version string. It is not guaranteed to correctly compare two arbitrary version strings.- Returns:
- negative if
v0 < v1, positive ifv0 > v1, and zero ifv0 == v1or if the ordering cannot be determined from the parseable parts of the twoStrings.
-
getBaseDir
Returns the directory where VASSAL is installed.- Returns:
- a
Filerepresenting the directory
-
getBinDir
-
getDocDir
-
getConfDir
-
getTempDir
-
getPrefsDir
-
getHomeDir
-
isDndEnabled
Deprecated.Check is no longer necessary since Java 1.4+ is required.- Returns:
- true if this platform supports Swing Drag and Drop
-
is2dEnabled
Deprecated.since Java 1.4 is now required- Returns:
- true if this platform supports Java2D
-