public class PlotAnnotation extends java.lang.Object implements java.lang.Comparable<PlotAnnotation>
getValues()
collection a value falls in.ScatterPlot.addData(SqlResultIterator, Collection)
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private java.util.Collection<java.lang.Integer> |
values |
Constructor and Description |
---|
PlotAnnotation(java.lang.String name,
java.util.Collection<java.lang.Integer> values)
Create a new PlotAnnotation.
|
PlotAnnotation(java.lang.String name,
int value)
Create a new PlotAnnotation.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PlotAnnotation o) |
java.lang.String |
getName()
The name of the annotation, which will be used as a label in the image.
|
java.util.Collection<java.lang.Integer> |
getValues()
The values that falls into this annotation.
|
private final java.lang.String name
private final java.util.Collection<java.lang.Integer> values
public PlotAnnotation(java.lang.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(java.lang.String name, java.util.Collection<java.lang.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 java.lang.String getName()
public java.util.Collection<java.lang.Integer> getValues()
PlotAnnotation
.public int compareTo(PlotAnnotation o)
compareTo
in interface java.lang.Comparable<PlotAnnotation>