|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.plot.PlotAnnotation
public class PlotAnnotation
Used to map spot data into different annotations. The mapping is done by checking
which getValues()
collection a value falls in.
ScatterPlot.addData(SqlResultIterator, Collection)
Field Summary | |
---|---|
private String |
name
|
private Collection<Integer> |
values
|
Constructor Summary | |
---|---|
PlotAnnotation(String name,
Collection<Integer> values)
Create a new PlotAnnotation. |
|
PlotAnnotation(String name,
int value)
Create a new PlotAnnotation. |
Method Summary | |
---|---|
int |
compareTo(PlotAnnotation o)
|
String |
getName()
The name of the annotation, which will be used as a label in the image. |
Collection<Integer> |
getValues()
The values that falls into this annotation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final String name
private final Collection<Integer> values
Constructor Detail |
---|
public PlotAnnotation(String name, int value)
name
- The name of the annotation, which will be used as a label in the imagevalue
- The value that belongs to this annotationpublic PlotAnnotation(String name, Collection<Integer> values)
name
- The name of the annotation, which will be used as a label in the imagevalues
- The values that belongs to this annotationMethod Detail |
---|
public String getName()
public Collection<Integer> getValues()
PlotAnnotation
.
public int compareTo(PlotAnnotation o)
compareTo
in interface Comparable<PlotAnnotation>
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |