Auar / flexvizgraphlib

Automatically exported from code.google.com/p/flexvizgraphlib
0 stars 0 forks source link

[patch] enable easily extensible models to be rendered with pluggable images #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here's a minor patch that allows you to specify in the XML of a graph the
image to use to render a node.

e.g.

<Node id="foo" name="Foo" nodeType="http://acme.com/MyImage.jpg"
description="something"/>

I guess we should enable/disable this feature as others might be expecting
errors if names are used. (We could maybe check for .jpg, jpeg, .png etc to
know if it really is an image source)

Original issue reported on code.google.com by james.st...@gmail.com on 19 Sep 2007 at 5:21

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just replying to the mail I got from zuzuilu: This patch should only affect the 
swc
file that contains the PrimitiveReader.as file and its a pretty minor patch.

Original comment by james.st...@gmail.com on 4 Dec 2007 at 9:26

GoogleCodeExporter commented 9 years ago
Thanks for your reply, I have solve the problems I had before. Just 
wonderering, can 
we have a customized icon on the edge too? I notice that there is a edgeType 
property for Edge class, is that the one I should modified?

Original comment by zuzu...@gmail.com on 4 Dec 2007 at 9:57

GoogleCodeExporter commented 9 years ago
Sure, why not :)

Original comment by james.st...@gmail.com on 5 Dec 2007 at 9:14

GoogleCodeExporter commented 9 years ago
I can not find where is the code for edgeType property, and dont even know what 
value does the "edgeType" take. Is it written already? or I need to write it 
myself? 
Thanks in advanced for your kindly response:)

Original comment by zuzu...@gmail.com on 5 Dec 2007 at 6:48

GoogleCodeExporter commented 9 years ago
neverminds..problem solved

Original comment by zuzu...@gmail.com on 5 Dec 2007 at 11:53

GoogleCodeExporter commented 9 years ago
Hi,

 I am new to Flex and how to apply this patch.

Ganesh

Original comment by ganesh...@gmail.com on 17 Dec 2007 at 8:02

GoogleCodeExporter commented 9 years ago
This has become obsolete with the RendererIconFactory class, that provides
static methods to specify image icons per URL.

Original comment by spo...@gmail.com on 18 May 2008 at 5:42