public class ColorsFactory
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | ALPHA_INDEXIndex of the red component of a color. | 
| static int | BLUE_INDEXIndex of the red component of a color. | 
| static int | GREEN_INDEXIndex of the red component of a color. | 
| static int | RED_INDEXIndex of the red component of a color. | 
| Constructor and Description | 
|---|
| ColorsFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| static int[] | determineColor(Length value)Determines the color corresponding to the passed value. | 
| static int[] | getColor(ChannelData channelData)Determines the color usually associated to the specified
 wavelength or explicitly defined for a particular channel. | 
| static boolean | hasEmissionData(ChannelData channelData)Returns  trueif the channel has emission metadata,falseotherwise. | 
| static int[] | newBlueColor()Creates a new Blue Color object. | 
| static int[] | newGreenColor()Creates a new Green Color object. | 
| static int[] | newGreyColor()Creates a new Grey Color object. | 
| static int[] | newRedColor()Creates a new Red Color object. | 
| static int[] | newWhiteColor()Creates a new White Color object. | 
public static final int RED_INDEX
public static final int GREEN_INDEX
public static final int BLUE_INDEX
public static final int ALPHA_INDEX
public static int[] getColor(ChannelData channelData)
channelData - Channel data to use to determine a color for.public static int[] determineColor(Length value)
value - The value to handle.public static boolean hasEmissionData(ChannelData channelData)
true if the channel has emission metadata,
 false otherwise.channelData - Channel data to use to determine a color for.public static int[] newRedColor()
public static int[] newGreenColor()
public static int[] newBlueColor()
public static int[] newGreyColor()
public static int[] newWhiteColor()