[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz] Re: about coordinate systems drawing depth (LollipopCellVobFactory
From: |
Tuomas Lukka |
Subject: |
[Gzz] Re: about coordinate systems drawing depth (LollipopCellVobFactory) |
Date: |
Sat, 16 Nov 2002 19:33:25 +0200 |
User-agent: |
Mutt/1.4i |
> The following code draws an oval cell background and text (almost) on it.
> This was only testing, but I'm wondering about the drawing order/depth of
> them:
>
> The text will be in front of OvalBgVob _if and only if_ I define
> the contentBox before ballBox (at least if it is unitSqCS). The
> depth-attribute in contentBox did not seem to have effect on that.
> Should it really work like that, and why?
>
> /** Cell's content will be drawn next to OvalBgVob */
> final int contentBox = vs.orthoBoxCS(box, "CONTENT", 0,
> diameter+pad, 0, 1, 1,
> boxwh[0]-(diameter+2*pad),
> boxwh[1]-pad);
>
> /** Coordsys to make OvalBgVob look circle and at
> * right place of cell's Box. Currently "right place"
> * is at the top left corner.
> */
> final int ballBox = vs.unitSqCS(box, "UNIT");
We discussed this at Jkl: the problem was the different
semantics of the GL and AWT, when putting coordsystems
at the same Z value.
Tuomas