test_class.declarator: LINEAR = Arrays.asList(new Number[]{ 1, 2, 3, 4 ,5 , 6, 7, 8})
test_class.modifier: final
test_class.original_string: final List<Number> LINEAR = Arrays.asList(new Number[]{ 1, 2, 3, 4 ,5 , 6, 7, 8});
test_class.type: List<Number>
test_class.var_name: LINEAR
test_class.declarator: LINEAR_INVERSE = Arrays.asList(new Number[]{ 8, 7, 6, 5, 4, 3, 2, 1})
test_class.modifier: final
test_class.original_string: final List<Number> LINEAR_INVERSE = Arrays.asList(new Number[]{ 8, 7, 6, 5, 4, 3, 2, 1});
test_class.type: List<Number>
test_class.var_name: LINEAR_INVERSE
test_class.declarator: ZIG_ZAG = Arrays.asList(new Number[]{1, 10, 1, 10, 1, 10, 1, 10})
test_class.modifier: final
test_class.original_string: final List<Number> ZIG_ZAG = Arrays.asList(new Number[]{1, 10, 1, 10, 1, 10, 1, 10});
test_class.type: List<Number>
test_class.var_name: ZIG_ZAG
test_class.declarator: NULLS = Arrays.asList(new Number[]{null, 2, null, 4, null, 0, -1, null})
test_class.modifier: final
test_class.original_string: final List<Number> NULLS = Arrays.asList(new Number[]{null, 2, null, 4, null, 0, -1, null});
test_class.type: List<Number>
test_class.var_name: NULLS
test_class.declarator: SINGLE_VALUE = Arrays.asList(new Number[]{3})
test_class.modifier: final
test_class.original_string: final List<Number> SINGLE_VALUE = Arrays.asList(new Number[]{3});
test_class.type: List<Number>
test_class.var_name: SINGLE_VALUE
test_class.declarator: SINGLE_VALUE_NULL = Arrays.asList(new Number[]{null})
test_class.modifier: final
test_class.original_string: final List<Number> SINGLE_VALUE_NULL = Arrays.asList(new Number[]{null});
test_class.type: List<Number>
test_class.var_name: SINGLE_VALUE_NULL
test_class.declarator: EMPTY = new ArrayList<>()
test_class.modifier: final
test_class.original_string: final List<Number> EMPTY = new ArrayList<>();
test_class.type: List<Number>
test_class.var_name: EMPTY
test_class.file: androidplot-core/src/test/java/com/androidplot/util/SeriesUtilsTest.java
test_class.identifier: SeriesUtilsTest
test_case.body: @Test
      public void getNullRegion_producesExpectedResult() {
          XYSeries s1 = new SimpleXYSeries(
                  SimpleXYSeries.ArrayFormat.XY_VALS_INTERLEAVED, "s1",
                  0, 0, // 0
                  1, 1,         // 1
                  2, 2,         // 2
                  null, null,   // 3
                  null, null,   // 4
                  5, 5,         // 5
                  6, 6);        // 6
  
          try {
              Region r1 = SeriesUtils.getNullRegion(s1, 0);
              fail("IllegalArgumentException expected.");
          } catch(IllegalArgumentException e) {
              // expected
          }
  
          try {
              Region r2 = SeriesUtils.getNullRegion(s1, s1.size() - 1);
              fail("IllegalArgumentException expected.");
          } catch(IllegalArgumentException e) {
              // expected
          }
  
          Region r3 = SeriesUtils.getNullRegion(s1, 3);
          assertEquals(2, r3.getMin().intValue());
          assertEquals(5, r3.getMax().intValue());
  
          Region r4 = SeriesUtils.getNullRegion(s1, 4);
          assertEquals(2, r4.getMin().intValue());
          assertEquals(5, r4.getMax().intValue());
      }
