com.tensegrity.composite.geometry
Class GeometryUtilities

java.lang.Object
  extended bycom.tensegrity.composite.geometry.GeometryUtilities

public class GeometryUtilities
extends java.lang.Object

Contains static utility functions useful when working with geometries.

Version:
$Id: GeometryUtilities.java,v 1.9 2005/07/20 15:55:20 BurkhardWick Exp $
Author:
MichaelKegel

Method Summary
static Boundary computeBoundingBoxFromCoordinateSystem(CoordinateSystem cs)
           
static java.lang.String[] getStrings(java.lang.String s, java.lang.String delimiter)
          Returns a list of trimmed Strings found in the parameter String separated by the specified delimiter.
static java.lang.String toStringGeometryDescriptorType(int type)
          Translates the geometry descriptor type into a human readable text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeBoundingBoxFromCoordinateSystem

public static final Boundary computeBoundingBoxFromCoordinateSystem(CoordinateSystem cs)

toStringGeometryDescriptorType

public static final java.lang.String toStringGeometryDescriptorType(int type)
Translates the geometry descriptor type into a human readable text.

Parameters:
type - the geometry descriptor type to translate
Returns:
String the human readable text
See Also:
GeometryDescriptor.COMPOSITE_DESCRIPTOR, GeometryDescriptor.COMPOSITELINE_DESCRIPTOR, GeometryDescriptor.COMPOSITEGROUP_DESCRIPTOR

getStrings

public static final java.lang.String[] getStrings(java.lang.String s,
                                                  java.lang.String delimiter)
Returns a list of trimmed Strings found in the parameter String separated by the specified delimiter.
Note:
A Delimiter can be a single character or a list of characters. Its 1:1 passed by the usedStringTokenizer. See StringTokenizer on how to use these delimiters. getStrings returns { "This", "is", "a", "test"} when call like getString("This is a test", ",.;: ");

Parameters:
s - the string to check.
delimiter - the list of characters to be used as delimiter.
Returns:
String[]


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.