After a few days of research, I need your help regarding an integration problem that I encounter in HTML/CSS and Flex. I specify I'm not an expert in that domain.
I want to create an interface similar to a 2-dimensional orthonormal frame. So I would like to position and size 3 elements : an x axis, a y axis, and a workspace.
Which is complicated is that the interface can be rotated in 4 different ways depending on the desired origin point (0; 0) : 0°, 90°, 180° and 270°.
Since pictures are worth a thousand words, here's what I'm looking to do exactly :
0° :

90° :

180° :

270° :

As you can see, if rotation is 0°, then the origin point is top left, if it's 90°, then top right, if it's 180°, then bottom right, if it's 270°, then bottom left.
I made several attempts, but none produced the expected result.
Do you have any simple implementation ideas/examples for this integration ?
Thanks !
See the description given above