|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomeis.providers.re.ColorsFactory
public class ColorsFactory
Utility class to determine the color usually associated to a specified channel depending on its emission wavelength.
Field Summary | |
---|---|
static int |
ALPHA_INDEX
Index of the red component of a color. |
static int |
BLUE_INDEX
Index of the red component of a color. |
static int |
GREEN_INDEX
Index of the red component of a color. |
static int |
RED_INDEX
Index of the red component of a color. |
Constructor Summary | |
---|---|
ColorsFactory()
|
Method Summary | |
---|---|
static int[] |
getColor(int index,
ome.model.core.Channel channel)
Determines the color usually associated to the specified wavelength. |
static int[] |
getColor(int index,
ome.model.core.Channel channel,
ome.model.core.LogicalChannel lc)
Determines the color usually associated to the specified wavelength. |
static boolean |
hasEmissionData(ome.model.core.LogicalChannel lc)
Returns true if the channel has emission metadata,
false otherwise. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RED_INDEX
public static final int GREEN_INDEX
public static final int BLUE_INDEX
public static final int ALPHA_INDEX
Constructor Detail |
---|
public ColorsFactory()
Method Detail |
---|
public static int[] getColor(int index, ome.model.core.Channel channel)
index
- The channel index.channel
- The channel to determine the color for.
public static int[] getColor(int index, ome.model.core.Channel channel, ome.model.core.LogicalChannel lc)
index
- The channel index.channel
- The channel to determine the color for.lc
- The entity hosting information about the emission etc.
public static boolean hasEmissionData(ome.model.core.LogicalChannel lc)
true
if the channel has emission metadata,
false
otherwise.
lc
- The channel to handle.
public static int[] newRedColor()
public static int[] newGreenColor()
public static int[] newBlueColor()
public static int[] newGreyColor()
public static int[] newWhiteColor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.