This is the simplest network topology graph development. I have encapsulated all the topology elements for you, and then directly adding them will have relevant features. In addition, the underlying elements are also open-source and can be easily modified by OEMs. A complete topology can be built in just 10 minutes.
First download the project or SWC File
SVN address: http://code.google.com/p/ken-javaframeword/source/browse/#svn%2Ftrunk%2Fframework2.0
After the import, we start programming. Here is the best example:
<? XML version = "1.0" encoding = "UTF-8"?> <S: Application xmlns: FX = "http://ns.adobe.com/mxml/2009" xmlns: S = "Library: // ns.adobe.com/flex/spark" xmlns: MX = "Library: // ns.adobe.com/flex/mx "minwidth =" 955 "minheight =" 600 "xmlns: Topo =" com. shine. topo. view. topo. * "> <FX: declarations> <! -- Place non-visual elements (such as services and value objects) Here --> </FX: declarations> <FX: SCRIPT> <! [CDATA [import COM. shine. topo. view. line. topoline; import COM. shine. topo. view. node. basenodecontainer; import MX. controls. alert; Private function complete (): void {container. completeloading (); var node: basenodecontainer = new basenodecontainer; node. X = 10; node. y = 10; node. width = 32; node. height = 32; node. initnode (); node. refreshimage ("image/unknow.gif"); container. addtoponode (node); var node2: basenodecontainer = new basenodecontainer; node2.x = 100; node2.y = 10; node2.width = 32; node2.height = 32; node2.initnode (); node2.refreshimage ("image/unknow.gif"); container. addtoponode (node2); var line: topoline = new topoline (); line. inittopoline (null, node, node2); container. addtopoline (line);}]> </FX: SCRIPT> <TOPO: basetopocontainer id = "Container" width = "100%" Height = "100%" creationcomplete = "{complete ()}"/> </S: Application>
The above logic is to first import two nodes and import related lines.
Development of the simplest flex network topology graph (2) generating Topo graph http://blog.csdn.net/arjick/article/details/7177162 from XML
The most simple flex network topology Development (iii) add information prompt box http://blog.csdn.net/arjick/article/details/7690506