net.refractions.udig.ui.palette
Enum Friendly

java.lang.Object
  extended by java.lang.Enum<Friendly>
      extended by net.refractions.udig.ui.palette.Friendly
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Friendly>

public enum Friendly
extends java.lang.Enum<Friendly>

Captures the information provided by the ColorBrewer icons.

Since:
0.6.0
Author:
jgarnett
See Also:
http://www.personal.psu.edu/faculty/c/a/cab38/ColorBrewer/ColorBrewer_learnMore.html

Enum Constant Summary
COLORBLIND
          Will not confuse people with red-green color blindness.
CRT
          Suitable for viewing on a laptop LCD display.
LCD
          Suitable for the typical LCD room projector.
PHOTOCOPY
          Will withstand black and white photocopying.
PRINT
          Suitable for color printing.
PROJECTOR
          PROJECTOR field
 
Field Summary
 InternationalString description
           
 InternationalString display
           
 
Method Summary
static java.util.EnumSet<Friendly> parse(java.lang.String text)
          Parse text of the form: colorblind, lcd, crt.
static Friendly valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Friendly[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COLORBLIND

public static final Friendly COLORBLIND
Will not confuse people with red-green color blindness. Red-green color blindness affects approximately 8 percent of men and 0.4 percent of women.


PHOTOCOPY

public static final Friendly PHOTOCOPY
Will withstand black and white photocopying. Diverging schemes can not be photocopied successfully. Differences in lightness should be preserved with sequential schemes.


PROJECTOR

public static final Friendly PROJECTOR
PROJECTOR field


LCD

public static final Friendly LCD
Suitable for the typical LCD room projector. LCD projectors have a tendency to 'wash-out' colors resulting in pastel and pale colors looking the same (i.e. white).


CRT

public static final Friendly CRT
Suitable for viewing on a laptop LCD display. LCD monitors tend to wash-out colors which results in noticeable differences from traditional CRT computer monitors.


PRINT

public static final Friendly PRINT
Suitable for color printing. CMYK specs are as close to press-ready as is reasonable.

Field Detail

description

public final InternationalString description

display

public final InternationalString display
Method Detail

values

public static final Friendly[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Friendly c : Friendly.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Friendly valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

parse

public static java.util.EnumSet<Friendly> parse(java.lang.String text)
Parse text of the form: colorblind, lcd, crt.

Parameters:
text -
Returns:
EnumSet (may be empty)