2D meta-balls in Java