Package adams.data.report
Class AnnotationHelper
- java.lang.Object
-
- adams.data.report.AnnotationHelper
-
public class AnnotationHelper extends Object
Methods for dealing with annotations in reports.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description AnnotationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intfindLastIndex(Report report, String prefix)Determines the last index used with the given prefix.static List<SelectionRectangle>getLocations(Report report, String prefix)Returns all currently stored locations.static booleanremoveIndex(Report report, String prefix, int index)Removes the specified index from the report.static Map<String,Object>valuesForIndex(Report report, String prefix, int index)Returns all the values stored in the report under this index.
-
-
-
Method Detail
-
removeIndex
public static boolean removeIndex(Report report, String prefix, int index)
Removes the specified index from the report.- Parameters:
report- the report to processprefix- the object prefix to use- Returns:
- true if successfully removed
-
findLastIndex
public static int findLastIndex(Report report, String prefix)
Determines the last index used with the given prefix.- Parameters:
report- the report to processprefix- the object prefix to use- Returns:
- the last index
-
valuesForIndex
public static Map<String,Object> valuesForIndex(Report report, String prefix, int index)
Returns all the values stored in the report under this index.- Parameters:
report- the report to look up the index inprefix- the object prefix to useindex- the index to retrieve the values for- Returns:
- the values
-
getLocations
public static List<SelectionRectangle> getLocations(Report report, String prefix)
Returns all currently stored locations.- Parameters:
report- the report to get the locations fromprefix- the object prefix to use- Returns:
- the locations
-
-