I have a bunch of Line2D that I need to perform some calculations on in a single graphics context. For example, I just need to see which ones intersect, which ones overlap, etc. The graphics never need to be displayed, just run in the background. What would be the best approach for this?