Line

constructor()
constructor(id: String)


constructor(x: Float, y: Float, x1: Float, y1: Float)

Constructor defining the line coordinates

Parameters

x

the x starting point of the line (same as setX)

y

the y starting point of the line (same as setY)

x1

the x end point of the line

y1

the y end point of the line


constructor(id: String, x: Float, y: Float, x1: Float, y1: Float)

Constructor defining the line coordinates

Parameters

id

the element unique id

x

the x starting point of the line (same as setX)

y

the y starting point of the line (same as setY)

x1

the x end point of the line

y1

the y end point of the line