Design of network topology diagram based on HTML5

Source: Internet
Author: User

In the telecommunication network management system, the real-time display of the equipment status information is very important, usually mount a bunch of icons to display the status or alarm information, the limited information of the icons, sometimes need more detailed panels, even in the form of a chart, this article will combine the needs of recent customers, using the Qunee1.6 beta version, Realize real-time display of device information in topology diagram.
The customization of the UI in Qunee is very flexible, each element node can mount several UI controls, support the relative position of 9x9=81, can mount multiple UI elements on a single node, arrange and layout, and each UI element can bind primitive attributes, attribute changes, UI elements will update the interface in a timely manner.

Network device data Flow information display

Demand analysis
Network equipment topology diagram, the default device is a normal node, double-click to expand, display CPU, memory, traffic and other information, using histogram and different colors of text to display, and then double-click to return to normal node here needs to customize the node, normal mode, the node contains icons and text, expand the mode, The node body becomes a panel of a rounded matrix, which distributes multiple components: icons, text, histogram, etc., in which the histogram can refer to the Barui in the previous monitoring diagram example, the other has ready-made components available, the Panel uses the built-in shape shape, the icon is still used Imageui, the text uses Labelui, the location distribution is set with the position and Anchorposition properties
Implementation of CPU Histogram
In addition, it is necessary to bind the CPU's numeric value to the histogram, where the Q.element#addui (UI, bindingproperties) function is used, the data binding is set in the second parameter, and if there are multiple properties that require binding to use an array, the following example will Cpubar The Data property is bound to the CPU properties of node, which can be set by Node.set ("CPU", 0.45) in a way that enables the properties of the UI to be

Take the CPU histogram as an example, the left is text, the right side is a histogram, the text is aligned to the right, the histogram is left aligned

UI Location Layout

Originally from: http://twaver.com.cn/xinwen/581
In addition, it is necessary to bind the CPU's numeric value to the histogram, where the Q.element#addui (UI, bindingproperties) function is used, the data binding is set in the second parameter, and if there are multiple properties that require binding to use an array, the following example will Cpubar The Data property is bound to the CPU properties of node, which can be set by Node.set ("CPU", 0.45) in a way that enables the properties of the UI to be

Design of network topology diagram based on HTML5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.