public class PlotAnnotation extends Object implements Comparable<PlotAnnotation>
getValues()
collection a value falls in.ScatterPlot.addData(SqlResultIterator, Collection)
Modifier and Type | Field and Description |
---|---|
private String |
name |
private Collection<Integer> |
values |
Constructor and Description |
---|
PlotAnnotation(String name,
Collection<Integer> values)
Create a new PlotAnnotation.
|
PlotAnnotation(String name,
int value)
Create a new PlotAnnotation.
|
Modifier and Type | Method and Description |
---|---|
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.
|
private final String name
private final Collection<Integer> values
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 annotationpublic String getName()
public Collection<Integer> getValues()
PlotAnnotation
.public int compareTo(PlotAnnotation o)
compareTo
in interface Comparable<PlotAnnotation>