org.geotoolkit.io.wkt
Class Colors
Object
Colors
- All Implemented Interfaces:
- Serializable
public class Colors
- extends Object
- implements Serializable
The colors to use for formatting Well Known Text (WKT) objects.
- Since:
- 3.00
- Version:
- 3.00
- Author:
- Martin Desruisseaux (Geomatys)
- See Also:
- Serialized Form
- Module:
|
Nested Class Summary |
static class |
Colors.Element
Keys for syntatic elements to be colorized. |
|
Field Summary |
static Colors |
DEFAULT
The immutable default set of colors. |
|
Constructor Summary |
Colors()
Creates a new, initially empty, set of colors. |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final Colors DEFAULT
- The immutable default set of colors.
Colors
public Colors()
- Creates a new, initially empty, set of colors.
set
public void set(Colors.Element key,
X364 color)
- Sets the color of the given syntatic element.
- Parameters:
key - The syntatic element for which to set the color.color - The color to give to the specified element.
get
public X364 get(Colors.Element key)
- Returns the color for the given syntatic element.
- Parameters:
key - The syntatic element for which to get the color.
- Returns:
- The color of the specified element, or
null if none.
Copyright © 2009-2011 Geotoolkit.org. All Rights Reserved.