Package net.sf.basedb.util.plot
Class PlotAnnotation
java.lang.Object
net.sf.basedb.util.plot.PlotAnnotation
- All Implemented Interfaces:
Comparable<PlotAnnotation>
Used to map spot data into different annotations. The mapping is done by checking
which
getValues()
collection a value falls in.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2010-08-13 10:50:27 +0200 (fr, 13 aug 2010) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPlotAnnotation
(String name, int value) Create a new PlotAnnotation.PlotAnnotation
(String name, Collection<Integer> values) Create a new PlotAnnotation. -
Method Summary
Modifier and TypeMethodDescriptionint
getName()
The name of the annotation, which will be used as a label in the image.The values that falls into this annotation.
-
Field Details
-
name
-
values
-
-
Constructor Details
-
PlotAnnotation
Create a new PlotAnnotation.- Parameters:
name
- The name of the annotation, which will be used as a label in the imagevalue
- The value that belongs to this annotation- Since:
- 2.2
-
PlotAnnotation
Create a new PlotAnnotation.- Parameters:
name
- The name of the annotation, which will be used as a label in the imagevalues
- The values that belongs to this annotation
-
-
Method Details
-
getName
The name of the annotation, which will be used as a label in the image. -
getValues
The values that falls into this annotation. This collection shouldn't contain a value that is also found in anotherPlotAnnotation
. -
compareTo
- Specified by:
compareTo
in interfaceComparable<PlotAnnotation>
-