CN109284164A - A kind of icon display method and device - Google Patents

A kind of icon display method and device Download PDF

Info

Publication number
CN109284164A
CN109284164A CN201811158914.5A CN201811158914A CN109284164A CN 109284164 A CN109284164 A CN 109284164A CN 201811158914 A CN201811158914 A CN 201811158914A CN 109284164 A CN109284164 A CN 109284164A
Authority
CN
China
Prior art keywords
icon
information
display area
icon information
information set
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.)
Granted
Application number
CN201811158914.5A
Other languages
Chinese (zh)
Other versions
CN109284164B (en
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811158914.5A priority Critical patent/CN109284164B/en
Publication of CN109284164A publication Critical patent/CN109284164A/en
Application granted granted Critical
Publication of CN109284164B publication Critical patent/CN109284164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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

Landscapes

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

Abstract

The present invention provides a kind of icon display method and devices, this method comprises: screen is divided into different grades of display area;Create mutual exclusion manager;Following operation is executed by mutual exclusion manager: when display area receives icon information, icon information being added in icon information set;Filter out the icon information of highest priority from the respective icon information set in display area, the step of screening includes: two icon informations of acquisition from icon information set;Determine the higher target icon information of priority in two icon informations;It obtains next icon information to be compared, until all icon informations in icon information set relatively finish, obtains the icon information of highest priority in icon information set;The highest icon information of display priority.The icon information that highest priority can be filtered out by mutual exclusion manager is shown again.

Description

A kind of icon display method and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of icon display methods and device.
Background technique
In general, being only able to display one in same display area after screen is divided into multiple and different display areas Icon rapidly identifies the position where icon in order to user, and carries out the operation of related service.
However, as application is more and more abundant, it is also more and more using corresponding number of icons, when same display area connects When receiving the icon information of multiple pre-display, multiple icons can only be shown in same display area, can thus generate icon The problem of overlapping, causes the difficulty of icon-based programming big, is not easy to operate or even some icons are all blocked, user is basic It can not identify.
Summary of the invention
The present invention provides a kind of icon display method and device, solve multiple icons in the prior art be shown in it is same The problem of icon-based programming difficulty caused by display area is big, is not easy to operation.
In a first aspect, the embodiment of the invention provides a kind of icon display methods, which comprises
Screen is divided into different grades of display area;
Mutual exclusion manager is created, the mutual exclusion manager includes the information of each display area, the display area Information include the class information of the display area, the location information of the display area and the display area icon letter Breath set;
Following operation is executed by the mutual exclusion manager:, will be described when the display area receives icon information Icon information is added in the respective icon information set in the display area;Class information based on the display area is successively The icon information of highest priority is filtered out from each respective icon information set in display area, wherein screening Step includes: two icon informations of acquisition from the icon information set;It is searched from preset priority list described two The precedence information of icon information, the preset priority list are the corresponding relationship of icon information and precedence information;It is based on The precedence information of described two icon informations determines the higher target icon information of priority in described two icon informations; Next icon information is obtained from the icon information set;By next icon information and the target icon information It is compared to obtain next target icon information, until all icon informations in the icon information set relatively finish, Obtain the icon information of highest priority in the icon information set;
Location information based on the display area shows the icon information of the highest priority.
In some possible implementations, before the creation mutual exclusion manager, the method also includes:
The icon information set of List<Object>type is created, each icon information in the icon information set Type is Object.
In some possible implementations, the mutual exclusion manager by MAP object be coupled the display area etc. Grade information, the location information of the display area and the icon information set of the display area.
In some possible implementations, described two icon informations are searched from preset priority list described Before precedence information, the method also includes:
Priority based on the corresponding type of service of the icon information creates the preset priority list.
In some possible implementations, the mutual exclusion manager indicates the viewing area by position field The location information of the class information in domain and the display area, the position field are the constant of integer type.
It is described that screen is divided into the different display area of grade in some possible implementations, comprising:
Screen is divided into different grades of display area according to size.
Second aspect, the embodiment of the invention provides a kind of icon display device, described device includes:
Division unit, for screen to be divided into different grades of display area;
Creating unit, for creating mutual exclusion manager, the mutual exclusion manager includes the information of each display area, The information of the display area includes the class information of the display area, the location information of the display area and the display The icon information set in region;
Execution unit, for executing following operation by the mutual exclusion manager: when the display area receives icon When information, the icon information is added in the respective icon information set in the display area;Based on the display area Class information successively filtered out from each respective icon information set in display area highest priority icon letter Breath, wherein the step of screening includes: two icon informations of acquisition from the icon information set;From preset priority list The middle precedence information for searching described two icon informations, the preset priority list are icon information and precedence information Corresponding relationship;Based on the precedence information of described two icon informations, determine that priority is higher in described two icon informations Target icon information;Next icon information is obtained from the icon information set;By next icon information and institute It states target icon information to be compared to obtain next target icon information, all icons in the icon information set Information relatively finishes, and obtains the icon information of highest priority in the icon information set;
Display unit shows the icon information of the highest priority for the location information based on the display area.
In some possible implementations, the creating unit is also used to create the icon letter of List<Object>type Breath is gathered, and the type of each icon information in the icon information set is Object.
The third aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and when the computer program is executed by processor, above-mentioned icon display method may be implemented Any implementation.
Fourth aspect the embodiment of the invention provides a kind of computer equipment, including processor, memory and is stored in On memory and the computer program that can run on a processor, when the processor executes the computer program, Ke Yishi Any implementation of existing above-mentioned icon display method.
In icon display method provided in an embodiment of the present invention, screen is divided into different grades of display area;Creation Mutual exclusion manager, the mutual exclusion manager include the information of each display area, and the information of the display area includes institute State the icon information set of the class information of display area, the location information of the display area and the display area;Pass through The mutual exclusion manager executes following operation: when the display area receives icon information, the icon information being added Into the respective icon information set in the display area;Class information based on the display area is successively from each described aobvious Show the icon information that highest priority is filtered out in the respective icon information set in region, wherein the step of screening includes: from institute State two icon informations of acquisition in icon information set;The preferential of described two icon informations is searched from preset priority list Grade information, the preset priority list are the corresponding relationship of icon information and precedence information;Believed based on described two icons The precedence information of breath determines the higher target icon information of priority in described two icon informations;From the icon information Next icon information is obtained in set;Next icon information is compared to obtain down with the target icon information One target icon information obtains the icon letter until all icon informations in the icon information set relatively finish The icon information of highest priority in breath set;Location information based on the display area shows the figure of the highest priority Mark information.When display area receives multiple icon informations to be shown, can be filtered out by mutual exclusion manager one it is excellent The first highest icon information of grade shows solve multiple icons in the prior art and be shown in icon caused by same display area again The problem of identifying that difficulty is big, being not easy to operation.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others Attached drawing.
Fig. 1 is the flow chart of icon display method in the embodiment of the present application;
Fig. 2 is the structural schematic diagram of icon display device in the embodiment of the present application;
Fig. 3 is the structural schematic diagram of computer equipment in the embodiment of the present application;
Fig. 4 is the structural schematic diagram of computer readable storage medium in the embodiment of the present application.
Specific embodiment
The embodiment of the invention provides a kind of icon display method and device, when display area receive it is multiple to be shown When icon information, the icon information that a highest priority can be filtered out by mutual exclusion manager shows solve existing again The problem of it is big to be shown in icon-based programming difficulty caused by same display area for multiple icons in technology, is not easy to operation.
Technical solution in the embodiment of the present invention, general thought are as follows:
Screen is divided into different grades of display area;Mutual exclusion manager is created, the mutual exclusion manager includes each The information of the display area, the information of the display area include the class information of the display area, the display area Location information and the display area icon information set;Following operation is executed by the mutual exclusion manager: when described When display area receives icon information, the icon information is added to the respective icon information set in the display area In;Class information based on the display area is successively filtered out from each respective icon information set in display area The icon information of highest priority, wherein the step of screening includes: that two icons letters are obtained from the icon information set Breath;The precedence information of described two icon informations is searched from preset priority list, the preset priority list is figure Mark the corresponding relationship of information and precedence information;Based on the precedence information of described two icon informations, described two figures are determined Mark the higher target icon information of priority in information;Next icon information is obtained from the icon information set;By institute It states next icon information to be compared to obtain next target icon information with the target icon information, until the icon All icon informations in information aggregate relatively finish, and obtain the icon information of highest priority in the icon information set; Location information based on the display area shows the icon information of the highest priority.When display area receives multiple want When the icon information of display, the icon information that a highest priority can be filtered out by mutual exclusion manager is shown again, is solved The problem of it is big to be shown in icon-based programming difficulty caused by same display area for multiple icons in the prior art, is not easy to operation.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".Furthermore variable used herein or function Title can also indicate identical meaning using other titles, this is not restricted in some other implementations.
Embodiment one
The embodiment of the present invention one provides a kind of icon display method, referring to FIG. 1, the described method includes:
S101, screen is divided into different grades of display area.
Specifically, screen can be first divided into the display area to differ in size, screen is divided into difference according still further to size The display area of grade, such as the bigger higher grade of area of display area, and the smaller lower grade of the area of display area, can also Screen to be first divided into the display area of size equalization, screen is divided into different grades of viewing area according still further to vision priority Domain, such as display area among screen are higher ranked, and the grade of the display area of screen edges and corners position is lower, can also Screen is divided into different grades of display area in conjunction with various ways, this is not restricted.
It should also be noted that, the screen in the present embodiment can be smart phone, smartwatch, desktop computer, notes The screen of the electronic equipments such as this or tablet computer is distinguished according to the material of screen, can also be TFT-LCD (thin film Transistor-liquid crystal display, film transistor type liquid crystal display) or OLED (Organic Light Emitting Display, organic light emitting display) etc., this is not restricted.
S102, creation mutual exclusion manager, the mutual exclusion manager includes the information of each display area, the display The information in region includes the figure of the class information of the display area, the location information of the display area and the display area Mark information aggregate.
Specifically, indicating the class information of the display area and the position of the display area by position field Confidence breath, i.e., the position field had both illustrated the class information of display area, while showing also the position of display area Information.In code realization, which is the constant of integer type, wherein integer can be used for distinguishing different aobvious Show interregional location information and the grade for demarcating display area, and integer, which is defined as constant, can reinforce code It can be readability and maintainable.For example, position field is implemented as follows:
Public static final int FIRST_POSITION=1;
Public static final int SECOND_POSITION=2;
Wherein, static final indicates that constant, Public indicate that other classes have the permission for accessing the variable, FIRST_ POSITION indicate constant be integer 1, SECOND_POSITION indicate constant be integer 2, subsequent FIRST_POSITION and The value of SECOND_POSITION can not be modified again.In some other implementations, the location information and grade of display area Other different name variables can also be respectively adopted to indicate in information, and this is not restricted.
In addition to designing position field, the icon information set of List<Object>type is also first created, due to figure Mark information aggregate, which will store, needs icon information to be shown, it is therefore desirable to consider various types of icon informations, and Object Type is the type of a top layer, can accommodate any type of data, so every in the icon information set of the present embodiment The type definition of a icon information is Object.
The position field of above-mentioned expression display area class information and location information is designed, and indicates icon letter Cease set List<Object>data structure after, it is also necessary to again by design one method come construct position with Connection between List<Object>, specifically, the grade that can be coupled the display area by designing a MAP object is believed The icon information set of breath, the location information of the display area and the display area, i.e., by defining a MAP < int, The data of List<Object>>type construct the connection between position and List<Object>, and wherein int is for storing The information of position.As it can be seen that MAP is a set, List<Object>is also a set, by designing this multilayer collection Close the target that nested mode has been finally completed creation mutual exclusion manager data structure.The data structure of mutual exclusion manager is created After MAP<int, List<Object>>type, need to carry out the data of the type the process of one instance object, it is specific real The method of the data of exampleization MAP<int, List<Object>>type is realized by calling its constructed fuction, with instantiation It is specific as follows for mMap:
MAP<int, List<Object>>mMap=new HashMap<int, List<Object>>()
It is appreciated that the present embodiment is only introduced by taking mMap example as an example, the present embodiment is not limited, below It repeats no more.
S103, following operation is executed by the mutual exclusion manager:, will when the display area receives icon information The icon information is added in the respective icon information set in the display area;Class information based on the display area The icon information of highest priority is successively filtered out from each respective icon information set in display area, wherein sieve The step of selecting includes: two icon informations of acquisition from the icon information set;Described in being searched from preset priority list The precedence information of two icon informations, the preset priority list are the corresponding relationship of icon information and precedence information; Based on the precedence information of described two icon informations, the higher target icon letter of priority in described two icon informations is determined Breath;Next icon information is obtained from the icon information set;By next icon information and the target icon Information is compared to obtain next target icon information, until all icon informations in the icon information set are completeer Finish, obtains the icon information of highest priority in the icon information set.
After creating mutual exclusion manager, pipe can be carried out to the icon information of each display area by the way that mutual exclusion manager is unified Reason, when display area receives icon information, is added to the respective icon information in the display area for the icon information In set, wherein icon information can be server transmission, be also possible to backstage is sent or other InterWorking Equipments It sends, this is not restricted.For example, it is assumed that in the display area that position field is FIRST_POSITION, connect Two icon informations item1 and item2 are received, icon information is added to the realization packet of the icon information set of display area It includes: first determining the display area where icon information, construct the object of an icon information set, then to create icon information For collection object listItems, specific building process be List<Object>listItems=new ArrayList< Object > (), then by calling listItems.add (item1) and listItems.add in listItems object (item2) relevant icon information is stored in set listItems by method, then by taking mMap object as an example, then passes through calling MMap.put (FIRST_POSITION, listItems) method in mMap object by FIRST_POSITION and The information of listItems is stored in set mMap object.
Since the grade of display area is different, the present embodiment can the class information based on display area first to display area It is ranked up, further according to the sequence of grade from high to low, is successively screened from the respective icon information set in each display area The icon information of highest priority out.
For each icon information set, specific screening step includes: two icons of acquisition from icon information set Information, specifically, obtaining figure from icon information set by taking above-mentioned mMap object and the display area FIRST_POSITION as an example The mode of mark information specifically includes: taking out FIRST_ by calling mMap.get (FIRST_POSITION) method in mMap The icon information of POSITION;The precedence information of described two icon informations is searched from preset priority list again, it is described Preset priority list is the corresponding relationship of icon information and precedence information;Priority letter based on described two icon informations Breath, determines the higher target icon information of priority in described two icon informations;Under being obtained in the icon information set One icon information;Next icon information is compared to obtain next target icon with the target icon information Information obtains preferential in the icon information set until all icon informations in the icon information set relatively finish The highest icon information of grade.
It should be noted that can both search the priority of icon information from preset priority list in the present embodiment Information, can also to other equipment, such as to server request icon information precedence information.And from preset priority It, can priority first based on the corresponding type of service of icon information in the mode for searching the precedence information of icon information in table Creating preset priority list, wherein the priority of type of service is higher, and the priority of corresponding icon information is also higher, from And it can the corresponding icon information of the high type of service of preferential display priority.Further, which can pass through one A array element tableArray [] stores icon information according to the order of priority from low to high, to search icon information For the precedence information of item1, tableArray array is first traversed, and by comparing item1==in each traversal Whether tableArray [i], i.e. comparison item1 and array tableArray [i] element are equal, if equal index value i at this time It is exactly the precedence information of the item1, otherwise compares with regard to carrying out circulation next time, wherein i is the index value that circulation is used.Assuming that The index value of above-mentioned item1 is index1, and the index value of item2 is index2, then compares the size of index1 and index2, The greater is taken to preserve for max1, the index value for similarly getting next icon information again is index3, then goes to compare again Compared with the size of max1 and index3, take it is biggish preserve as max2, and so on, finally obtain excellent in icon information set The first highest icon information of grade.Further, the priority list in the present embodiment can also be adjusted according to the actual situation, When the priority of type of service changes, the priority of corresponding icon information will also change.
It should also be noted that, in some other implementations, the step of screening can also include: each to obtain two A icon information, after comparing the higher icon information of priority two-by-two, then using identical method the first round is obtained it is excellent The first higher multiple icon informations of grade are compared two-by-two, and so on, finally obtain highest priority in icon information set Icon information, this is not restricted.
S104, the location information based on the display area show the icon information of the highest priority.
For example, the location information of display area can be determined by position field in the present embodiment, with display For the FIRST_POSITION of region, after the icon information for the highest priority for filtering out the display area, most by priority High icon information is shown in the display area of FIRST_POSITION.
Further, it can be combined with the icon information that different display modes shows the highest priority, it is described aobvious Show that mode includes but is not limited to static image, icon is become smaller or icon becomes larger etc. by dynamic animation, is not limited herein System.
In order to make it easy to understand, being illustrated again by an application scenarios to the present embodiment below.In the aobvious of some application Show in interface, screen is divided into two different grades of display areas, and one is display area 1 that grade is 1, is located at screen Top half, the other is grade be 2 display area 2, positioned at the lower half portion of screen, wherein grade number it is smaller, Higher grade.When display area 1 and display area 2 all receive multiple icon informations, mutual exclusion manager is by display area 1 Icon information store into the icon information set of display area 1, by the icon information of display area 2 storage to display area In 2 icon information set.By comparing, the grade of display area 1 is higher than display area 2, then mutual exclusion manager first handles aobvious Show the icon information in region 1.Wherein, there are three icon informations, including server to send out altogether in the icon information set of display area 1 That send guesses the icon information of sweepstake and robbing for another server transmission that movable icon information and backstage are sent unexpectedly Answer the icon information of game.Mutual exclusion manager first gets the icon letter for guessing movable icon information and sweepstake unexpectedly at random Breath, and in preset priority list, it finds and guesses that the priority of movable icon information is 4 unexpectedly, the icon of sweepstake is believed The priority of breath is 5, wherein the number of priority is bigger, and priority is higher.Due to sweepstake icon information it is preferential Grade is higher, determines that the icon information of sweepstake is target icon information, then next figure is got from icon information set The priority marked information, the i.e. icon information of quiz game, and find the icon information of quiz game is 2, through with target figure The priority of mark information is compared, and is determined that the icon information of sweepstake is the icon information of highest priority, is then being shown The icon information that region 1, the i.e. top half of screen show sweepstake.Similar, then filter out the priority of display area 2 Highest icon information and the lower half portion for being shown in screen.Same viewing area is shown in so as to avoid multiple icon informations The problem of domain causes icon information identification difficulty big, is not easy to operation.
In the present embodiment, screen is divided into different grades of display area;Create mutual exclusion manager, the mutual exclusion management Device includes the information of each display area, and the information of the display area includes the class information of the display area, institute State the location information of display area and the icon information set of the display area;Following behaviour is executed by the mutual exclusion manager Make: when the display area receives icon information, the icon information being added to the respective icon in the display area In information aggregate;Class information based on the display area is successively from each respective icon information set in display area In filter out the icon information of highest priority, wherein the step of screening includes: that two are obtained from the icon information set Icon information;The precedence information of described two icon informations, the preset priority are searched from preset priority list Table is the corresponding relationship of icon information and precedence information;Based on the precedence information of described two icon informations, determine described in The higher target icon information of priority in two icon informations;Next icon letter is obtained from the icon information set Breath;Next icon information is compared to obtain next target icon information with the target icon information, until All icon informations in the icon information set relatively finish, and obtain the figure of highest priority in the icon information set Mark information;Location information based on the display area shows the icon information of the highest priority.When display area receives When to multiple icon informations to be shown, the icon information that a highest priority can be filtered out by mutual exclusion manager is shown again Show, solving multiple icons in the prior art, to be shown in icon-based programming difficulty caused by same display area big, is not easy to operate The problem of.
Based on the same inventive concept, the embodiment of the invention also provides device corresponding with method in embodiment one, see reality Apply example two.
Embodiment two
Second embodiment of the present invention provides a kind of icon display devices, referring to FIG. 2, described device includes:
Division unit 201, for screen to be divided into different grades of display area;
Creating unit 202, for creating mutual exclusion manager, the mutual exclusion manager includes the letter of each display area Breath, the information of the display area include the class information of the display area, the location information of the display area and described The icon information set of display area;
Execution unit 203, for executing following operation by the mutual exclusion manager: when the display area receives figure When marking information, the icon information is added in the respective icon information set in the display area;Based on the viewing area The class information in domain successively filters out the icon of highest priority from each respective icon information set in display area Information, wherein the step of screening includes: two icon informations of acquisition from the icon information set;From preset priority The precedence information of described two icon informations is searched in table, the preset priority list is icon information and precedence information Corresponding relationship;Based on the precedence information of described two icon informations, determine that priority is higher in described two icon informations Target icon information;Next icon information is obtained from the icon information set;By next icon information with The target icon information is compared to obtain next target icon information, all figures in the icon information set Mark information relatively finishes, and obtains the icon information of highest priority in the icon information set;
Display unit 204 shows the icon letter of the highest priority for the location information based on the display area Breath.
In the present embodiment, screen is divided into different grades of display area by division unit 201;Creating unit 202 creates Mutual exclusion manager, the mutual exclusion manager include the information of each display area, and the information of the display area includes institute State the icon information set of the class information of display area, the location information of the display area and the display area;It executes Unit 203 executes following operation by the mutual exclusion manager: when the display area receives icon information, by the figure Mark information is added in the respective icon information set in the display area;Class information based on the display area successively from The icon information of highest priority is filtered out in each respective icon information set in the display area, wherein the step of screening It suddenly include: two icon informations of acquisition from the icon information set;Described two figures are searched from preset priority list The precedence information of information is marked, the preset priority list is the corresponding relationship of icon information and precedence information;Based on institute The precedence information for stating two icon informations determines the higher target icon information of priority in described two icon informations;From Next icon information is obtained in the icon information set;By next icon information and the target icon information into Row relatively obtains next target icon information, until all icon informations in the icon information set relatively finish, obtains The icon information of highest priority into the icon information set;Display unit 204 is believed based on the position of the display area Breath shows the icon information of the highest priority.When display area receives multiple icon informations to be shown, Ke Yitong It crosses mutual exclusion manager and filters out the icon information of a highest priority and show solve multiple icons in the prior art and show again The problem of icon-based programming difficulty caused by same display area is big, is not easy to operation.
By the device that the embodiment of the present invention two is introduced, the icon display method to implement the embodiment of the present invention one is adopted Device, so based on the method that the embodiment of the present invention one is introduced, the affiliated personnel in this field can understand the tool of the device Body structure and deformation, so details are not described herein.Device used by the method for all embodiment of the present invention one belongs to this hair The bright range to be protected.
Embodiment three
Based on the same inventive concept, a kind of computer equipment 300 is present embodiments provided, as shown in figure 3, including memory 310, processor 320 and the computer program 311 that can be run on memory 310 and on the processor 320, processor are stored in When 320 execution computer program 311, all steps of above-described embodiment one may be implemented, so details are not described herein.
Example IV
Based on the same inventive concept, the present embodiment provides a kind of computer readable storage mediums 400, as shown in figure 4, thereon It is stored with computer program 411, when which is executed by processor, all steps of examples detailed above one may be implemented Suddenly, so details are not described herein.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of icon display method, which is characterized in that the described method includes:
Screen is divided into different grades of display area;
Mutual exclusion manager is created, the mutual exclusion manager includes the information of each display area, the letter of the display area Breath includes class information, the location information of the display area and the icon information collection of the display area of the display area It closes;
Following operation is executed by the mutual exclusion manager: when the display area receives icon information, by the icon Information is added in the respective icon information set in the display area;Class information based on the display area is successively from every The icon information of highest priority is filtered out in a respective icon information set in the display area, wherein the step of screening It include: two icon informations of acquisition from the icon information set;Described two icons are searched from preset priority list The precedence information of information, the preset priority list are the corresponding relationship of icon information and precedence information;Based on described The precedence information of two icon informations determines the higher target icon information of priority in described two icon informations;From institute It states and obtains next icon information in icon information set;Next icon information and the target icon information are carried out Compare to obtain next target icon information, until all icon informations in the icon information set relatively finish, obtain The icon information of highest priority in the icon information set;
Location information based on the display area shows the icon information of the highest priority.
2. the method according to claim 1, wherein the method is also before the creation mutual exclusion manager Include:
Create the icon information set of List<Object>type, the type of each icon information in the icon information set For Object.
3. the method according to claim 1, wherein the mutual exclusion manager is coupled described show by MAP object Show the icon information set of the class information in region, the location information of the display area and the display area.
4. the method according to claim 1, wherein it is described searched from preset priority list it is described two Before the precedence information of icon information, the method also includes:
Priority based on the corresponding type of service of the icon information creates the preset priority list.
5. the method according to claim 1, wherein the mutual exclusion manager is indicated by position field The location information of the class information of the display area and the display area, the position field are the normal of integer type Amount.
6. method according to claim 1-5, which is characterized in that described that screen is divided into different grades of show Show region, comprising:
Screen is divided into different grades of display area according to size.
7. a kind of icon display device, which is characterized in that described device includes:
Division unit, for screen to be divided into different grades of display area;
Creating unit, for creating mutual exclusion manager, the mutual exclusion manager includes the information of each display area, described The information of display area includes the class information of the display area, the location information of the display area and the display area Icon information set;
Execution unit, for executing following operation by the mutual exclusion manager: when the display area receives icon information When, the icon information is added in the respective icon information set in the display area;Based on the display area etc. Grade information successively filters out the icon information of highest priority from each respective icon information set in display area, In, the step of screening includes: two icon informations of acquisition from the icon information set;It is searched from preset priority list The precedence information of described two icon informations, the preset priority list are that icon information and the corresponding of precedence information are closed System;Based on the precedence information of described two icon informations, the higher target figure of priority in described two icon informations is determined Mark information;Next icon information is obtained from the icon information set;By next icon information and the target Icon information is compared to obtain next target icon information, until all icon information ratios in the icon information set It relatively finishes, obtains the icon information of highest priority in the icon information set;
Display unit shows the icon information of the highest priority for the location information based on the display area.
8. device according to claim 7, which is characterized in that the creating unit is also used to create List<Object>class The icon information set of type, the type of each icon information in the icon information set are Object.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization such as method of any of claims 1-6 when the computer program is executed by processor.
10. a kind of computer equipment, can run on a memory and on a processor including processor, memory and storage Computer program, which is characterized in that the processor is realized when executing the computer program such as any one of claim 1-6 The method.
CN201811158914.5A 2018-09-30 2018-09-30 Icon display method and device Active CN109284164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811158914.5A CN109284164B (en) 2018-09-30 2018-09-30 Icon display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811158914.5A CN109284164B (en) 2018-09-30 2018-09-30 Icon display method and device

Publications (2)

Publication Number Publication Date
CN109284164A true CN109284164A (en) 2019-01-29
CN109284164B CN109284164B (en) 2022-04-08

Family

ID=65182184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811158914.5A Active CN109284164B (en) 2018-09-30 2018-09-30 Icon display method and device

Country Status (1)

Country Link
CN (1) CN109284164B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851554A (en) * 2019-11-14 2020-02-28 北京航天宏图信息技术股份有限公司 Display method and device, computing equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735104A (en) * 2004-08-10 2006-02-15 乐金电子(中国)研究开发中心有限公司 An indicator icon display method
CN101896008A (en) * 2009-05-20 2010-11-24 仁宝电脑工业股份有限公司 Method for managing wireless communication component functions and user interface device
CN103823735A (en) * 2014-02-26 2014-05-28 天津三星通信技术研究有限公司 Status icon display method and portable terminal
US20160041719A1 (en) * 2014-08-05 2016-02-11 Alibaba Group Holding Limited Display and management of application icons
CN106484392A (en) * 2016-09-08 2017-03-08 北京小米移动软件有限公司 icon display method and device
CN107450795A (en) * 2017-06-23 2017-12-08 努比亚技术有限公司 Status bar icon loading method, terminal and computer-readable recording medium
CN107704155A (en) * 2017-10-20 2018-02-16 珠海市魅族科技有限公司 Application program image target methods of exhibiting, device, terminal and storage medium
CN108494964A (en) * 2018-03-28 2018-09-04 努比亚技术有限公司 Mobile terminal state column display methods, terminal, computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735104A (en) * 2004-08-10 2006-02-15 乐金电子(中国)研究开发中心有限公司 An indicator icon display method
CN101896008A (en) * 2009-05-20 2010-11-24 仁宝电脑工业股份有限公司 Method for managing wireless communication component functions and user interface device
CN103823735A (en) * 2014-02-26 2014-05-28 天津三星通信技术研究有限公司 Status icon display method and portable terminal
US20160041719A1 (en) * 2014-08-05 2016-02-11 Alibaba Group Holding Limited Display and management of application icons
CN106484392A (en) * 2016-09-08 2017-03-08 北京小米移动软件有限公司 icon display method and device
CN107450795A (en) * 2017-06-23 2017-12-08 努比亚技术有限公司 Status bar icon loading method, terminal and computer-readable recording medium
CN107704155A (en) * 2017-10-20 2018-02-16 珠海市魅族科技有限公司 Application program image target methods of exhibiting, device, terminal and storage medium
CN108494964A (en) * 2018-03-28 2018-09-04 努比亚技术有限公司 Mobile terminal state column display methods, terminal, computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851554A (en) * 2019-11-14 2020-02-28 北京航天宏图信息技术股份有限公司 Display method and device, computing equipment and readable storage medium

Also Published As

Publication number Publication date
CN109284164B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
US10936343B2 (en) In-context event orchestration of physical and cyber resources
US8146009B2 (en) Real time map rendering with data clustering and expansion and overlay
US20180300327A1 (en) Display, visualization, and management of images based on content analytics
US8799807B2 (en) Organization and display of tabs and tab groups over hierarchical levels
US20170031663A1 (en) Method and Tool for Engineering Software Architectures with Its Various Software Artifacts of Complex Cyber-Physical Systems of Different Technical Domains
US20090319951A1 (en) Aggregating Service Components
US10803669B1 (en) Rule-based augmentation of a physical environment
US11893224B2 (en) Browsing hierarchical datasets
CN109271229A (en) The method and apparatus that icon is shown based on mutual exclusion manager
CN110490459A (en) A kind of protocol managerial approach and device
CN107423411A (en) Journal displaying method and apparatus
US10949048B2 (en) Inference-based visual map of organizational structure and resource usage
US9553949B2 (en) Method and system implemented by a collaborative distributed computational network, and related devices
CN109284164A (en) A kind of icon display method and device
CN106170790A (en) Service picture library user interface presents
WO2014080453A1 (en) Information system, control program for management server, and control program for portable device
CN109343758A (en) The method and apparatus for showing icon by mutual exclusion manager
CN116467027A (en) Information display method, information display device and storage medium
US8941658B2 (en) Method and apparatus for layered overview in visualization of large enterprise it environment
JP5300902B2 (en) Screen control program and information processing apparatus
US8842131B2 (en) System and method for framework clipping
KR102671203B1 (en) Method and system for preventing screen capture using visual optical illusion
CN108965788A (en) Monitor screen is laid out production method and the device using this method
Gómez-Hérnandez et al. A high-level reference model for reusable object-level coordination support in groupware applications
Schwarz et al. An integrative framework for strategic global IT research: Assessing the nexus of key factors

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
GR01 Patent grant
GR01 Patent grant