org.geotoolkit.io.wkt
Class Colors

Object
  extended by 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:
referencing/geotk-referencing (download)    View source code for this class

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.
 
Method Summary
 X364 get(Colors.Element key)
          Returns the color for the given syntatic element.
 void set(Colors.Element key, X364 color)
          Sets the color of the given syntatic element.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final Colors DEFAULT
The immutable default set of colors.

Constructor Detail

Colors

public Colors()
Creates a new, initially empty, set of colors.

Method Detail

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.