There are some environments where awt is not applicable (e.g. Android). awt is native library an can not be simply imported into the project. So I had to copy all needed classes into com.jhlabs namespace and clean JNI staff from it. In fact you are using just few general purpose classes so I would suggest reimplementing them in the library.