public static class ExperimentExplorer.AnnotationGroup extends java.lang.Object implements java.lang.Comparable<ExperimentExplorer.AnnotationGroup>
Modifier and Type | Field and Description |
---|---|
private java.util.Set<?> |
annotationValues |
private java.lang.String |
color |
private int[] |
count |
private int |
id |
private java.util.Map<java.lang.String,java.lang.Float> |
statistics |
private float[] |
sum |
private java.lang.String |
title |
Modifier | Constructor and Description |
---|---|
private |
AnnotationGroup(int id,
java.util.Set<T> annotationValues,
int channels,
Formatter<T> formatter) |
Modifier and Type | Method and Description |
---|---|
void |
addStatistics(java.lang.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) |
java.util.Set<?> |
getAnnotationValues()
Get all annotation values in this annotation group.
|
java.awt.Color |
getAwtColor()
Get the AWT color object that corresponds to the HTML color string.
|
java.lang.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(java.lang.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.
|
java.lang.String |
getTitle()
Get the title of this annotation group.
|
void |
reset()
Resets all collected statistics in this group.
|
void |
setColor(java.lang.String color)
Sets the color for this annotation group.
|
private final int id
private final java.util.Set<?> annotationValues
private final java.lang.String title
private final float[] sum
private final int[] count
private final java.util.Map<java.lang.String,java.lang.Float> statistics
private java.lang.String color
private AnnotationGroup(int id, java.util.Set<T> annotationValues, int channels, Formatter<T> formatter)
public int getId()
public java.lang.String getTitle()
public java.util.Set<?> getAnnotationValues()
public java.lang.String getColor()
public java.awt.Color getAwtColor()
public void setColor(java.lang.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(java.lang.String key, float value)
getStatistics(String)
method.key
- The key for the measurmentvalue
- The value to addpublic float getStatistics(java.lang.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 java.lang.Comparable<ExperimentExplorer.AnnotationGroup>