Class ExperimentExplorerPlotServlet.ColumnKey
- java.lang.Object
-
- net.sf.basedb.clients.web.servlet.ExperimentExplorerPlotServlet.ColumnKey
-
- All Implemented Interfaces:
Comparable<ExperimentExplorerPlotServlet.ColumnKey>
- Enclosing class:
- ExperimentExplorerPlotServlet
public static class ExperimentExplorerPlotServlet.ColumnKey extends Object implements Comparable<ExperimentExplorerPlotServlet.ColumnKey>
Uses as a column key in the plots. This allows us to separate the displayed label from the identity of the column. Eg. there is no need to make sure that the label strings are unique since we can use some internal id for this purpose.Additionally, this class allows us to map annotations to colors that are used to draw small colored boxes below each column label.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,Color>
annotations
private Comparable
id
private String
title
-
Constructor Summary
Constructors Constructor Description ColumnKey(Comparable<?> id, String title)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ExperimentExplorerPlotServlet.ColumnKey o)
The ID of the key determines equality.boolean
equals(Object o)
Color
getColor(String annotation)
int
hashCode()
void
setColor(String annotation, Color color)
String
toString()
-
-
-
Field Detail
-
id
private final Comparable id
-
title
private final String title
-
-
Constructor Detail
-
ColumnKey
public ColumnKey(Comparable<?> id, String title)
-
-
Method Detail
-
compareTo
public int compareTo(ExperimentExplorerPlotServlet.ColumnKey o)
The ID of the key determines equality.- Specified by:
compareTo
in interfaceComparable<ExperimentExplorerPlotServlet.ColumnKey>
-
-