public class IlvChartUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
checkNullParam(String argName,
Object arg)
Checks whether a parameter is
null and throws an exception. |
static int |
compareToJavaVersion(int i1,
int i2,
int i3)
Compare the specified Java version with the current version.
|
static Cursor |
createCursor(Image image,
Point hotspot,
String name,
int defaultType)
Creates a custom cursor using the specified image.
|
static int[] |
getJavaVersion()
Returns the Java version.
|
static void |
registerKey(String key)
Deprecated.
Beginning with JViews 6.0, runtime keys are stored in a file
called "deploy.txt" inside the application jar file. This
method has no effect any more. You need to use the method
ilog.views.util.IlvProductUtil#registerApplication
instead. |
static String |
relativeURL(URL baseURL,
URL url)
Returns a relative URL based on a specified base URL.
|
public static Cursor createCursor(Image image, Point hotspot, String name, int defaultType)
image
- The image used to create the cursor.hotspot
- The x and y of the cursor hotspot.name
- The name of the cursor.defaultType
- The type of the predefined cursor to return if the
creation failed.@Deprecated public static final void registerKey(String key)
ilog.views.util.IlvProductUtil#registerApplication
instead.public static void checkNullParam(String argName, Object arg)
null
and throws an exception.argName
- The name of the parameter.arg
- The parameter to check.IllegalArgumentException
- The specified parameter is null
.public static int compareToJavaVersion(int i1, int i2, int i3)
For example, to check whether the current version is at least 1.3
:
compareToJavaVersion(1,3,0)>=0
.
i1
- First number in version.i2
- Second number in version.i3
- Third number in version.public static int[] getJavaVersion()
java.version
system
property. Then, it splits the version into a triplet of 3 integers.
For example:
JDK 1.5.0: {1, 5, 0} JDK 1.6.0: {1, 6, 0}
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.