public static class ExperimentExplorer.AnnotationGroup extends Object implements Comparable<ExperimentExplorer.AnnotationGroup>
Modifier and Type | Field and Description |
---|---|
private Set<?> |
annotationValues |
private String |
color |
private int[] |
count |
private int |
id |
private Map<String,Float> |
statistics |
private float[] |
sum |
private String |
title |
Modifier | Constructor and Description |
---|---|
private |
AnnotationGroup(int id,
Set<T> annotationValues,
int channels,
Formatter<T> formatter) |
Modifier and Type | Method and Description |
---|---|
void |
addStatistics(String key,
float value)
Add another statisitcal measurement to this group.
|
void |
addValue(int channel,
float intensity)
Add an intensity value to this group.
|
int |
compareTo(ExperimentExplorer.AnnotationGroup o) |
Set<?> |
getAnnotationValues()
Get all annotation values in this annotation group.
|
Color |
getAwtColor()
Get the AWT color object that corresponds to the HTML color string.
|
String |
getColor()
Get a color code for HTML that is as distinct as possible from
the color of the other groups.
|
int |
getCount(int channel)
Get the number of intensity values added to the specified channel.
|
int |
getId()
The ID of the group.
|
float |
getMean(int channel)
Get the mean of the intensity values for the given channel.
|
float |
getStatistics(String key)
Get the sum of all values added with the
addStatistics(String, float)
method with the given key. |
float |
getSum(int channel)
Get the sum of intensities for the specified channel.
|
String |
getTitle()
Get the title of this annotation group.
|
void |
reset()
Resets all collected statistics in this group.
|
void |
setColor(String color)
Sets the color for this annotation group.
|
private final int id
private final Set<?> annotationValues
private final String title
private final float[] sum
private final int[] count
private String color
public int getId()
public String getTitle()
public Set<?> getAnnotationValues()
public String getColor()
public Color getAwtColor()
public void setColor(String color)
color
- A HTML color codepublic void addValue(int channel, float intensity)
channel
- The number of the channel, starting with 1intensity
- The spot's intensitypublic float getSum(int channel)
channel
- The number of the channel, starting with 1addValue(int, float)
public int getCount(int channel)
channel
- The number of the channel, starting with 1addValue(int, float)
public float getMean(int channel)
channel
- he number of the channel, starting with 1addValue(int, float)
public void addStatistics(String key, float value)
getStatistics(String)
method.key
- The key for the measurmentvalue
- The value to addpublic float getStatistics(String key)
addStatistics(String, float)
method with the given key.key
- The measurement keypublic void reset()
public int compareTo(ExperimentExplorer.AnnotationGroup o)
compareTo
in interface Comparable<ExperimentExplorer.AnnotationGroup>