private boolean checkIndependence(LineAndShapeRenderer r1,LineAndShapeRenderer r2){
  if (!r1.equals(r2)) {
    return false;
  }
  r1.setBaseLinesVisible(!r1.getBaseLinesVisible());
  if (r1.equals(r2)) {
    return false;
  }
  r2.setBaseLinesVisible(r1.getBaseLinesVisible());
  if (!r1.equals(r2)) {
    return false;
  }
  r1.setSeriesLinesVisible(1,true);
  if (r1.equals(r2)) {
    return false;
  }
  r2.setSeriesLinesVisible(1,true);
  if (!r1.equals(r2)) {
    return false;
  }
  r1.setLinesVisible(false);
  if (r1.equals(r2)) {
    return false;
  }
  r2.setLinesVisible(false);
  if (!r1.equals(r2)) {
    return false;
  }
  r1.setBaseShapesVisible(!r1.getBaseShapesVisible());
  if (r1.equals(r2)) {
    return false;
  }
  r2.setBaseShapesVisible(r1.getBaseShapesVisible());
  if (!r1.equals(r2)) {
    return false;
  }
  r1.setSeriesShapesVisible(1,true);
  if (r1.equals(r2)) {
    return false;
  }
  r2.setSeriesShapesVisible(1,true);
  if (!r1.equals(r2)) {
    return false;
  }
  r1.setShapesVisible(false);
  if (r1.equals(r2)) {
    return false;
  }
  r2.setShapesVisible(false);
  if (!r1.equals(r2)) {
    return false;
  }
  boolean flag=true;
  Boolean existing=r1.getShapesFilled();
  if (existing != null) {
    flag=!existing.booleanValue();
  }
  r1.setShapesFilled(flag);
  if (r1.equals(r2)) {
    return false;
  }
  r2.setShapesFilled(flag);
  if (!r1.equals(r2)) {
    return false;
  }
  r1.setShapesFilled(false);
  r2.setShapesFilled(false);
  r1.setSeriesShapesFilled(0,false);
  r2.setSeriesShapesFilled(0,true);
  if (r1.equals(r2)) {
    return false;
  }
  r2.setSeriesShapesFilled(0,false);
  if (!r1.equals(r2)) {
    return false;
  }
  r1.setBaseShapesFilled(false);
  r2.setBaseShapesFilled(true);
  if (r1.equals(r2)) {
    return false;
  }
  r2.setBaseShapesFilled(false);
  if (!r1.equals(r2)) {
    return false;
  }
  return true;
}

private boolean checkIndependence ( LineAndShapeRenderer r1 , LineAndShapeRenderer r2 ) { if ( ! r1 . equals ( r2 ) ) { return false ; } r1 . setBaseLinesVisible ( ! r1 . getBaseLinesVisible ( ) ) ; if ( r1 . equals ( r2 ) ) { return false ; } r2 . setBaseLinesVisible ( r1 . getBaseLinesVisible ( ) ) ; if ( ! r1 . equals ( r2 ) ) { return false ; } r1 . setSeriesLinesVisible ( 1 , true ) ; if ( r1 . equals ( r2 ) ) { return false ; } r2 . setSeriesLinesVisible ( 1 , true ) ; if ( ! r1 . equals ( r2 ) ) { return false ; } r1 . setLinesVisible ( false ) ; if ( r1 . equals ( r2 ) ) { return false ; } r2 . setLinesVisible ( false ) ; if ( ! r1 . equals ( r2 ) ) { return false ; } r1 . setBaseShapesVisible ( ! r1 . getBaseShapesVisible ( ) ) ; if ( r1 . equals ( r2 ) ) { return false ; } r2 . setBaseShapesVisible ( r1 . getBaseShapesVisible ( ) ) ; if ( ! r1 . equals ( r2 ) ) { return false ; } r1 . setSeriesShapesVisible ( 1 , true ) ; if ( r1 . equals ( r2 ) ) { return false ; } r2 . setSeriesShapesVisible ( 1 , true ) ; if ( ! r1 . equals ( r2 ) ) { return false ; } r1 . setShapesVisible ( false ) ; if ( r1 . equals ( r2 ) ) { return false ; } r2 . setShapesVisible ( false ) ; if ( ! r1 . equals ( r2 ) ) { return false ; } boolean flag = true ; Boolean existing = r1 . getShapesFilled ( ) ; if ( existing != null ) { flag = ! existing . booleanValue ( ) ; } r1 . setShapesFilled ( flag ) ; if ( r1 . equals ( r2 ) ) { return false ; } r2 . setShapesFilled ( flag ) ; if ( ! r1 . equals ( r2 ) ) { return false ; } r1 . setShapesFilled ( false ) ; r2 . setShapesFilled ( false ) ; r1 . setSeriesShapesFilled ( 0 , false ) ; r2 . setSeriesShapesFilled ( 0 , true ) ; if ( r1 . equals ( r2 ) ) { return false ; } r2 . setSeriesShapesFilled ( 0 , false ) ; if ( ! r1 . equals ( r2 ) ) { return false ; } r1 . setBaseShapesFilled ( false ) ; r2 . setBaseShapesFilled ( true ) ; if ( r1 . equals ( r2 ) ) { return false ; } r2 . setBaseShapesFilled ( false ) ; if ( ! r1 . equals ( r2 ) ) { return false ; } return true ; }
checks that the two renderers are equal but independent of one another .
