public static Path2D generateBorderBounds(Rectangle bounds,BorderPropertySet border,boolean inside){
  Path2D path=generateBorderShape(bounds,TOP,border,false,inside ? 1 : 0,1);
  path.append(generateBorderShape(bounds,RIGHT,border,false,inside ? 1 : 0,1),true);
  path.append(generateBorderShape(bounds,BOTTOM,border,false,inside ? 1 : 0,1),true);
  path.append(generateBorderShape(bounds,LEFT,border,false,inside ? 1 : 0,1),true);
  return path;
}

public static Path2D generateBorderBounds ( Rectangle bounds , BorderPropertySet border , boolean inside ) { Path2D path = generateBorderShape ( bounds , TOP , border , false , inside ? 1 : 0 , 1 ) ; path . append ( generateBorderShape ( bounds , RIGHT , border , false , inside ? 1 : 0 , 1 ) , true ) ; path . append ( generateBorderShape ( bounds , BOTTOM , border , false , inside ? 1 : 0 , 1 ) , true ) ; path . append ( generateBorderShape ( bounds , LEFT , border , false , inside ? 1 : 0 , 1 ) , true ) ; return path ; }
generates a full round rectangle that is made of bounds and border
