clone

fun clone(): Line2D?

Creates a new object of the same class as this object.

Return

a clone of this instance.

Since

1.2

Throws

if there is not enough memory. Corresponds to java.lang.Cloneable.