|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.clients.web.ExperimentExplorer.AnnotationGroup
public static class ExperimentExplorer.AnnotationGroup
An annotation group contains statistical information about the spot values falling into the group.
| Field Summary | |
|---|---|
private Set<?> |
annotationValues
|
private String |
color
|
private int[] |
count
|
private int |
id
|
private Map<String,Float> |
statistics
|
private float[] |
sum
|
private String |
title
|
| Constructor Summary | |
|---|---|
private |
ExperimentExplorer.AnnotationGroup(int id,
Set<T> annotationValues,
int channels,
Formatter<T> formatter)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final int id
private final Set<?> annotationValues
private final String title
private final float[] sum
private final int[] count
private final Map<String,Float> statistics
private String color
| Constructor Detail |
|---|
private ExperimentExplorer.AnnotationGroup(int id,
Set<T> annotationValues,
int channels,
Formatter<T> formatter)
| Method Detail |
|---|
public int getId()
public String getTitle()
public Set<?> getAnnotationValues()
public String getColor()
public Color getAwtColor()
public void setColor(String color)
color - A HTML color code
public 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 1
addValue(int, float)public int getCount(int channel)
channel - The number of the channel, starting with 1
addValue(int, float)public float getMean(int channel)
channel - he number of the channel, starting with 1
addValue(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 key
public void reset()
public int compareTo(ExperimentExplorer.AnnotationGroup o)
compareTo in interface Comparable<ExperimentExplorer.AnnotationGroup>
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||