Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » RulerFigure#setDPU
RulerFigure#setDPU [message #160987] Wed, 08 December 2004 13:27 Go to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Hi!

How can I change the DPU of the RulerFigure? I want to display a ruler
which shows grid coordinates.

When looking into the source it seems that the ruler API is not ready
yet for adding custom rulers.

Thanks,
Gunnar
Re: RulerFigure#setDPU [message #161035 is a reply to message #160987] Wed, 08 December 2004 22:15 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
It's all hidden for now, since we don't want to commit that API.

We might expose RulerFigure's setInterval() method to RulerProvider to allow
for some more customization. Another option is to allow the RulerProvider
to provide the RulerFigure to be used. This would allow clients to have
customized RulerFigures. RulerFigure, of course, would still be internal
and its API subject to change.

What exactly do you need? Do you just want to set the interval? Or do you
not want to display any numbers?

"Gunnar Wagenknecht" <gunnar@wagenknecht.org> wrote in message
news:cp6vdp$uvc$1@www.eclipse.org...
> Hi!
>
> How can I change the DPU of the RulerFigure? I want to display a ruler
> which shows grid coordinates.
>
> When looking into the source it seems that the ruler API is not ready
> yet for adding custom rulers.
>
> Thanks,
> Gunnar
Re: RulerFigure#setDPU [message #161077 is a reply to message #161035] Thu, 09 December 2004 10:13 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Pratik Shah schrieb:
> What exactly do you need? Do you just want to set the interval? Or do you
> not want to display any numbers?

I need to set a custom interval according to my grid size.

Cu, Gunnar
Previous Topic:implementing cut/copy/paste
Next Topic:How to create and edit a layer?
Goto Forum:
  


Current Time: Fri Sep 27 22:16:07 GMT 2024

Powered by FUDForum. Page generated in 0.02850 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top