net.refractions.udig.ui.palette
Class Palette

java.lang.Object
  extended by net.refractions.udig.ui.palette.Palette

Deprecated. use org.geotools.brewer.color.BrewerPalette

public class Palette
extends java.lang.Object

Represent palette information, with conveince methods for SLD.

This has been inspired by the work of ColorBrewer, indeed this is used to capture some of the information produced by that project.


Field Summary
 java.util.List<Scheme> contents
          Deprecated. contents field
 SchemeType type
          Deprecated. type field
 
Constructor Summary
Palette(java.util.Properties properties)
          Deprecated. Construct list from properties
Palette(java.lang.String pal)
          Deprecated. Construct Palette.
Palette(java.lang.String name, Scheme[] list)
          Deprecated. Construct Palette.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contents

public final java.util.List<Scheme> contents
Deprecated. 
contents field


type

public final SchemeType type
Deprecated. 
type field

Constructor Detail

Palette

public Palette(java.lang.String name,
               Scheme[] list)
Deprecated. 
Construct Palette.


Palette

public Palette(java.lang.String pal)
        throws java.io.IOException
Deprecated. 
Construct Palette.

Parameters:
bundle -
Throws:
java.io.IOException

Palette

public Palette(java.util.Properties properties)
Deprecated. 
Construct list from properties

Parse in a Palette from a properties file:


 palette.key=example
 example.display=Example
 palette.min=2
 palette.max=3
 palette.type=SEQUENTIAL 
 example2={158, 202, 225},{ 49, 130, 189}
 example2.good=colorBlind, photoCopy, projector, lcd, crt, print
 example2.doubtful=projector
 example3={222, 235, 247},{158, 202, 225},{ 49, 130, 189}
 example3.good=lcd, crt
 

Parameters:
properties -