|
Re: custom units via graphics object [message #132672 is a reply to message #132474] |
Tue, 18 May 2004 13:50 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
It sounds like you are not converting coordinates in your figure which
introduces the himetric function. For example, see ScaledFreeformLayer.
This figure not only creates the scaled graphics, but also extends
translateToParent and fromParent() so that feedback (which was originally
un-scaled) would appear correctly.
"Jody Schofield" <jodyschofield@rogers.com> wrote in message
news:c8b4n3$12p$1@eclipse.org...
> Greeting once again!
>
> I'm trying to use my own coordinate system (himetric) in my model and seem
> to be having some difficulty. I thought that I might be able to create my
> own Graphics object that functioned like the ScaledGraphics object. My
new
> Graphics object would wrap the swtgraphics and convert the hi-metric
values
> into smaller values to display. The figures look great and are getting
> scaled correctly (96dpi / 25.4 / 100) but things like feedback and
selection
> aren't.
>
> I've been digging through the code trying to see what I missed. I thought
> that the SelectionTool would convert the mouse location based on zoom and
> then search the figures for a hit. Any ideas?
>
> thanks,
> Jody
>
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03457 seconds