iconAttachment mechanism of Java can place many icons or characters at anywhere under network element, check the following picture please.
The function of icon can be displayed on the network element by the following method under Flex:
1 |
2 |
3 |
4 |
Default realization does not provide icon addition function for multiple positions.
But it will be easier to extend this function by FlexMVC design which is very flexible, please check picture as below:
Create more iconAttachment to display the icons on different places by Attachment mechanism of TWaver.
Code download
private function getIconsSize(names:Array, orientation:String, xgap:Number, ygap:Number):Sizeoverride public function draw(graphics:Graphics):void
If you are interested, you can try to realize the attachment with different places and position
You can achieve by modifying the following two methods of CustomIconAttachment: