private static Color fixtureToColor(Fixture fixture){
  if (fixture.isSensor()) {
    return Color.PINK;
  }
 else {
    Body body=fixture.getBody();
    if (!body.isActive()) {
      return Color.BLACK;
    }
 else {
      if (!body.isAwake()) {
        return Color.RED;
      }
 else {
switch (body.getType()) {
case StaticBody:
          return Color.CYAN;
case KinematicBody:
        return Color.WHITE;
case DynamicBody:
default :
      return Color.GREEN;
  }
}
}
}
}

private static Color fixtureToColor ( Fixture fixture ) { if ( fixture . isSensor ( ) ) { return Color . PINK ; } else { Body body = fixture . getBody ( ) ; if ( ! body . isActive ( ) ) { return Color . BLACK ; } else { if ( ! body . isAwake ( ) ) { return Color . RED ; } else { switch ( body . getType ( ) ) { case StaticBody : return Color . CYAN ; case KinematicBody : return Color . WHITE ; case DynamicBody : default : return Color . GREEN ; } } } } }
translates b2d fixture to appropriate color , depending on body state / type modify to suit your needs
