GraphStream Users

Archives de la liste Aide

Re: Node Position

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: suhas bhairav <suhasbhairav AT>, graphstream-users AT
  • Cc: Yoann Pigné <yoann.pigne AT>
  • Subject: Re: Node Position
  • Date: Tue, 28 Jun 2016 21:56:42 +0200


Coordinates are in graph units. You have to use the Camera of your View to convert them to pixels.


Le 28 juin 2016 21:29, "Suhas Bhairav" <suhasbhairav AT> a écrit :

To which component are the points obtained from " double[] xyz = Toolkit.nodePosition(graph, "A"); " relative to? The viewer? Converting them to pixels by multiplying with the width of the component is giving me peculiar values.

Is there anyway to obtain pixels from these points?

Suhas Bhairav

On 28 June 2016 at 12:08, Suhas Bhairav <suhasbhairav AT> wrote:
Thank you.

Suhas Bhairav

On 28 June 2016 at 11:59, Yoann Pigné <yoann.pigne AT> wrote:

> On Jun 28, 2016, at 11:19 AM, Suhas Bhairav <suhasbhairav AT> wrote:
> Hi,
> Is it possible to fetch positionX and positionY of a node when it is displayed in a viewer?
> Regards
> Suhas Bhairav

Archives gérées par MHonArc 2.6.16.

Top of page