I have a line and I wish to convert it to a polygon.  
The point is this is line is NOT a ring
it's an straight Line. And I want to use an specific width to extend line horizontally and create a polygon.

Using [JTS][1].
is it possible? How can I make it happen?


  [1]: https://github.com/locationtech/jts