CN107066251A - The generation method and device of control - Google Patents

The generation method and device of control Download PDF

Info

Publication number
CN107066251A
CN107066251A CN201710053575.3A CN201710053575A CN107066251A CN 107066251 A CN107066251 A CN 107066251A CN 201710053575 A CN201710053575 A CN 201710053575A CN 107066251 A CN107066251 A CN 107066251A
Authority
CN
China
Prior art keywords
ring
control
parameter
button area
ring model
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
Application number
CN201710053575.3A
Other languages
Chinese (zh)
Inventor
陈磊
温世斌
曾骁
李明杰
潘柏宇
谢菲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
1Verge Internet Technology Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 1Verge Internet Technology Beijing Co Ltd filed Critical 1Verge Internet Technology Beijing Co Ltd
Priority to CN201710053575.3A priority Critical patent/CN107066251A/en
Publication of CN107066251A publication Critical patent/CN107066251A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This disclosure relates to the generation method and device of control.This method includes:Obtain the number of rings of ring model and control to be generated;Create the ring model object corresponding with the number of rings of the control to be generated;The parameter value of each ring of the control to be generated is obtained, and each ring model object is configured according to the parameter value of each ring;Control is generated according to each ring model object postponed.By the number of rings for obtaining ring model and control to be generated, create the ring model object corresponding with the number of rings of control to be generated, obtain the parameter value of each ring of control to be generated, each ring model object is configured according to the parameter value of each ring, and generate control according to each ring model object postponed, ring model is based on according to the generation method and device of the control of each side of the disclosure and generates control, thus, it is possible to greatly reduce create control produced by repeated and redundant logic, autgmentability is higher and maintenance difficulties are smaller.

Description

