Re: [jgrapht-users] doubt - LabeledElement
Brought to you by:
barak_naveh,
perfecthash
From: John V. S. <js...@gm...> - 2006-11-13 19:27:38
|
Anderson Adolfs wrote: > Hi, > > I am trying to understand a code of a plugin which > uses a previous version of jgrapht lib. > There was a code which was using LabeledElement > class to retrieve geographical informations, like > this: > > Feature f = > (Feature)((LabeledElement)list.get(i)).getLabel(); > System.out.println(f.getGeometry()); > > /* The output is: LINESTRING (3015.39 2030.00, > 2852.40 1808.96) */ > > Well, in JGraphT 0.7, the class LabeledElement was > removed, how could I retrieve this information, using > 0.7 lib, without the possibility of casting ? Is there > any similar class ? The application will have to be changed in order to work with 0.7. The LabeledElement class was trivial; you can just put it back as private to the application if you really want to keep using it. JVS |