|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--WISA.wisa3D.util.Util
The Util-class holds a couple of methods which make working with Wisa3D much easier.
| Constructor Summary | |
Util()
|
|
| Method Summary | |
static boolean |
arrayCheck(java.lang.Object[] array)
Checks the passed array if it is valid. |
static void |
centerWindow(java.awt.Window window)
Centers the window on the screen. |
static int |
concatArray(java.lang.Object[] source1,
java.lang.Object[] source2,
java.lang.Object[] target)
Concatenates two arrays. |
static visad.ScalarMap[] |
getScalarMapByDisplayType(visad.ScalarMap[] maps,
visad.DisplayRealType type)
Searches in the passed ScalarMap-array for those ScalarMaps with the also passed DisplayRealType and returns them in an array or null if no such exists. |
static visad.MathType[] |
getSubTypes(visad.MathType type,
boolean domain)
Performs a recursive search and lists all basic MathTypes which are contained in the passed MathType. |
static java.awt.Window |
getWindow(java.awt.Component component)
Returns the Window the component is in. |
static int |
subArray(java.lang.Object[] source,
java.lang.Object[] subsource,
java.lang.Object[] target)
Removes all elements which are both included in source and subsource from source and stores the result in target. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Util()
| Method Detail |
public static int concatArray(java.lang.Object[] source1,
java.lang.Object[] source2,
java.lang.Object[] target)
source1 - The first source-array whose data is copied to the
beginning of the target-array.source2 - The second source-array whose data is copied to the
end of the target-array.target - The target-array.
public static int subArray(java.lang.Object[] source,
java.lang.Object[] subsource,
java.lang.Object[] target)
source - The initial array.subsource - The array which holds the elements to removetarget - The target array. After the method is finished here are all
elements contained in source but not in subsource.
public static visad.ScalarMap[] getScalarMapByDisplayType(visad.ScalarMap[] maps,
visad.DisplayRealType type)
maps - The ScalarMaps to be searched.type - The DisplayRealType to be searched for.
public static visad.MathType[] getSubTypes(visad.MathType type,
boolean domain)
type - The MathType to be scanned.domain - If true even the domain-set will be scanned.
public static void centerWindow(java.awt.Window window)
window - The window to be centered.public static boolean arrayCheck(java.lang.Object[] array)
public static java.awt.Window getWindow(java.awt.Component component)
component - The component to be inspected.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||