GraphStream Users

Archives de la liste Aide

Re: GraphStream sprites

Chronologique Discussions 
  • From: Antoine Dutot <antoine.dutot AT>
  • To: Michele Freschi <mfreschi AT>
  • Cc: graphstream-users AT
  • Subject: Re: GraphStream sprites
  • Date: Mon, 11 Jul 2011 16:30:33 +0200

Oops, sorry for the empty mail.

2011/7/11 Michele Freschi
<mfreschi AT>:
>> In fact, each sprite is an individual object that cannot be attached
>> to multiple elements. However the icon picture (or any resource, like
>> fonts for the text) is loaded only once and then shared. Therefore it
>> consumes only the memory needed by the sprite object, not its picture
>> (all sprites will share the same CSS style). This is the very purpose
>> of the CSS in the viewer : you define the style once, and you apply it
>> to multiple objects.
> yeah I realized that the picture example was not the best after I sent
> the email,
> but in the end I was looking anyway for a clarification on the sprite
> object :)

Ok. However sprites are really attributes stored on the graph
(strings) and should
not consume lots of memory.

But, as an optimization, we could consider attaching a sprite to
multiple object in the future.

>> I hope I answered your question, if not do not hesitate to repost on
>> the mailling list or directly to me.
> thanks for the prompt answer :)




Archives gérées par MHonArc 2.6.16.

Top of page