|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.brainj3d.colors.Colors
public class Colors
This class has static methods to help reuse code that generates Materials and colors and makes it easier to find the appropriate spot to change colors.
| Field Summary | |
|---|---|
static String |
DEFAULT_COLOR
Different applications have different default colors that they want to use. |
| Constructor Summary | |
|---|---|
Colors()
|
|
| Method Summary | |
|---|---|
static Color |
getColor(String colorName)
Get a color from a string. |
static javax.media.j3d.Material |
getMaterial(String colorName)
Generate a material for a given color. |
static ColorScheme |
makeScheme(String key,
double alpha)
Make a ColorScheme from keywords. warm fades from red to yellow to white cold fades from blue to cyan to white bone doesn't work well yet, but is greyscale that tops out near bone's color mask creates the mask scheme, which is colorless and masks out other values. inverted can be added to any name to indicate that 0 is the max value and it logarithmically falls off. Any color that getColor(String) accepts can also be used for a key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String DEFAULT_COLOR
| Constructor Detail |
|---|
public Colors()
| Method Detail |
|---|
public static javax.media.j3d.Material getMaterial(String colorName)
colorName - The color name to use to generate the material.
public static Color getColor(String colorName)
colorName - The color name
public static ColorScheme makeScheme(String key,
double alpha)
key - A key from above.alpha - Transparency
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||