Creates a transient line.
This is a static method. | 
        
This is a static method. | 
        
| Type | Description | 
| Line2D | Returns the new Line2D object or null if the creation failed. | 
| Name | Type | Description | 
| startPoint | Point2D | The start point of the line | 
| endPoint | Point2D | The end point of the line |