org.jcae.viewer3d
Class Palette

java.lang.Object
  extended by org.jcae.viewer3d.Palette

public class Palette
extends java.lang.Object


Constructor Summary
Palette()
          Create an empty palette.
Palette(int n)
          Create a palette with n colors.
 
Method Summary
 void addColor(java.awt.Color c)
           
 void computeNewColors()
           
 void computeNewColors(int n)
           
 java.awt.Color getColor(int i)
           
 void removeDarkestColors(float s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Palette

public Palette()
Create an empty palette. You must use addColor to add base color to the palette


Palette

public Palette(int n)
Create a palette with n colors. The created palette will not include more than 37 colors

Method Detail

getColor

public java.awt.Color getColor(int i)

addColor

public void addColor(java.awt.Color c)

computeNewColors

public void computeNewColors()

computeNewColors

public void computeNewColors(int n)

removeDarkestColors

public void removeDarkestColors(float s)