What is the easiest way to draw line in absolute layput vaadin?

712 views Asked by At

After creating absoluteLayout object what is the easiest way to draw line between two objects in that?

1

There are 1 answers

0
Pesse On

I would recommend not to use absoluteLayout for drawing lines, but instead one of the Canvas addons:

Depending of your use-case you also want to draw whatever you are drawing directly in the client and not from the server.

For your question is very limited I can't give you more guidance.

If you still want to use absoluteLayout and drawing lines, you should go with a simple div-element (you could for example add an empty Label or whatever) and style it via CSS so it looks like a line. You won't be able to "connect" your two objects easily, though - use a canvas for that purpose.