Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Ruler with different units
Ruler with different units [message #231889] Tue, 20 March 2007 09:53 Go to next message
Eclipse UserFriend
Originally posted by: puneet82sri.sify.com

Hi all,
Is there any mechanism to provide differnt unit(except inches, cms, pixels) on rulers in GEF ? If yes please do explain.
Thanks
Puneet Srivastava
Re: Ruler with different units [message #231916 is a reply to message #231889] Tue, 20 March 2007 14:51 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Puneet ,

The abstract RulerProvider class getUnit() only accepts one of UNIT_INCHES,
UNIT_CENTIMETERS, UNIT_PIXELS.

What units are you looking for?

Cheers...
Anthony

"Puneet Srivastava" <puneet82sri@sify.com> wrote in message
news:28220865.1174384468845.JavaMail.root@cp1.javalobby.org...
> Hi all,
> Is there any mechanism to provide differnt unit(except inches, cms,
> pixels) on rulers in GEF ? If yes please do explain.
> Thanks
> Puneet Srivastava
Re: Ruler with different units [message #231932 is a reply to message #231916] Wed, 21 March 2007 09:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: puneet82sri.sify.com

Hi Anthony,
I have specific requirement to have customized units, that are:
1. For horizontal ruler I need 8 pixels = 1 unit1.
2. For vertical ruler I need 16 pixels = 1 unit2.
and one more important thing that there should be no major and sub marks. Single uniform mark with appropriate numbering.
Thanks
Puneet
Re: Ruler with different units [message #231948 is a reply to message #231932] Wed, 21 March 2007 12:28 Go to previous message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Puneet

This enhancement request is covered in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=105493

Cheers...
Anthony


"Puneet Srivastava" <puneet82sri@sify.com> wrote in message
news:6288805.1174468559791.JavaMail.root@cp1.javalobby.org...
> Hi Anthony,
> I have specific requirement to have customized units, that are:
> 1. For horizontal ruler I need 8 pixels = 1 unit1.
> 2. For vertical ruler I need 16 pixels = 1 unit2.
> and one more important thing that there should be no major and sub marks.
> Single uniform mark with appropriate numbering.
> Thanks
> Puneet
Previous Topic:3D opengl diagrams contribution to GEF offer
Next Topic:Coordinate of drop event relative to Figure
Goto Forum:
  


Current Time: Thu Apr 25 07:50:33 GMT 2024

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

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

Back to the top