Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| deegree 2.4 (2010/11/11 10:47 build-27-official)
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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: 18195 $, 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
  Andreas Poth, last edited by: $Author: mschneider $

Constructor Summary
`ColorUtils()`

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`

Constructor Detail

### ColorUtils

    public ColorUtils()

Method Detail

### 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").

  Parameters:
    `prefix` - to add to the hex
    `color` - to get hex code from
  Returns:
    the color as hexadecimal representation

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| deegree 2.4 (2010/11/11 10:47 build-27-official)
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org