The generation method and device of control
Technical field
This disclosure relates to ActiveX Techniques field, more particularly to a kind of control generation method and device.
Background technology
In correlation technique, control is created by the way of drafting.The button number that has in control is more, control function compared with In the case of abundant, control is created by way of drafting can produce the logic of a large amount of repeated and redundants, and autgmentability is relatively low, safeguard Difficulty is larger.
The content of the invention
In view of this, the present disclosure proposes a kind of generation method of control and device, controlled with solving to create in correlation technique Part easily produces and largely repeats easy logic, and autgmentability is relatively low and the problem of larger maintenance difficulties.
According to the one side of the disclosure there is provided a kind of generation method of control, including:
Obtain the number of rings of ring model and control to be generated;
Create the ring model object corresponding with the number of rings of the control to be generated;
The parameter value of each ring of the control to be generated is obtained, and each ring model is configured according to the parameter value of each ring Object;
Control is generated according to each ring model object postponed.
In a kind of possible implementation, before the number of rings of ring model and control to be generated is obtained, methods described is also Including:
Create the ring model.
In a kind of possible implementation, the ring model is created including at least one of following:
Create the dimensional parameters of ring;
Create the number of buttons parameter on ring;
Create button size parameter;
Create the parameter of button area;
Create the rotation offset degree parameter of ring.
In a kind of possible implementation, the parameter of the button area includes location parameter, the icon of button area Parameter and functional parameter.
In a kind of possible implementation, each ring model object is configured according to the parameter value of each ring, including:
For each button area of each ring model object, the position for recording each button area by button label is joined Corresponding relation between numerical value, icon parameter value and functional parameter value three.
It is described after according to each ring model object generation control postponed in a kind of possible implementation Method also includes:
In the case where detecting icon to the second button area of user's the first button area of dragging, described first is updated The icon parameter value and functional parameter value of button area and second button area.
In a kind of possible implementation, the ring model is ring model.
According to another aspect of the present disclosure there is provided a kind of generating means of control, including:
Acquisition module, the number of rings for obtaining ring model and control to be generated;
First creation module, for creating the ring model object corresponding with the number of rings of the control to be generated;
Configuration module, the parameter value of each ring for obtaining the control to be generated, and according to the parameter value of each ring Configure each ring model object;
Generation module, for generating control according to each ring model object postponed.
In a kind of possible implementation, described device also includes:
Second creation module, for creating the ring model.
In a kind of possible implementation, second creation module includes at least one of following:
Ring size parameter creates submodule, the dimensional parameters for creating ring;
Number of buttons parameter creates submodule, for creating the number of buttons parameter on ring;
Button size parameter creates submodule, for creating button size parameter;
Button area parameter creates submodule, the parameter for creating button area;
Rotation offset degree parameter creates submodule, the rotation offset degree parameter for creating ring.
In a kind of possible implementation, the parameter of the button area includes location parameter, the icon of button area Parameter and functional parameter.
In a kind of possible implementation, the configuration module includes:
Button label record sub module, for each button area for each ring model object, passes through button label Record the corresponding relation between location parameter value, icon parameter value and the functional parameter value three of each button area.
In a kind of possible implementation, described device also includes:
Update module, for detecting the icon of user's the first button area of dragging to the situation of the second button area Under, update the icon parameter value and functional parameter value of first button area and second button area.
In a kind of possible implementation, described device also includes:
Update module, for detecting the icon of user's the first button area of dragging to the situation of the second button area Under, update the icon parameter value and functional parameter value of first button area and second button area.
According to another aspect of the present disclosure there is provided a kind of generating means of control, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the number of rings of ring model and control to be generated;
Create the ring model object corresponding with the number of rings of the control to be generated;
The parameter value of each ring of the control to be generated is obtained, and each ring model is configured according to the parameter value of each ring Object;
Control is generated according to each ring model object postponed.
According to another aspect of the present disclosure there is provided a kind of non-volatile computer readable storage medium storing program for executing, when the storage Instruction in medium by terminal and/or the computing device of server when so that terminal and/or server are able to carry out a kind of control The generation method of part, methods described includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the number of rings of ring model and control to be generated;
Create the ring model object corresponding with the number of rings of the control to be generated;
The parameter value of each ring of the control to be generated is obtained, and each ring model is configured according to the parameter value of each ring Object;
Control is generated according to each ring model object postponed.
By obtaining the number of rings of ring model and control to be generated, the ring model corresponding with the number of rings of control to be generated is created Object, obtains the parameter value of each ring of control to be generated, each ring model object, and root is configured according to the parameter value of each ring Control is generated according to each ring model object postponed, is based on according to the generation method and device of the control of each side of the disclosure Ring model generate control, thus, it is possible to greatly reduce create control produced by repeated and redundant logic, autgmentability it is higher and dimension Protect difficulty smaller.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the further feature and aspect of the disclosure will become It is clear.
Brief description of the drawings
Comprising in the description and constituting accompanying drawing and the specification of a part of specification and together illustrate the disclosure Exemplary embodiment, feature and aspect, and for explaining the principle of the disclosure.
Fig. 1 shows the flow chart of the generation method of the control according to the embodiment of the disclosure one.
Fig. 2 shows showing with the ring model object postponed in the generation method according to the control of the embodiment of the disclosure one It is intended to.
Fig. 3 shows the schematic diagram of the control generated in the generation method according to the control of the embodiment of the disclosure one.
Fig. 4 shows the block diagram of the generating means of the control according to the embodiment of the disclosure one.
Fig. 5 shows an exemplary block diagram of the generating means of the control according to the embodiment of the disclosure one.
Fig. 6 is a kind of block diagram of the device 800 of generation for control according to an exemplary embodiment.
Embodiment
Describe various exemplary embodiments, feature and the aspect of the disclosure in detail below with reference to accompanying drawing.It is identical in accompanying drawing Reference represent the same or analogous element of function.Although the various aspects of embodiment are shown in the drawings, remove Non-specifically is pointed out, it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " is meant " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details are given in embodiment below. It will be appreciated by those skilled in the art that without some details, the disclosure can equally be implemented.In some instances, for Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the disclosure.
Embodiment 1
Fig. 1 shows the flow chart of the generation method of the control according to the embodiment of the disclosure one.As shown in figure 1, this method bag Include:
In step s 11, the number of rings of ring model and control to be generated is obtained.
In a kind of possible implementation, ring model is ring model.In other possible implementations, ring model It can also be oval ring model or square ring model etc., be not limited thereto.
In the present embodiment, the number of rings of control to be generated is more than or equal to 1.
In step s 12, the ring model object corresponding with the number of rings of control to be generated is created.
For example, the number of rings of control to be generated is N, then N number of ring model object is created, wherein, N is positive integer.The present embodiment In ring model object can according to ring model create object.
In step s 13, the parameter value of each ring of control to be generated is obtained, and configures each according to the parameter value of each ring Individual ring model object.
As an example of the present embodiment, the parameter value of each ring of acquired control to be generated can include following At least one of:The size of each ring, the number of buttons on each ring, the button size on each ring, the position of each button area Put, the rotation offset degree of the function of the icon of each button area, each button area and each ring.Wherein, it is in ring model In the case of ring model, the size of each ring can include the exradius and inner circle radius of each ring.Pressing on each ring Button number can be different, and the number of buttons on the ring of outer layer can be more than the number of buttons on the ring of internal layer.Pressing on each ring Button size can be not limited thereto with identical.The icon of button area on each ring can be square.In the figure of button area Be designated as it is square in the case of, the number of plies of ring where the position of button area can include the button area, and square icon Coordinate, the coordinate of bottom right angle point of upper left angle point.In square icon, the part beyond button pattern can be pressed with non-on ring The color in button region is identical.As shown in Fig. 2 in the icon of flash of light button, the part beyond flash lamp pattern can be with ring The color in upper non-button region is identical.Include each button area in the parameter value of each ring of acquired control to be generated In the case of the function of position, the icon of each button area and each button area, acquired control to be generated each Corresponding relation of the parameter value of ring also between position, icon and function three including button area.
In step S14, control is generated according to each ring model object postponed.
In the present embodiment, it will can be superimposed with each ring model object postponed, the control generated.
The control of the present embodiment generation can apply in live interface, video record interface or video playback interface, It can also be applied in any required interface using control, be not limited thereto.
Fig. 2 shows showing with the ring model object postponed in the generation method according to the control of the embodiment of the disclosure one It is intended to.
Fig. 3 shows the schematic diagram of the control generated in the generation method according to the control of the embodiment of the disclosure one.Such as Fig. 3 institutes Show, the control includes 2 layers of ring, i.e. the control is generated according to 2 ring model objects.
By obtaining the number of rings of ring model and control to be generated, the ring model corresponding with the number of rings of control to be generated is created Object, obtains the parameter value of each ring of control to be generated, each ring model object, and root is configured according to the parameter value of each ring Control is generated according to each ring model object postponed, being based on ring model according to the generation method of the control of the present embodiment generates control Part, the logic of the repeated and redundant produced by control is created thus, it is possible to greatly reduce, autgmentability is higher, and multilayer is expanded to from two layers Seldom workload is only needed, and maintenance difficulties are smaller.
In a kind of possible implementation, before the number of rings of ring model and control to be generated is obtained, this method is also wrapped Include:Create ring model.
In a kind of possible implementation, ring model is created including at least one of following:Create the dimensional parameters of ring;Wound The number of buttons parameter built on ring;Create button size parameter;Create the parameter of button area;Create the rotation offset degree ginseng of ring Number.In the case where ring model is ring model, the dimensional parameters of ring can include the exradius parameter and inner circle radius of ring Parameter.In the case where the icon of button is square, button size parameter can be the length of side parameter of button icon.In the realization In mode, control can with integral-rotation, or, every layer of ring of control can independently rotate.By the rotation offset degree for setting ring Parameter, can record rotation offset degree of the current location relative to initial position of every layer of ring, so as to realize every layer of ring Independent rotation.The rotation offset degree can be the angle that current location is rotated clockwise to from the initial position of ring.
As an example of the implementation, the parameter of button area includes the location parameter of button area, icon ginseng Number and functional parameter.Wherein, the layer number parameter and button of ring where the location parameter of button area can include button are at this Location parameter on ring.In the case where the icon of button area is square, the location parameter of button area can include button The number of rings parameter of layer where region, and the upper left angle point of button area coordinate parameters, the coordinate parameters of bottom right angle point.
As an example of the present embodiment, the button on each ring is uniformly distributed.
In a kind of possible implementation, each ring model object is configured according to the parameter value of each ring, including:For Join each button area of each ring model object, the position that each button area is recorded by button label (ButtonTag) Corresponding relation between numerical value, icon parameter value and functional parameter value three., can be by button area in the implementation Location parameter is peeled off with icon parameter, functional parameter, passes through location parameter value and the figure in button label associated buttons region Mark parameter value, functional parameter value, it is possible to when user clicks on the button of a certain position, pressed according to the button of the position is corresponding The corresponding function of button tag triggers., can by the way that the location parameter of button area is peeled off with icon parameter, functional parameter Dragging of the button between same layer or different layers is realized, thus, it is possible to position of the flexible movable button on control, so that Consumer's Experience can be improved.
In a kind of possible implementation, after according to each ring model object generation control postponed, the party Method also includes:In the case where detecting icon to the second button area of user's the first button area of dragging, update first and press Button region and the icon parameter value and functional parameter value of the second button area.Wherein, the first button area can be on control Any one button area, the second button area can be any one button area on control in addition to the first button area Domain.First button area and the second button area may be on same layer ring, can also be on the ring of different layers, herein not It is construed as limiting.In the implementation, can by dragging icon come the position of moving icon, detect user's dragging first by In the case of the icon in button region to the second button area, the location parameter value of the first button area and the second button area is not Become, the first button area and the second button area interchange icons parameter value and functional parameter value.In the implementation, Ke Yigeng The first button area and the icon parameter value of the second button area and functional parameter value that new button label is recorded, it is possible to root Show the icon of the first button area and the second button area again according to the button label after renewal.
Embodiment 2
Fig. 4 shows the block diagram of the generating means of the control according to the embodiment of the disclosure one.As shown in figure 4, the device includes: Acquisition module 41, the number of rings for obtaining ring model and control to be generated;First creation module 42, for create with it is described to be generated Into the corresponding ring model object of the number of rings of control;Configuration module 43, the ginseng of each ring for obtaining the control to be generated Numerical value, and each ring model object is configured according to the parameter value of each ring;Generation module 44, for according to each ring postponed Model object generates control.
Fig. 5 shows an exemplary block diagram of the generating means of the control according to the embodiment of the disclosure one.As shown in Figure 5:
In a kind of possible implementation, described device also includes:
Second creation module 45, for creating the ring model.
In a kind of possible implementation, second creation module 45 includes at least one of following:
Ring size parameter creates submodule 451, the dimensional parameters for creating ring;
Number of buttons parameter creates submodule 452, for creating the number of buttons parameter on ring;
Button size parameter creates submodule 453, for creating button size parameter;
Button area parameter creates submodule 454, the parameter for creating button area;
Rotation offset degree parameter creates submodule 455, the rotation offset degree parameter for creating ring.
In a kind of possible implementation, the parameter of the button area includes location parameter, the icon of button area Parameter and functional parameter.
In a kind of possible implementation, the configuration module 43 includes:
Button label record sub module 431, for each button area for each ring model object, passes through button mark Label record the corresponding relation between location parameter value, icon parameter value and the functional parameter value three of each button area.
In a kind of possible implementation, described device also includes:
Update module 46, for detecting the icon of user's the first button area of dragging to the situation of the second button area Under, update the icon parameter value and functional parameter value of first button area and second button area.
In a kind of possible implementation, the ring model is ring model.
By obtaining the number of rings of ring model and control to be generated, the ring model corresponding with the number of rings of control to be generated is created Object, obtains the parameter value of each ring of control to be generated, each ring model object, and root is configured according to the parameter value of each ring Control is generated according to each ring model object postponed, being based on ring model according to the generating means of the control of the present embodiment generates control Part, thus, it is possible to greatly reduce create control produced by repeated and redundant logic, autgmentability is higher and maintenance difficulties are smaller.
Embodiment 3
Fig. 6 is a kind of block diagram of the device 800 of generation for control according to an exemplary embodiment.For example, Device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, doctor Treat equipment, body-building equipment, personal digital assistant etc..
Reference picture 6, device 800 can include following one or more assemblies:Processing assembly 802, memory 804, power supply Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and Communication component 816.
The integrated operation of the usual control device 800 of processing assembly 802, such as with display, call, data communication, phase Machine operates the operation associated with record operation.Processing assembly 802 can refer to including one or more processors 820 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing assembly 802 can include one or more modules, just Interaction between processing assembly 802 and other assemblies.For example, processing assembly 802 can include multi-media module, it is many to facilitate Interaction between media component 808 and processing assembly 802.
Memory 804 is configured as storing various types of data supporting the operation in device 800.These data are shown Example includes the instruction of any application program or method for being operated on device 800, and contact data, telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detection touches or slide related duration and pressure with described.In certain embodiments, many matchmakers Body component 808 includes a front camera and/or rear camera.When device 800 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike Wind (MIC), when device 800 be in operator scheme, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 804 or via communication set Part 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 is provide interface between processing assembly 802 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor cluster 814 can detect opening/closed mode of device 800, the relative positioning of component is for example described Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device Position change, the existence or non-existence that user contacts with device 800, the orientation of device 800 or acceleration/deceleration and device 800 Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect in not any physical contact The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing including instructing, example are additionally provided Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of device 800.
The disclosure can be system, method and/or computer program product.Computer program product can include computer Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the disclosure.
Computer-readable recording medium can keep and store to perform the tangible of the instruction that equipment is used by instruction Equipment.Computer-readable recording medium for example can be-- but be not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electromagnetism storage device, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer-readable recording medium More specifically example (non exhaustive list) includes:Portable computer diskette, hard disk, random access memory (RAM), read-only deposit It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static RAM (SRAM), portable Compact disk read-only storage (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon Be stored with instruction punch card or groove internal projection structure and above-mentioned any appropriate combination.It is used herein above to calculate Machine readable storage medium storing program for executing is not construed as instantaneous signal in itself, the electromagnetic wave of such as radio wave or other Free propagations, logical Cross the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or transmitted by electric wire Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer-readable recording medium each calculate/ Processing equipment, or outer computer is downloaded to or outer by network, such as internet, LAN, wide area network and/or wireless network Portion's storage device.Network can be transmitted, be wirelessly transferred including copper transmission cable, optical fiber, router, fire wall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
For perform the disclosure operation computer program instructions can be assembly instruction, instruction set architecture (ISA) instruction, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages Source code or object code that any combination is write, programming language of the programming language including object-oriented-such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can perform fully on the user computer, partly perform on the user computer, as one solely Vertical software kit is performed, part is performed or completely in remote computer on the remote computer on the user computer for part Or performed on server.In the situation of remote computer is related to, remote computer can be by network-bag of any kind LAN (LAN) or wide area network (WAN)-be connected to subscriber computer are included, or, it may be connected to outer computer is (such as sharp With ISP come by Internet connection).In certain embodiments, by using computer-readable program instructions Status information carry out personalized customization electronic circuit, such as PLD, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can perform computer-readable program instructions, so as to realize each side of the disclosure Face.
Referring herein to the method according to the embodiment of the present disclosure, device (system) and computer program product flow chart and/ Or block diagram describes various aspects of the disclosure.It should be appreciated that each square frame and flow chart of flow chart and/or block diagram and/ Or in block diagram each square frame combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to all-purpose computer, special-purpose computer or other programmable datas The processor of processing unit, so as to produce a kind of machine so that these instructions are passing through computer or other programmable datas During the computing device of processing unit, work(specified in one or more of implementation process figure and/or block diagram square frame is generated The device of energy/action.Can also be the storage of these computer-readable program instructions in a computer-readable storage medium, these refer to Order causes computer, programmable data processing unit and/or other equipment to work in a specific way, so that, be stored with instruction Computer-readable medium then includes a manufacture, and it is included in one or more of implementation process figure and/or block diagram square frame The instruction of the various aspects of defined function/action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment so that perform series of operation steps on computer, other programmable data processing units or miscellaneous equipment, to produce Raw computer implemented process, so that performed on computer, other programmable data processing units or miscellaneous equipment Instruct function/action specified in one or more of implementation process figure and/or block diagram square frame.
Flow chart and block diagram in accompanying drawing show the system, method and computer journey of multiple embodiments according to the disclosure Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation One module of table, program segment or a part for instruction, the module, program segment or a part for instruction are used comprising one or more In the executable instruction for realizing defined logic function.In some realizations as replacement, the function of being marked in square frame Can be with different from the order marked in accompanying drawing generation.For example, two continuous square frames can essentially be held substantially in parallel OK, they can also be performed in the opposite order sometimes, and this is depending on involved function.It is also noted that block diagram and/or The combination of each square frame in flow chart and the square frame in block diagram and/or flow chart, can use function as defined in execution or dynamic The special hardware based system made is realized, or can be realized with the combination of specialized hardware and computer instruction.
It is described above the presently disclosed embodiments, described above is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport The principle, practical application or the technological improvement to the technology in market of each embodiment are best being explained, or is leading this technology Other those of ordinary skill in domain are understood that each embodiment disclosed herein.

Claims (15)

1. a kind of generation method of control, it is characterised in that including:
Obtain the number of rings of ring model and control to be generated;
Create the ring model object corresponding with the number of rings of the control to be generated;
The parameter value of each ring of the control to be generated is obtained, and each ring model pair is configured according to the parameter value of each ring As;
Control is generated according to each ring model object postponed.
2. according to the method described in claim 1, it is characterised in that before the number of rings of ring model and control to be generated is obtained, Methods described also includes:
Create the ring model.
3. method according to claim 2, it is characterised in that create the ring model including at least one of following:
Create the dimensional parameters of ring;
Create the number of buttons parameter on ring;
Create button size parameter;
Create the parameter of button area;
Create the rotation offset degree parameter of ring.
4. method according to claim 3, it is characterised in that the parameter of the button area includes the position of button area Parameter, icon parameter and functional parameter.
5. method as claimed in any of claims 1 to 4, it is characterised in that configured according to the parameter value of each ring Each ring model object, including:
For each button area of each ring model object, the location parameter of each button area is recorded by button label Corresponding relation between value, icon parameter value and functional parameter value three.
6. method according to claim 5, it is characterised in that generating control according to each ring model object postponed Afterwards, methods described also includes:
In the case where detecting icon to the second button area of user's the first button area of dragging, first button is updated Region and the icon parameter value and functional parameter value of second button area.
7. according to the method described in claim 1, it is characterised in that the ring model is ring model.
8. a kind of generating means of control, it is characterised in that including:
Acquisition module, the number of rings for obtaining ring model and control to be generated;
First creation module, for creating the ring model object corresponding with the number of rings of the control to be generated;
Configuration module, the parameter value of each ring for obtaining the control to be generated, and configured according to the parameter value of each ring Each ring model object;
Generation module, for generating control according to each ring model object postponed.
9. device according to claim 8, it is characterised in that described device also includes:
Second creation module, for creating the ring model.
10. device according to claim 9, it is characterised in that second creation module includes at least one of following:
Ring size parameter creates submodule, the dimensional parameters for creating ring;
Number of buttons parameter creates submodule, for creating the number of buttons parameter on ring;
Button size parameter creates submodule, for creating button size parameter;
Button area parameter creates submodule, the parameter for creating button area;
Rotation offset degree parameter creates submodule, the rotation offset degree parameter for creating ring.
11. device according to claim 10, it is characterised in that the parameter of the button area includes the position of button area Put parameter, icon parameter and functional parameter.
12. the device according to any one in claim 8 to 11, it is characterised in that the configuration module includes:
Button label record sub module, for each button area for each ring model object, is recorded by button label Corresponding relation between location parameter value, icon parameter value and the functional parameter value three of each button area.
13. device according to claim 12, it is characterised in that described device also includes:
Update module, for detect user drag the first button area icon to the second button area in the case of, more The icon parameter value and functional parameter value of new first button area and second button area.
14. device according to claim 8, it is characterised in that the ring model is ring model.
15. a kind of generating means of control, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the number of rings of ring model and control to be generated;
Create the ring model object corresponding with the number of rings of the control to be generated;
The parameter value of each ring of the control to be generated is obtained, and each ring model pair is configured according to the parameter value of each ring As;
Control is generated according to each ring model object postponed.
CN201710053575.3A 2017-01-22 2017-01-22 The generation method and device of control Pending CN107066251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710053575.3A CN107066251A (en) 2017-01-22 2017-01-22 The generation method and device of control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710053575.3A CN107066251A (en) 2017-01-22 2017-01-22 The generation method and device of control

Publications (1)

Publication Number Publication Date
CN107066251A true CN107066251A (en) 2017-08-18

Family

ID=59598017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710053575.3A Pending CN107066251A (en) 2017-01-22 2017-01-22 The generation method and device of control

Country Status (1)

Country Link
CN (1) CN107066251A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331932A (en) * 2011-09-08 2012-01-25 北京像素软件科技股份有限公司 Method for realizing menu interface
CN103713809A (en) * 2012-09-29 2014-04-09 中国移动通信集团公司 Dynamic generating method and dynamic generating device for annular menu of touch screen
CN103838472A (en) * 2014-02-28 2014-06-04 华南理工大学 Multilevel functional navigation menu formed by sector and concentric circle and working method of menu
CN103941970A (en) * 2014-05-12 2014-07-23 上海卓悠网络科技有限公司 Menu achieving method and device
US20140289678A1 (en) * 2006-05-18 2014-09-25 Ubiquity Broadcasting Corporation Sprocket Shaped User Interface for Navigating a Dynamic Collection of Information
CN104317487A (en) * 2014-11-12 2015-01-28 北京国双科技有限公司 Display method and display device of annular menu
CN104750367A (en) * 2015-03-02 2015-07-01 惠州Tcl移动通信有限公司 Menu display method and display device
CN105607849A (en) * 2015-12-16 2016-05-25 广东欧珀移动通信有限公司 Terminal icon processing method and system
CN106020658A (en) * 2016-02-05 2016-10-12 四川长虹电器股份有限公司 Method for realizing functional key interchange of intelligent mobile terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140289678A1 (en) * 2006-05-18 2014-09-25 Ubiquity Broadcasting Corporation Sprocket Shaped User Interface for Navigating a Dynamic Collection of Information
CN102331932A (en) * 2011-09-08 2012-01-25 北京像素软件科技股份有限公司 Method for realizing menu interface
CN103713809A (en) * 2012-09-29 2014-04-09 中国移动通信集团公司 Dynamic generating method and dynamic generating device for annular menu of touch screen
CN103838472A (en) * 2014-02-28 2014-06-04 华南理工大学 Multilevel functional navigation menu formed by sector and concentric circle and working method of menu
CN103941970A (en) * 2014-05-12 2014-07-23 上海卓悠网络科技有限公司 Menu achieving method and device
CN104317487A (en) * 2014-11-12 2015-01-28 北京国双科技有限公司 Display method and display device of annular menu
CN104750367A (en) * 2015-03-02 2015-07-01 惠州Tcl移动通信有限公司 Menu display method and display device
CN105607849A (en) * 2015-12-16 2016-05-25 广东欧珀移动通信有限公司 Terminal icon processing method and system
CN106020658A (en) * 2016-02-05 2016-10-12 四川长虹电器股份有限公司 Method for realizing functional key interchange of intelligent mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MINIGEEK: "android开发笔记之仿优酷菜单", 《HTTPS://BLOG.CSDN.NET/QQ_22063697/ARTICLE/DETAILS/51429500》 *
鸿洋_: "Android 打造炫目的圆形菜单 秒秒钟高仿建行圆形菜单", 《HTTPS://BLOG.CSDN.NET/LMJ623565791/ARTICLE/DETAILS/43131133》 *

Similar Documents

Publication Publication Date Title
CN106792075A (en) Video broadcasting method and device
CN106804000A (en) Direct playing and playback method and device
CN107729522A (en) Multimedia resource fragment intercept method and device
CN106993229A (en) Interactive attribute methods of exhibiting and device
CN106991018A (en) The method and device of changing an interface skin
CN107820131A (en) Share the method and device of comment information
CN106960014A (en) Association user recommends method and device
CN107229411A (en) Control the method and device of split screen state
CN108540850A (en) Barrage display methods and device
CN106897399A (en) Character displaying method and device
CN106896915A (en) Input control method and device based on virtual reality
CN106899875A (en) The display control method and device of plug-in captions
CN107797741A (en) Method for showing interface and device
CN107943550A (en) Method for showing interface and device
CN106990891A (en) The display control method and device of barrage
CN108062364A (en) Information displaying method and device
CN107885418A (en) Terminal, multi-screen display method and device
CN110234030A (en) The display methods and device of barrage information
CN108156506A (en) The progress adjustment method and device of barrage information
CN106775777A (en) Content interaction method and device
CN107330391A (en) Product information reminding method and device
CN107147936A (en) The display control method and device of barrage
CN106792255A (en) Video playback window framework display methods and device
CN106998493A (en) The method for previewing and device of video
CN106873994A (en) Interface display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Applicant after: Youku network technology (Beijing) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Applicant before: 1VERGE INTERNET TECHNOLOGY (BEIJING) Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200612

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Applicant before: Youku network technology (Beijing) Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170818