org.deegree.framework.util
Class ColorUtils
java.lang.Object
  
org.deegree.framework.util.ColorUtils
public class ColorUtils
- extends Object
 
offeres some methods for handling colors
- Since:
 
  - 2.0
 
- Version:
 
  - $Revision: 6259 $, 1.0. $Revision: 6259 $, $Date: 2007-03-20 10:15:15 +0100 (Di, 20 Mär 2007) $
 
- Author:
 
  - Andreas Poth, last edited by: $Author: bezema $
 
 
| 
Method Summary | 
static Color | 
getRandomColor(boolean useTransparency)
 
          returns a random color | 
static String | 
toHexCode(String prefix,
                   Color color)
 
          transforms the color of the request from java.awt.Color to the hexadecimal representation as
 in an OGC conform WMS-GetMap request (e.g. white == "#ffffff"). | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ColorUtils
public ColorUtils()
getRandomColor
public static Color getRandomColor(boolean useTransparency)
- returns a random color
- Parameters:
 useTransparency - 
- Returns:
 - a random color
 
 
 
toHexCode
public static String toHexCode(String prefix,
                               Color color)
- transforms the color of the request from java.awt.Color to the hexadecimal representation as
 in an OGC conform WMS-GetMap request (e.g. white == "#ffffff").
- Returns:
 - the color as hexadecimal representation
 
 
 
				an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net