test_case.class_method_signature: SeriesUtilsTest.getNullRegion_producesExpectedResult()
test_case.full_signature: @Test public void getNullRegion_producesExpectedResult()
test_case.identifier: getNullRegion_producesExpectedResult
test_case.invocations: getNullRegion fail getNullRegion size fail getNullRegion assertEquals intValue getMin assertEquals intValue getMax getNullRegion assertEquals intValue getMin assertEquals intValue getMax
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getNullRegion_producesExpectedResult()
focal_class.file: androidplot-core/src/main/java/com/androidplot/util/SeriesUtils.java
focal_class.identifier: SeriesUtils
focal_class.class_method_signature: SeriesUtils.minMax(List<XYSeries> seriesList)
focal_class.full_signature: public static RectRegion minMax(List<XYSeries> seriesList)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (List<XYSeries> seriesList)
focal_class.return: RectRegion
focal_class.signature: RectRegion minMax(List<XYSeries> seriesList)
focal_class.class_method_signature: SeriesUtils.minMax(XYSeries... seriesList)
focal_class.full_signature: public static RectRegion minMax(XYSeries... seriesList)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (XYSeries... seriesList)
focal_class.return: RectRegion
focal_class.signature: RectRegion minMax(XYSeries... seriesList)
focal_class.class_method_signature: SeriesUtils.minMaxX(XYSeries... seriesList)
focal_class.full_signature: public static Region minMaxX(XYSeries... seriesList)
focal_class.identifier: minMaxX
focal_class.modifiers: public static
focal_class.parameters: (XYSeries... seriesList)
focal_class.return: Region
focal_class.signature: Region minMaxX(XYSeries... seriesList)
focal_class.class_method_signature: SeriesUtils.minMaxY(XYSeries... seriesList)
focal_class.full_signature: public static Region minMaxY(XYSeries... seriesList)
focal_class.identifier: minMaxY
focal_class.modifiers: public static
focal_class.parameters: (XYSeries... seriesList)
focal_class.return: Region
focal_class.signature: Region minMaxY(XYSeries... seriesList)
focal_class.class_method_signature: SeriesUtils.minMax(XYConstraints constraints, List<XYSeries> seriesList)
focal_class.full_signature: public static RectRegion minMax(XYConstraints constraints, List<XYSeries> seriesList)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (XYConstraints constraints, List<XYSeries> seriesList)
focal_class.return: RectRegion
focal_class.signature: RectRegion minMax(XYConstraints constraints, List<XYSeries> seriesList)
focal_class.class_method_signature: SeriesUtils.minMax(XYConstraints constraints, XYSeries... seriesArray)
focal_class.full_signature: public static RectRegion minMax(XYConstraints constraints, XYSeries... seriesArray)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (XYConstraints constraints, XYSeries... seriesArray)
focal_class.return: RectRegion
focal_class.signature: RectRegion minMax(XYConstraints constraints, XYSeries... seriesArray)
focal_class.class_method_signature: SeriesUtils.minMax(Region bounds, List<Number>... lists)
focal_class.full_signature: public static Region minMax(Region bounds, List<Number>... lists)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (Region bounds, List<Number>... lists)
focal_class.return: Region
focal_class.signature: Region minMax(Region bounds, List<Number>... lists)
focal_class.class_method_signature: SeriesUtils.iBounds(XYSeries series, RectRegion visibleBounds)
focal_class.full_signature: public static Region iBounds(XYSeries series, RectRegion visibleBounds)
focal_class.identifier: iBounds
focal_class.modifiers: public static
focal_class.parameters: (XYSeries series, RectRegion visibleBounds)
focal_class.return: Region
focal_class.signature: Region iBounds(XYSeries series, RectRegion visibleBounds)
focal_class.class_method_signature: SeriesUtils.iBoundsMax(XYSeries series, double visibleMax, float step)
focal_class.full_signature: protected static int iBoundsMax(XYSeries series, double visibleMax, float step)
focal_class.identifier: iBoundsMax
focal_class.modifiers: protected static
focal_class.parameters: (XYSeries series, double visibleMax, float step)
focal_class.return: int
focal_class.signature: int iBoundsMax(XYSeries series, double visibleMax, float step)
focal_class.class_method_signature: SeriesUtils.iBoundsMin(XYSeries series, double visibleMin, float step)
focal_class.full_signature: protected static int iBoundsMin(XYSeries series, double visibleMin, float step)
focal_class.identifier: iBoundsMin
focal_class.modifiers: protected static
focal_class.parameters: (XYSeries series, double visibleMin, float step)
focal_class.return: int
focal_class.signature: int iBoundsMin(XYSeries series, double visibleMin, float step)
focal_class.class_method_signature: SeriesUtils.getNullRegion(XYSeries series, int index)
focal_class.full_signature: protected static Region getNullRegion(XYSeries series, int index)
focal_class.identifier: getNullRegion
focal_class.modifiers: protected static
focal_class.parameters: (XYSeries series, int index)
focal_class.return: Region
focal_class.signature: Region getNullRegion(XYSeries series, int index)
focal_class.class_method_signature: SeriesUtils.minMax(List<Number>... lists)
focal_class.full_signature: public static Region minMax(List<Number>... lists)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (List<Number>... lists)
focal_class.return: Region
focal_class.signature: Region minMax(List<Number>... lists)
focal_class.class_method_signature: SeriesUtils.getXYOrder(XYSeries series)
focal_class.full_signature: public static OrderedXYSeries.XOrder getXYOrder(XYSeries series)
focal_class.identifier: getXYOrder
focal_class.modifiers: public static
focal_class.parameters: (XYSeries series)
focal_class.return: OrderedXYSeries.XOrder
focal_class.signature: OrderedXYSeries.XOrder getXYOrder(XYSeries series)
focal_method.body: protected static Region getNullRegion(XYSeries series, int index) {
          Region region = new Region();
          if(series.getX(index) != null) {
              throw new IllegalArgumentException("Attempt to find null region for non null index: " + index);
          }
          for(int i = index - 1; i >= 0; i--) {
              Number val = series.getX(i);
              if(val != null) {
                  region.setMin(i);
                  break;
              }
          }
  
          for(int i = index + 1; i < series.size(); i++) {
              Number val = series.getX(i);
              if(val != null) {
                  region.setMax(i);
                  break;
              }
          }
          return region;
      }
focal_method.class_method_signature: SeriesUtils.getNullRegion(XYSeries series, int index)
focal_method.full_signature: protected static Region getNullRegion(XYSeries series, int index)
focal_method.identifier: getNullRegion
focal_method.invocations: getX getX setMin size getX setMax
focal_method.modifiers: protected static
focal_method.parameters: (XYSeries series, int index)
focal_method.return: Region
focal_method.signature: Region getNullRegion(XYSeries series, int index)