Esempio n. 1
0
 /**
  * @param series
  * @return A List of {@link SeriesAndFormatter} instances that reference series.
  */
 protected List<SeriesAndFormatter<SeriesType, FormatterType>> getSeries(SeriesType series) {
   List<SeriesAndFormatter<SeriesType, FormatterType>> results =
       new ArrayList<SeriesAndFormatter<SeriesType, FormatterType>>();
   for (SeriesAndFormatter<SeriesType, FormatterType> thisPair : getSeriesRegistry()) {
     if (thisPair.getSeries() == series) {
       results.add(thisPair);
     }
   }
   return results;
 }
Esempio n. 2
0
 /**
  * @param series
  * @param rendererClass
  * @return The {@link SeriesAndFormatter} that matches the series and rendererClass params, or
  *     null if one is not found.
  */
 protected SeriesAndFormatter<SeriesType, FormatterType> getSeries(
     SeriesType series, Class<? extends RendererType> rendererClass) {
   for (SeriesAndFormatter<SeriesType, FormatterType> thisPair : getSeriesRegistry()) {
     if (thisPair.getSeries() == series
         && thisPair.getFormatter().getRendererClass() == rendererClass) {
       return thisPair;
     }
   }
   return null;
 }