Closed GoogleCodeExporter closed 9 years ago
From the demo you can do something as simple as adding in this mxml:
<un:VisualGraph id="vgraph" width="100%" height="100%"
paddingBottom="5" left="0" right="0" top="0" bottom="0"
backgroundColor="#FFFFFF"
alpha="0.8" lineColor="#6666ff"
// remove the itemRenderer attribute edgeLabelRenderer="simpleEdgeRenderer"
vgraphChanged="refreshUI()"
resize="handleResize()"
visibilityLimitActive="true"
>
<!-- set the itemRenderer to an inline component -->
<un:itemRenderer>
<mx:Component>
<mx:Label text="{data.data.@name}"/> <!-- data.data is an Item's data
property; in the demo it's of type XML we display the node's name... -->
</mx:Component>
</un:itemRenderer>
VisualGraph has a itemRenderer property which we assign here with this mxml. I
would
also like to see the source of how primativeIcons and unComponentToolbox do it.
Original comment by corbinho...@gmail.com
on 5 Sep 2007 at 11:29
Thanks corbinhoenes, I know this way (springraph by mark sheppard method...)
but i'd
like to use itemRenderer attribute using an itemRenderer class. When i try to
access,
e.g., data.data.@name in my itemRenderer class, i get an error.
Thanks in advance,
Fer
Original comment by quintero...@gmail.com
on 6 Sep 2007 at 7:52
Thanks for the input corbinhoenes. Fer - I'd like to bring your attention to
our new
group site where the developer team and others can support you in questions like
these. Click the group link and let's carry the discussion forward to help you
achieve the results.
Original comment by jbell...@unog.ch
on 6 Sep 2007 at 9:49
Hi jaybellone,
Which dev group site do you mean? I'd like to give you some suggestions
(orthogonal
connectors, resizeManager for items, etc.).
Fer
Original comment by quintero...@gmail.com
on 6 Sep 2007 at 10:57
Sorry Fer, you can navigate to the site "Visual Graph Support" from the home
page of
this Code site.
Original comment by jbell...@unog.ch
on 6 Sep 2007 at 11:02
BTW I just added a patch which makes it easy to add new types of item image via
the
XML file if thats of any help; it avoids you having to write a custom renderer
etc.
http://code.google.com/p/flexvizgraphlib/issues/detail?id=10
Original comment by james.st...@gmail.com
on 19 Sep 2007 at 5:24
the old unComponenteToolbox code is avaiable for a while and is now integrated
into
the vgExplorer, thus I close this issue.
Original comment by spo...@gmail.com
on 21 Mar 2008 at 3:20
Original issue reported on code.google.com by
quintero...@gmail.com
on 5 Sep 2007 at 2:09