CN104598226A - Chart interaction design method based on Flex - Google Patents
Chart interaction design method based on Flex Download PDFInfo
- Publication number
- CN104598226A CN104598226A CN201410854661.0A CN201410854661A CN104598226A CN 104598226 A CN104598226 A CN 104598226A CN 201410854661 A CN201410854661 A CN 201410854661A CN 104598226 A CN104598226 A CN 104598226A
- Authority
- CN
- China
- Prior art keywords
- event
- flex
- behavior
- chart
- configuration file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a chart interaction design method based on Flex. The method comprises the following steps of associating an event with behaviors through a configuration file on the basis of a Flex event mechanism by use of an event bus management method; triggering interaction action by virtue of the event. According to the method provided by the invention, codes are simplified, the workload of developers is alleviated, and the development efficiency is increased.
Description
Technical field
The invention belongs to computer technology application, particularly relate to a kind of method for designing mutual based on the chart of Flex.
Background technology
In business intelligence field, based on the product design of B/S framework, usual data analysis tool, in order to make diagrammatic representation more lively and directly perceived, can increase many interactive actions for chart, most typical is " data mining ", " data linkage ", certainly also has other behavior.
But for chart increases the ununified method of interactive action, the technological means that developer takes is varied, is unfavorable for the management of code, also for developer adds burden, reduces development efficiency.
The front-end technology of the product based on B/S framework comparatively conventional at present uses Flex technology, and Flex is efficient, a free Open Framework, can be used for building the application program realizing interactive function.
Designing based on Flex and realize the mutual method of chart, is the problem needing solution at present badly.
Summary of the invention
The problem to be solved in the present invention realizes the mutual method of chart, simplified code based on Flex design is a kind of, improves development efficiency.
In order to achieve the above object, the technical scheme that the present invention takes is: a kind of method for designing mutual based on the chart of Flex, is characterized in that, comprise the steps:
(1) based on the case mechanism of Flex, adopt the management method of event bus, by configuration file, event is associated with behavior, namely form the configuration of assembly-event-behavior;
(2) configuration of assembly-event-behavior is read in behavior management module from configuration file by system;
(3) when user operation, different events distributes on event bus by assembly;
(4) behavior management module monitors the event on event bus, according to configuration file, carries out corresponding behavior process.
Preferably, described event is mouse or keyboard operation event.
Preferably, described configuration file is ActionConfig.xml file.
Preferably, described in step (4), carry out corresponding behavior process, refer to according to configuration file, reflect corresponding behavior process class.
Beneficial effect of the present invention is: by method of the present invention, realizes the interactive action of chart based on Flex, and reach data mining, data linkage and realize the function of expansion easily, simplified code, alleviates the workload of developer, improves development efficiency.
Accompanying drawing explanation
Fig. 1 is schematic diagram of the present invention.
Embodiment
Below in conjunction with specific embodiment, the present invention will be further described.
For data linkage, following is ActionConfig.xml configuration:
Wherein,
Url: the process class of behavior
Target-type: the assembly supporting the behavior, can be concrete class.path, also can be asterisk wildcard;
<action name=" datalink " description=" data linkage "
type="interaction"url="com.gbasebi.gchart.action.DataLink"
target-type="*"/>
The configuration of assembly-event-behavior is read in behavior management module from ActionConfig.xml by system, when assembly passes through mouse or the keyboard operation of user, different events distributes on event bus by assembly, behavior management module monitors the event on event bus, according to configuration file, reflect corresponding behavior process class.
Wherein, described event is mouse or keyboard operation event, as shown in Figure 1, for mouse click event distributes on Time BUS.
The foregoing is only specific embodiments of the invention, the protection domain be not intended to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (4)
1. based on the method for designing that the chart of Flex is mutual, it is characterized in that, comprise the steps:
(1) based on the case mechanism of Flex, adopt the management method of event bus, by configuration file, event is associated with behavior, namely form the configuration of assembly-event-behavior;
(2) configuration of assembly-event-behavior is read in behavior management module from configuration file by system;
(3) when user operation, different events distributes on event bus by assembly;
(4) behavior management module monitors the event on event bus, according to configuration file, carries out corresponding behavior process.
2. a kind of method for designing mutual based on the chart of Flex according to claim 1, is characterized in that, described event is mouse or keyboard operation event.
3. a kind of method for designing mutual based on the chart of Flex according to claim 1, is characterized in that, described configuration file is ActionConfig.xml file.
4. a kind of method for designing mutual based on the chart of Flex according to claim 1, is characterized in that, carries out corresponding behavior process described in step (4), refers to according to configuration file, reflects corresponding behavior process class.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410854661.0A CN104598226A (en) | 2014-12-31 | 2014-12-31 | Chart interaction design method based on Flex |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410854661.0A CN104598226A (en) | 2014-12-31 | 2014-12-31 | Chart interaction design method based on Flex |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104598226A true CN104598226A (en) | 2015-05-06 |
Family
ID=53124046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410854661.0A Pending CN104598226A (en) | 2014-12-31 | 2014-12-31 | Chart interaction design method based on Flex |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104598226A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335821A (en) * | 2015-10-18 | 2016-02-17 | 广州赛意信息科技有限公司 | Fusion-based multiple-system process centralized processing method |
CN106775226A (en) * | 2016-12-05 | 2017-05-31 | 北京中交兴路信息科技有限公司 | A kind of system of gathered data |
CN107038076A (en) * | 2016-10-25 | 2017-08-11 | 努比亚技术有限公司 | Component system and component interaction method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101694614A (en) * | 2009-10-16 | 2010-04-14 | 浪潮电子信息产业股份有限公司 | Method of adding project rendering devices in Flex for project list controls |
CN102739461A (en) * | 2011-04-08 | 2012-10-17 | 深圳市金蝶中间件有限公司 | Method for acquiring background data based on FLEX |
CN103809951A (en) * | 2012-11-12 | 2014-05-21 | 方欣科技有限公司 | Graphical service arrangement and management device based on FLEX technology |
-
2014
- 2014-12-31 CN CN201410854661.0A patent/CN104598226A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101694614A (en) * | 2009-10-16 | 2010-04-14 | 浪潮电子信息产业股份有限公司 | Method of adding project rendering devices in Flex for project list controls |
CN102739461A (en) * | 2011-04-08 | 2012-10-17 | 深圳市金蝶中间件有限公司 | Method for acquiring background data based on FLEX |
CN103809951A (en) * | 2012-11-12 | 2014-05-21 | 方欣科技有限公司 | Graphical service arrangement and management device based on FLEX technology |
Non-Patent Citations (1)
Title |
---|
陈天骢: "基于RTMP与SIP的可视化交互系统研究与设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335821A (en) * | 2015-10-18 | 2016-02-17 | 广州赛意信息科技有限公司 | Fusion-based multiple-system process centralized processing method |
CN107038076A (en) * | 2016-10-25 | 2017-08-11 | 努比亚技术有限公司 | Component system and component interaction method |
CN106775226A (en) * | 2016-12-05 | 2017-05-31 | 北京中交兴路信息科技有限公司 | A kind of system of gathered data |
CN106775226B (en) * | 2016-12-05 | 2020-01-03 | 北京中交兴路信息科技有限公司 | Data acquisition system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Pike | Go at google | |
US20160261702A1 (en) | Method And Apparatus For Processing Page Operation Data | |
CN101477462A (en) | Model-driven software development method used for dynamically changing system behavior | |
CN104657451B (en) | The processing method and processing device of the page | |
Hamon et al. | Formal description of multi-touch interactions | |
CN102810057A (en) | Log recording method | |
CN103559118A (en) | Security auditing method based on aspect oriented programming (AOP) and annotation information system | |
CN104331474A (en) | Page processing method and device | |
CN110059456A (en) | Code protection method, code protection device, storage medium and electronic equipment | |
CN103530097A (en) | Implement method and device of module crossing middleware platform | |
CN111061883B (en) | Method, device, equipment and storage medium for updating knowledge graph | |
CN102654831A (en) | Device and method for intensively controlling WEB page event and state | |
US20220342674A1 (en) | Exception stack handling method, system, electronic device and storage medium | |
CN104598226A (en) | Chart interaction design method based on Flex | |
CN104679493A (en) | Improved method for process event handling mechanism | |
CN101604286A (en) | A kind of method for generating keyword-driving table | |
CN102520963A (en) | Method and system for realizing service logic processing based on strongly-typed relation mapping | |
CN103677819A (en) | Method and device for achieving code forward engineering based on OSGI | |
CN104320387B (en) | Component localization method for customizing, terminal and server | |
CN100456238C (en) | Method and apparatus for realizing distributed object persistence and compiling unit | |
CN104063219A (en) | Form development method and system for WEB system | |
Peng et al. | SimuQ: A domain-specific language for quantum simulation with analog compilation | |
CN103399746B (en) | Information management system convenient to develop secondarily and development method | |
CN103294480B (en) | Mesh row data transformations is the method for data list | |
CN112130849B (en) | Code automatic generation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150506 |