[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: can't get Rulers to correctly show centimeters and inches

OK, looks like I can correctly switch back and forth from CENTIMETERS to INCHES to PIXELS if I create a new RulerProvider and new Rulers each time that I switch. Works great for now.

- Sean

Sean Neeley wrote:
When I call
RulerProvider.setUnits(RulerProvider.UNIT_CENTIMETERS) or
RulerProvider.setUnits(RulerProvider.UNIT_INCHES)
my horizontal and vertical rulers do not visually show Centimeters or Inches. There is just a '0' on one end, and the rest of the ruler is blank (white). UNIX_PIXELS works great. I added a RulerChangeListener, and I know that notifyUnitsChanged() is being called with the new units value. I have code identical to LogicRulerProvider in the logic example. Why aren't my rulers rendering correctly?


Thanks.
- Sean