public final class JaxoInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOT_EXTENSION
Extension of JaxoDraw data files, with a preceding dot.
|
static java.lang.String |
EXTENSION
Extension of JaxoDraw data files.
|
static java.lang.String |
JAVA_CLASSPATH
The current Java class path.
|
static java.lang.String |
JAVA_HOME
The directory where Java is installed on the current machine.
|
static java.lang.String |
JAVA_RUNTIME_VERSION
The current Java runtime version.
|
static java.lang.String |
JAVA_VERSION
The current Java version.
|
static java.lang.String |
LOG_DIR
The absolute path of the directory where log records are stored.
|
static java.lang.String |
OS_ARCH
The architecture of the current operating system.
|
static java.lang.String |
OS_NAME
The name of the current operating system.
|
static java.lang.String |
OS_VERSION
The version of the current operating system.
|
static java.lang.String |
PLUGIN_DIR
The absolute path of the directory where plugins are stored.
|
static java.awt.Dimension |
SCREEN_SIZE
The screen size.
|
static java.lang.String |
SETTINGS_DIR
The absolute path of the directory where user settings are stored.
|
static java.lang.String |
USER_HOME
The current user's home directory.
|
static java.lang.String |
USER_NAME
The current user.
|
static java.lang.String |
VERSION
The current version of JaxoDraw.
|
static java.lang.String |
VERSION_NUMBER
The version number of this release of JaxoDraw.
|
static java.lang.String |
WEB_SITE
The JaxoDraw web site.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
about(java.lang.String plugins)
Returns a string with some 'About' infos.
|
static int |
compareVersion(java.lang.String version)
Compares the given version String to the current version of JaxoDraw.
|
static int |
compareVersions(java.lang.String v1,
java.lang.String v2)
Compares two version Strings.
|
static java.lang.String |
help()
Returns a help message.
|
static java.lang.String |
info()
Returns an info message.
|
static java.lang.String |
sysInfo()
Returns a string with some system infos.
|
public static final java.lang.String USER_NAME
public static final java.lang.String USER_HOME
public static final java.lang.String OS_NAME
public static final java.lang.String OS_ARCH
public static final java.lang.String OS_VERSION
public static final java.lang.String JAVA_VERSION
public static final java.lang.String JAVA_RUNTIME_VERSION
public static final java.lang.String JAVA_HOME
public static final java.lang.String JAVA_CLASSPATH
public static final java.awt.Dimension SCREEN_SIZE
public static final java.lang.String VERSION_NUMBER
public static final java.lang.String VERSION
public static final java.lang.String WEB_SITE
public static final java.lang.String EXTENSION
public static final java.lang.String DOT_EXTENSION
public static final java.lang.String SETTINGS_DIR
public static final java.lang.String PLUGIN_DIR
public static final java.lang.String LOG_DIR
public static java.lang.String help()
public static java.lang.String info()
public static java.lang.String sysInfo()
public static java.lang.String about(java.lang.String plugins)
plugins
- available plugins.public static int compareVersion(java.lang.String version)
compareVersions
for a specification of a valid version String.version
- the version to compare to. If this is null,
+1 is returned, ie the current version is assumed greater.public static int compareVersions(java.lang.String v1, java.lang.String v2)
A valid version String must be of the form
major.minor[.bugfix][-qualifier]
where the quantities in square brackets are optional. The major, minor
and bugfix parts have to be non-negative integers.
For the comparison, the major, minor and bugfix arguments are compared as integers in this order. The first ocurring inequality is returned. A missing bugfix counts as 0.
If all integers are equal, the qualifiers are compared lexigraphically as Strings. If one version has a qualifier while the other has none, the version with the qualifier is considered smaller.
Examples:
3.0.1 > 2.10.221
3.0-SNAPSHOT < 3.0
2.1.0 == 2.1
1.2.3-abc < 1.2.3-xyz
v1
- the first version to compare. Cannot be null.v2
- the second version to compare. Cannot be null.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.