Class PlotAnnotation

java.lang.Object
net.sf.basedb.util.plot.PlotAnnotation
All Implemented Interfaces:
Comparable<PlotAnnotation>

public class PlotAnnotation extends Object implements 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 Details

  • Constructor Details

    • PlotAnnotation

      public PlotAnnotation(String name, int value)
      Create a new PlotAnnotation.
      Parameters:
      name - The name of the annotation, which will be used as a label in the image
      value - The value that belongs to this annotation
      Since:
      2.2
    • PlotAnnotation

      public PlotAnnotation(String name, Collection<Integer> values)
      Create a new PlotAnnotation.
      Parameters:
      name - The name of the annotation, which will be used as a label in the image
      values - The values that belongs to this annotation
  • Method Details

    • getName

      public String getName()
      The name of the annotation, which will be used as a label in the image.
    • getValues

      public Collection<Integer> getValues()
      The values that falls into this annotation. This collection shouldn't contain a value that is also found in another PlotAnnotation.
    • compareTo

      public int compareTo(PlotAnnotation o)
      Specified by:
      compareTo in interface Comparable<PlotAnnotation>