문제

I am developing an eclipse plugin using Gef. I am creating a viewpart witch holds a canvas with my graph and everything I am drawing. Through mouse events on several figures I can get the click positions. Those positions are relevant to my viewpart. Is there anyway to get those positions/coordinates relevant to the whole eclipse window?

Thanks, Kyriakos

도움이 되었습니까?

해결책

The example (How to place a Shell on top of a Figure) in the below article may help. There is a map() method on display that converts relative coordinates of a figure into the relative coordinates a holding control, such as the main shell

http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.draw2d.doc.isv/guide/coordinates.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top