CN108280052A - Method of adjustment, device, smart machine and the storage medium of element dispaly state - Google Patents

Method of adjustment, device, smart machine and the storage medium of element dispaly state Download PDF

Info

Publication number
CN108280052A
CN108280052A CN201810145780.7A CN201810145780A CN108280052A CN 108280052 A CN108280052 A CN 108280052A CN 201810145780 A CN201810145780 A CN 201810145780A CN 108280052 A CN108280052 A CN 108280052A
Authority
CN
China
Prior art keywords
state
adjustment
size
rule
painting canvas
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
CN201810145780.7A
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810145780.7A priority Critical patent/CN108280052A/en
Publication of CN108280052A publication Critical patent/CN108280052A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses the method for adjustment of element dispaly state, device, smart machine and storage mediums.This method includes:After triggering enters canvas size switch mode, the size handover information of setting is obtained and element display properties that user selectes;If the element display properties is to ensure properly to show, based on the size handover information and the corresponding state adjustment rule of editor's included each element of manuscript, dispaly state of each element after size switching in painting canvas is adjusted.Utilize this method, it can be when carrying out canvas size switching, dispaly state adjustment is carried out to each element using the different conditions adjustment rule corresponding to each element, thus, it is possible to ensure that element has the dispaly state for more agreeing with associated application scenarios, display effect of the element in painting canvas when to improve manuscript editing or demonstration, and then improve visual effect of the edited manuscript in user experience.

Description

Method of adjustment, device, smart machine and the storage medium of element dispaly state
Technical field
The present invention relates to the method for adjustment of multi-media processing technical field more particularly to element dispaly state, device, intelligence Equipment and storage medium.
Background technology
The PowerPoint software (PowerPoint, PPT) of manuscript editing tool such as Microsoft, is a working and learning In commonly used office software, user, which is based on manuscript editing tool, can carry out manuscript editing, and can be by the content demonstration of editor To other people.In currently a popular intelligent tutoring blank, similar manuscript editing tool is also installed, it can be for instructor to religion Content is learned into edlin and displaying.
Usually, the edit page that manuscript editing is carried out in manuscript editing tool can be denoted as painting canvas, and is also believed that and compiles Volume manuscript specifically by arbitrarily can move and edit in painting canvas single object (such as single text box, picture, table and Video etc.) it forms, above-mentioned single object can be referred to as element.Painting canvas display size is arranged in existing manuscript editing tool to switch The application of function of adjustment, user can be during manuscript editing or to having edited when manuscript is demonstrated according to display demand pair The display size of painting canvas is adjusted switching, wherein carries out display size adjustment switching to painting canvas based on above-mentioned existing function When, the element being presented in painting canvas can also carry out the corresponding transformation of position and size, and finally be shown in painting canvas after size switching Show the effect after transformation.
In realizing process of the present invention, inventor has found that above-mentioned there are following when being adjusted switching to painting canvas display size Defect:It is often aobvious in painting canvas to each element using identical transformation rule i.e. when adjusting switching to painting canvas display size Show that position and display size carry out transformation adjustment, (such as classroom is taught however, above-mentioned switching Adjusted Option is in some special applications scenes Classic poetry displaying in or solid figure displaying) in may be not appropriate for the transformation of all elements dispaly state, thus can shadow Display effect of the element in painting canvas is rung, to influence visual effect of the edited manuscript in user experience.
Invention content
An embodiment of the present invention provides the method for adjustment of element dispaly state, device, smart machine and storage mediums, can Display effect of the element in painting canvas when effectively improving canvas size switching.
In a first aspect, an embodiment of the present invention provides a kind of methods of adjustment of element dispaly state, including:
After triggering enters canvas size switch mode, obtains the size handover information of setting and element that user selectes is shown Attribute;
If the element display properties is to ensure properly to show, based on the size handover information and editor's manuscript institute Including the corresponding state adjustment rule of each element, adjusts dispaly state of each element after size switching in painting canvas.
Second aspect, an embodiment of the present invention provides a kind of adjusting apparatus of element dispaly state, including:
Data obtaining module, for trigger enter canvas size switch mode after, obtain setting size handover information and The element display properties that user selectes;
First state adjusts module, for when the element display properties is to ensure properly to show, being based on the size Handover information and the corresponding state adjustment rule of editor's included each element of manuscript, adjust each element and are drawn after size switching Dispaly state in cloth.
The third aspect, an embodiment of the present invention provides a kind of smart machines, including:
One or more processors;
Storage device, for storing one or more programs;
One or more of programs are executed by one or more of processors so that one or more of processors Realize the method for adjustment for the element dispaly state that first aspect of the embodiment of the present invention provides.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer journey Sequence realizes the method for adjustment for the element dispaly state that first aspect of the embodiment of the present invention provides when the program is executed by processor.
In the method for adjustment of above-mentioned element dispaly state, device, smart machine and storage medium, this method is being touched first After hair enters canvas size switch mode, the size handover information of setting is obtained and element display properties that user selectes;Then When institute's chosen elements display properties is to ensure properly to show, based on size handover information and editor's included each element pair of manuscript The state adjustment rule answered, dispaly state of the adjustment each element after size switching in painting canvas.The tune of above-mentioned element dispaly state Adjusting method, device, smart machine and storage medium, can when carrying out canvas size switching, using corresponding to each element not Rule being adjusted with state, dispaly state adjustment being carried out to each element, thus, it is possible to ensure that element has more to agree with associated application The dispaly state of scene, display effect of the element in painting canvas when not only increasing manuscript editing or demonstration, and effectively improve Visual effect of the edited manuscript in user experience is also enriched and is adjusted to element dispaly state when canvas size switching Logic is handled, while ensure that the diversification of the operable function of manuscript editing tool so that manuscript editing tool can be more effective Adaptation be related to the specific occasion of complicated element adjustment.
Description of the drawings
Fig. 1 a are a kind of flow diagram of the method for adjustment for element dispaly state that the embodiment of the present invention one provides;
Fig. 1 b give the window options exemplary plot of element display properties in the embodiment of the present invention one;
Fig. 2 is a kind of flow diagram of the method for adjustment of element dispaly state provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structure diagram of the adjusting apparatus for element dispaly state that the embodiment of the present invention three provides;
Fig. 4 is a kind of hardware architecture diagram for smart machine that the embodiment of the present invention four provides.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 a are a kind of flow diagram of the method for adjustment for element dispaly state that the embodiment of the present invention one provides, the party The dispaly state of element is adjusted when method during manuscript editing or presentation suitable for carrying out canvas size switching Situation, this method can be executed by the adjusting apparatus of element dispaly state, wherein the device can by software and or hardware realization, And it is typically integrated on smart machine.
In the present embodiment, the smart machine can be specifically the intelligent mobile terminals such as tablet computer and notebook, It can be the fixed electronic equipment for being integrated with manuscript editing and demo function such as desktop computer, intelligent whiteboard.This implementation It is by manuscript editing tool on smart machine progress manuscript editing or presentation that example, which preferably sets its application scenarios, In the process, when showing that demand carries out canvas size switching to editor's manuscript according to user, the element to forming editor's manuscript is being drawn The case where dispaly state in cloth carries out personalized adjustment.
It is shown it is understood that edited manuscript often carries out content using painting canvas as display unit, under normal circumstances, structure Often it is present in incessantly in one page painting canvas at the element of edited manuscript, therefore, element dispaly state provided in this embodiment Method of adjustment is specifically regarded as the disposable adjustment of the element dispaly state to constituting edited manuscript, you can thinks execution one The adjustment to all canvas sizes may be implemented in the method for secondary the present embodiment, and has adjusted all elements in corresponding painting canvas Dispaly state.
As shown in Figure 1a, a kind of method of adjustment for element dispaly state that the embodiment of the present invention one provides, including grasp as follows Make:
After S101, triggering enter canvas size switch mode, the size handover information of setting is obtained and member that user selectes Plain display properties.
In the present embodiment, it for visualization angle, is equivalent to and is integrated with progress painting canvas ruler in manuscript editing tool The trigger button of very little switching can trigger above-mentioned canvas size switching push button when user needs to carry out canvas size switching, and To be switched dimension information is selected in the window options of pop-up, is thus equivalent to triggering and is entered canvas size switch mode.
In the present embodiment, the size handover information of the setting specifically can be regarded as user and selected when canvas size switching Fixed to be switched dimension information has specifically included the object height and target width of painting canvas switching in the size handover information, Simultaneously, it can be said that having been obtained for the original height and original width of painting canvas before canvas size switching, this step enters painting canvas Canvas size, which can be obtained, after size switch mode according to the Correlation selection of user switches corresponding size handover information.
In addition, the element for constituting editor's manuscript is often shown in painting canvas, when carrying out canvas size adjustment, for element For display, various forms of displays can be carried out according to the demand of user, and the element display properties specifically can be regarded as picture Various forms of display properties that element has when cloth size adjusting, element display properties equally can be according to the selections of user It determines, from visualization angle, after user, which carries out to be switched dimension information, to be chosen, can set and pop up another optional window Mouth option, user can select element to be shown with which kind of display properties in painting canvas after handover in the window options, example Property, Fig. 1 b give the window options exemplary plot of element display properties in the embodiment of the present invention one, as shown in Figure 1 b, common The option of element display properties can have ensure be suitble to display 11 (the adaptive painting canvas that can be regarded as element show) and maximization Display 12 (it is constant to can be regarded as display form size of the element after handover in painting canvas) etc..Therefore, this step can also basis The selection of user obtains the element display properties of current selected.
If S102, the element display properties are to ensure properly to show, it is based on the size handover information and editor The corresponding state adjustment rule of the included each element of manuscript, adjusts display shape of each element after size switching in painting canvas State.
In the present embodiment, it is to ensure properly to show to get the element display properties that user selectes through the above steps When, the operation of this step can be executed.Specifically, this step can realize that painting canvas is aobvious according to the size handover information of above-mentioned acquisition Show that the original painting canvas based on original height and original width formation is e.g. switched to new target painting canvas, and mesh by the switching of size The object height and target width that mark painting canvas includes with size handover information are shown.
Meanwhile when carrying out canvas size switching, the element also to constituting editor's manuscript, that is, each included in editor's manuscript The dispaly state of element is adjusted, and the dispaly state specifically can refer to the aobvious of display location and element of the element in painting canvas Show size etc..Can be that different elements set different state adjustment rules in advance in the present embodiment, thus this step can be with Determine the state adjustment rule corresponding to each element, and based on corresponding state adjustment rule adjustment element display location or display Size etc., so that Indivitual display of the element after switching in size in painting canvas.
A kind of method of adjustment for element dispaly state that the embodiment of the present invention one provides, this method are being triggered into pictaresque first After cloth size switch mode, the size handover information of setting is obtained and element display properties that user selectes;Then when selecting Element display properties is when ensuring properly to show, based on size handover information and the corresponding state adjustment rule of included each element Then, dispaly state of the adjustment each element after size switching in painting canvas.Using this method, canvas size switching can carried out When, the dispaly state that each element carries out is adjusted using the different conditions adjustment rule corresponding to each element, thus, it is possible to ensure Element has the dispaly state for more agreeing with associated application scenarios, and element is in painting canvas when not only increasing manuscript editing or demonstration In display effect, and effectively increase visual effect of the edited manuscript in user experience, also enrich canvas size To the processing logic of element dispaly state adjustment when switching, while it ensure that the diversification of the operable function of manuscript editing tool, Manuscript editing tool is enable more effectively to adapt to the specific occasion for being related to complicated element adjustment.
Embodiment two
Fig. 2 is a kind of flow diagram of the method for adjustment of element dispaly state provided by Embodiment 2 of the present invention, this reality It applies example to optimize based on above-described embodiment, in the present embodiment, advanced optimizes and increase:Preset to element into Row state adjustment rule list required when ensuring properly to show.
Meanwhile the present embodiment " will further be corresponded to based on the size handover information and the included each element of editor's manuscript State adjustment rule, adjust the dispaly state of each element after size switching in painting canvas " be embodied as:By original painting canvas The target size provided into the size handover information is adjusted by original size, obtains target painting canvas;In extraction editor's manuscript The component identification of included element, and obtain original display status information of each element in original painting canvas;It will be each described Component identification adjusts the object element mark in rule list with the state and is matched, and each member is determined according to matching result Element identifies corresponding state adjustment rule;State adjustment rule and the original of corresponding element based on each component identification are shown Show status information, adjusts dispaly state of each element in the target painting canvas.
Further, the present embodiment, which also optimizes, includes:If the element display properties is display, size is constant, base After the size handover information adjusts and obtains target painting canvas, included each element is shown between two parties with corresponding original display size Show in the target painting canvas.
As shown in Fig. 2, a kind of method of adjustment of element dispaly state provided by Embodiment 2 of the present invention, specifically includes as follows Operation:
S201, state adjustment rule list required when being ensured properly to show to element is preset.
This step is equivalent to the prebuild operation of a tables of data, and prebuild operation can carry out manuscript editing tool The addition for carrying out related data when design by technical staff as one of design item is built, can also be in manuscript editing tool By later maintenance personnel constantly for the element progress state adjustment rule for needing progress Indivitual display during use Update structure, that is, it is believed that the process of the addition update structure for being set as an adjustment rule of state adjustment rule list, The step can run through in the entire implementation procedure of the present embodiment institute providing method.In the present embodiment, it is believed that this step institute The state adjustment rule list set is when it is particularly applicable to element display properties to ensure properly to show.
Specifically, it is to ensure that the in the case of of properly showing needs to carry out that this step, which can be determined first in element display properties, The element of Indivitual display, and determining element is added with specific representation in state adjusts rule list, it then can be with Acquiring technology personnel or maintenance personnel based on the relevant operation rule that user demand is the setting of above-mentioned element and correspond to addition upper It states in state adjustment rule list, relevant operation rule is practical to be equivalent to the corresponding state adjustment rule of element.
It should be noted that dividing in the presence of priority when the present embodiment institute's providing method is adjusted element dispaly state, As a result, this step can also acquiring technology personnel or maintenance personnel be each corresponding adjustment of element setting for carrying out Indivitual display Priority is simultaneously equally added in above-mentioned state adjusts rule list, is carried out with the adjustment priority based on each element to limit element Adjustment sequence when dispaly state adjusts.In addition, the state adjustment rule being added in state adjustment rule list can be based on using The demand at family or the requirement actual set of technical staff, the present embodiment are not explained the particular content of each state adjustment rule It states.
Further, described to preset state adjustment rule list required when being ensured properly to show to element, packet It includes:Initialization package is arranged containing primary information, second-level message arranges and the state of three-level information row adjusts rule list, wherein the shape It is when determining suitable display that state, which adjusts rule list to be suitable for element display properties,;Addition needs to make by oneself in primary information row The object element mark of justice adjustment rule;It is self-defined to correspond to each object element mark for addition in second-level message row Target adjustment rule;It is preferential to correspond to the state adjustment that each object element identifies for addition in three-level information row Grade.
In the present embodiment, when presetting state adjustment rule list, initializing set one first is equivalent to comprising more The information table of grade information row is denoted as state adjustment rule list, and is believed that the initial state adjustment rule list is an empty table, Later, related technical personnel can determine the element for needing self-defined adjustment rule to carry out Indivitual display, and in primary information The element is marked with specific component identification in row, component identification can specifically be denoted as object element mark by the present embodiment, In, it is different types of that the element in the present embodiment specifically can refer to constitute word, picture, video and table in editor's manuscript etc. Show content, and different target component identification may be used to indicate different types of element in the present embodiment, usually, the mesh The component identifier that mark component identification may be used this field conventional default expression form to set, can also be by technical staff certainly Definition setting;Later, it in second-level message row, can be added in the cell identified corresponding to each object element customized State adjustment rule, and addition corresponding state adjusts priority in three-level information arranges corresponding cell.
It should be noted that in order to preferably embody the personalization of element dispaly state when painting canvas switches, in practical application In, element is not only confined in the large-scale taxonomical hierarchy such as word, picture, table and video, often can also be herein On the basis of further Refining Elements taxonomical hierarchy, illustratively, can by word with its attribute (such as font size, Type posture etc.) level refinement is carried out, can also picture be subjected to level refinement etc., this kind of situation with specific image content When, the object element mark of element after indicating to refine can be directly added in primary information table.
The classification of the corresponding element of object element mark during the present embodiment does not arrange state rule adjustment table primary information Level is defined, and corresponding statement can be selected according to the specific requirements of user, illustratively, using element type as word It says, under default situations, directly the corresponding object element mark of word can be added in primary information row, then set successively State adjustment rule and state adjustment priority etc., it is equal for the word in editor's manuscript when thus carrying out dispaly state adjustment Above-mentioned state adjustment rule can be used to be adjusted;However, on the basis of the above can also be thin with certain font size by word An element type branch is separated, and is the element type branch given one new object element mark, the adjustment of new state Rule and the state adjustment priority higher than priority corresponding to above-mentioned word identify the element type branch, by This, when carrying out state adjustment, can preferentially meet the text of certain font size set by the element type branch to editing in manuscript Word is adjusted using new state adjustment rule, and state is set before still being used for remaining word in editor's manuscript later Adjustment rule is adjusted.
In addition, multiple elements can also be combined to the element new as one, thus in state tune in the present embodiment Regard the element after combination as a whole element in whole rule list, is corresponded to for the entirety element and set an object element mark Be added to primary information row cell in, and corresponding second-level message row and three-level information row in be respectively the combination after Whole element adds corresponding state adjustment rule and state adjusts priority, when carrying out state adjustment as a result, can exist first It edits and determines the whole element after said combination in manuscript, the element that then can be directly based upon after being combined in state adjustment rule list Corresponding state adjustment rule disposably carries out the element after being combined in editor's manuscript the adjustment of dispaly state.
After S202, triggering enter canvas size switch mode, the size handover information of setting is obtained and member that user selectes Plain display properties.
Illustratively, when user carries out manuscript editing or presentation using manuscript editing tool, painting canvas ruler is triggered Canvas size switch mode can be responded and entered after the function button of very little switching, this step enters canvas size in triggering and switches After pattern, so that it may to obtain the size handover information corresponding to user institute selected size switching proportion, and obtain user and select Element display properties.
S203, determine whether selected element display properties is to ensure properly to show, if it is not, then executing S204;If so, Execute S205.
Specifically, it is possible to determine that whether the element display properties of above-mentioned acquisition is to ensure properly to show, and tied according to judgement Fruit, which redirects, executes corresponding step.
S204, after obtaining target painting canvas based on size handover information adjustment, by include each element with corresponding original Begin to show that size is shown centered in the target painting canvas.
In the present embodiment, preferably think if the element display properties that user selectes is not to determine suitable display, i.e. phase When having selected maximization display in user, the operation of this step can perform at this time, this step can specifically be executed according to following rules, That is, for constituting the element of editor's manuscript, its display size in original painting canvas is kept to be switched to by original size Display size in the obtained target painting canvas of target size is identical, then keeps the whole ruler according to target painting canvas in its display location Very little size is set between two parties.It is understood that editor manuscript in element element display properties be maximize display when, in fact Border display effect is it is possible that exceed target canvas size size cases.
S205, original painting canvas is adjusted into the target size provided into the size handover information by original size, obtained Target painting canvas.
It in the present embodiment, equally can will be original based on this step when element display properties is to determine suitable display Painting canvas adjustment is switched to target painting canvas, can further execute the operation of S206 later.
The component identification of element included in S206, extraction editor's manuscript, and each element is obtained in original painting canvas Original display status information.
This step specifically can carry out component identification extraction to element included in editor's manuscript, it should be noted that this Embodiment is preferable to be preset and stores the corresponding component identification of different elements, thus formed edit manuscript when, can be straight It connects and its corresponding component identification is determined according to the feature of included element.In addition, this step can equally obtain composition editor's manuscript Original display status information of the element in original painting canvas, original display status information specifically may include element in original picture Original display size in cloth and original display position.
Under normal circumstances, for constituting the element of editor's manuscript, each element is usually given tacit consent in bottom with rectangle The form of box exists, thus it is believed that the display size of element can actually regard the width for the rectangular box that constitution element is relied on as Degree and elevation information, the original display size of element can actually regard the relied on rectangular box of constitution element as in original in the present embodiment The original width and original height having in beginning painting canvas.In addition, in manuscript editing tool, the painting canvas upper left corner is generally also given tacit consent to The origin of interface coordinate system where point, thus the display location of element is usually to constitute the upper left corner top of its relied on rectangular box The coordinate position to interface coordinate system origin is put to indicate.Therefore, the original display position of element is actually suitable in the present embodiment In coordinate position of the top left corner apex in the formed interface coordinate system of original painting canvas of the relied on rectangular box of element, the coordinate Position also corresponds to rectangular box to the left margin and top margin of original painting canvas.
S207, each component identification is matched with the object element mark in state adjustment rule list, root The corresponding state adjustment rule of each component identification is determined according to matching result.
In the present embodiment, extracted each element can also be identified to adjust in rule list with state according to this step and added Object element mark matched, matching result includes:There are matched object element mark and matched member is not present Element mark, for matched object element mark is not present, then it is believed that extracted each element mark is not present in State adjusts in rule list, thus it is believed that the corresponding state tune of extracted component identification is not present in state adjustment rule list Whole rule can give tacit consent to extracted each element mark and actually correspond to preset general adjustment rule, at this time it is possible thereby to adopt Corresponding element is identified to each element with unified general adjustment rule and carries out dispaly state adjustment.
In addition, for being identified there are matched object element, it may be possible to which the whole component identifications extracted exist The object element mark to match, it is also possible to there is the object element mark to match in the Partial Elements mark extracted, and Another part is then not present matched object element and identifies.For there is the member of matching object element mark in above-mentioned two situations For plain mark, it is believed that it is corresponding that its state adjustment rule reality adjusts the object element mark that matches in rule list for state Thus target adjustment rule can be used corresponding target adjustment rule and carry out dispaly state adjustment;Simultaneously for above-mentioned portion Divide there is no for the component identification of matching object element mark, reality still uses general adjustment rule to carry out dispaly state tune It is whole.
Further, described to determine that the corresponding state of each component identification adjusts rule according to matching result, including:It will The component identification that object element mark matches in rule list, which is adjusted, with the state is denoted as the first component identification, unmatched member Element mark is denoted as second element mark;The state is adjusted to the target tune for corresponding to each first component identification in rule list Whole rule is determined as corresponding state adjustment rule, and obtains the corresponding state adjustment priority of each first component identification; Rule is adjusted using the general adjustment rule of setting as the state of each second element mark, and determines each second element The state adjustment priority of mark is lowermost level.
Specifically, the present embodiment segments component identification according to matching result, to be identified with object element The component identification to match is denoted as the first component identification, and unmatched component identification is denoted as second element mark;Later, It can be adjusted from state and determine that the state of each first component identification adjusts rule in rule list, and by general adjustment rule conduct The state adjustment rule of second element mark;In addition, the present embodiment is when realizing that each element dispaly state adjusts in editor's manuscript Adjustment sequence, thus set adjustment priority, wherein the adjustment priority of each first component identification is to match target element The state of element mark adjusts priority, and each second element mark is due to that using general adjustment rule, then can set each second element State adjustment priority having the same is identified, and the present embodiment preferably sets the state adjustment priority that second element identifies and sets It is set to lowermost level, to ensure that the element using general adjustment rule is finally carrying out dispaly state adjustment.
S208, the state based on each component identification adjust rule and the original display status information of corresponding element, Adjust dispaly state of each element in the target painting canvas.
This step specifically can be regarded as:The corresponding state adjustment rule of the element included in known editor's manuscript is original Under the premise of showing size and original display position, the target display size for obtaining each element in target painting canvas can be adjusted And target display location, it is achieved in the adjustment of element dispaly state.
Further, the original display shape of the state adjustment rule and corresponding element based on each component identification State information adjusts dispaly state of each element in the target painting canvas, including:Based on each first component identification The original display status information of state adjustment rule and corresponding first element, from high to low according to corresponding state adjustment priority It is sequentially adjusted in dispaly state of each first element in the target painting canvas;When meeting lowermost level adjustment, based on described The original display status information of general adjustment rule and the corresponding second element of each second element mark, adjustment each described the Dispaly state of the Was Used in the target painting canvas.
Specifically, for the corresponding element of the first component identification, this step can correspond to each first component identification Element to be adjusted be based on corresponding state adjustment priority and set state adjustment sequence from high to low, and according to set shape State adjustment sequence carries out dispaly state adjustment using corresponding state adjustment rule, it should be noted that the present embodiment can be right Element after dispaly state adjustment carries out special marking, when the corresponding element of the first component identification has been provided with above-mentioned special marking When, it is believed that reach the lowermost level adjustment requirement of element, thus triggering is regular to corresponding to second element using general adjustment The element of mark carries out dispaly state adjustment.It should be noted that two element sets can be preset in the present embodiment, one It is a be for storing the original collection for not adjusting element, one be element after being adjusted for storage configuration target collection, thus When carry out state adjustment, it can be transferred from original collection and not adjust element and carry out dispaly state adjustment, and by the member after adjustment Element is incorporated into target collection, thus also corresponds to a kind of special marking of element after being adjusted to state.
Since the corresponding element of the first component identification carries out dispaly state adjustment using corresponding state adjustment rule, And each state adjustment rule carries out special setting in advance all in accordance with user demand or other particular/special requirements, the present embodiment is no longer specific The concrete operations that regular realization state adjustment is adjusted based on different conditions are described in detail, but, it will be clear that the first component identification Corresponding element equally obtains its corresponding target display size and target display location after carrying out state adjustment.
For the element being adjusted using general adjustment rule, specifically adjusting process can be expressed as:
(1) the original width W and original height H of original painting canvas known to, and have target size after obtaining size switching Target painting canvas, target width are denoted as W`, and object height is denoted as H`, while known above-mentioned each element to be adjusted is in original painting canvas Original display size ((relied on rectangular box is left for the width w and height h) of relied on rectangular box and original display position Left margin X and top margin Y of the upper angular vertex to original painting canvas).
(2) practical position of the origin of original painting canvas in target painting canvas is calculated
Specifically, table can be carried out in practical position of the origin to be calculated in target painting canvas with coordinate points O (L, U) Show, the size of W/H and W`/H` is then judged, if W/H (is equivalent to height of the target painting canvas compared to original painting canvas less than W`/H` Angle value higher), then it can directly determine L=0, and determine U=0.5 × (H-W × (H`/W`));If W/H is more than W`/H` (quite It is wider compared to the width value of original painting canvas in target painting canvas), then it can directly determine U=0, and determine L=0.5 × (W-H × (W `/H`))。
(3) scaling multiplying power when calculating elements state adjusts
Specifically, the scaling multiplying power can be set as r, if W/H is less than W`/H`, it is determined that r=W`/W;If W/H More than W`/H`, then r=H`/H is can determine.
(4) target display location and target of the calculating elements in target painting canvas show size
Specifically, target display location can be set and be expressed as target left margin X` and target top margin Y`, wherein target is left Back gauge X`=L+r × X;Target top margin Y`=U+r × Y;Target can also be set and show that size is expressed as target width w` and mesh Absolute altitude degree h`, wherein w`=r × w;H`=r × h.
According to the set-up procedure of above-mentioned general adjustment rule, finally the available corresponding element of second element mark is in target Dispaly state in painting canvas.
A kind of method of adjustment of element dispaly state provided by Embodiment 2 of the present invention embodies state adjustment rule list Prebuild process, while embody element display properties be when ensuring properly to show element dispaly state adjustment operation, And it is element dispaly state adjustment operation when maximizing display to embody element display properties.Using this method, realize The adjustment rule settings of the dispaly state adjustment of special elements in special screne, so as to carry out canvas size switching When, the dispaly state that each element carries out is adjusted using the different conditions adjustment rule corresponding to each element, thus can not only Ensure that element has the dispaly state for more agreeing with associated application scenarios, element is in painting canvas when improving manuscript editing or demonstration Display effect, processing logic that element dispaly state is adjusted when also enriching canvas size switching, while ensure that manuscript The diversification of the operable function of edit tool.
Embodiment three
Fig. 3 is a kind of structure diagram of the adjusting apparatus for element dispaly state that the embodiment of the present invention three provides, the device The feelings that the dispaly state of element is adjusted when suitable for carrying out canvas size switching during manuscript editing or presentation Condition, which can be by software and or hardware realization, and is typically integrated on smart machine.As shown in figure 3, the device includes:Letter It ceases acquisition module 31 and first state adjusts module 32.
Wherein, data obtaining module 31 obtain the size switching of setting for triggering into after canvas size switch mode The element display properties that information and user select.
First state adjusts module 32, for when the element display properties is to ensure properly to show, being based on the ruler Very little handover information and the corresponding state adjustment rule of included each element, each element of adjustment is after size switching in painting canvas Dispaly state.
In the present embodiment, which enters canvas size switch mode by data obtaining module 31 in triggering first Afterwards, the size handover information of setting is obtained and element display properties that user selectes;Then module 32 is adjusted by first state When the element display properties is to ensure properly to show, it is based on the size handover information and the corresponding shape of included each element State adjustment rule adjusts dispaly state of each element after size switching in painting canvas.
A kind of adjusting apparatus for element dispaly state that the embodiment of the present invention three provides can carry out canvas size switching When, dispaly state adjustment is carried out to each element using the different conditions adjustment rule corresponding to each element, thus, it is possible to ensure member Element has the dispaly state for more agreeing with associated application scenarios, and element is in painting canvas when not only increasing manuscript editing or demonstration Display effect, and effectively increase visual effect of the edited manuscript in user experience, also enrich canvas size and cut It to the processing logic of element dispaly state adjustment when changing, while ensure that the diversification of the operable function of manuscript editing tool, make The specific occasion for being related to complicated element adjustment can more effectively be adapted to by obtaining manuscript editing tool.
Further, which further includes:Regular presetting module 33 ensure properly showing for presetting to element Required state adjusts rule list when showing.
On the basis of above-mentioned optimization, regular presetting module 33 is specifically used for:
Initialization package is arranged containing primary information, second-level message arranges and the state of three-level information row adjusts rule list, wherein institute It is when determining suitable display to state state adjustment rule list to be suitable for element display properties;It adds and needs in primary information row The object element mark of self-defined adjustment rule;Addition corresponds to each object element mark certainly in second-level message row The target adjustment rule of definition;It is excellent to correspond to the state adjustment that each object element identifies for addition in three-level information row First grade.
Further, first state adjusts module 32, including:
Target painting canvas determination unit, for when the element display properties be ensure properly to show when, by original painting canvas by Original size adjusts the target size provided into the size handover information, obtains target painting canvas;
Element information acquiring unit, the component identification for extracting element included in editor's manuscript, and obtain each described Original display status information of the element in original painting canvas;
State rule determination unit, for each component identification and the state to be adjusted to the object element in rule list Mark is matched, and determines that the corresponding state of each component identification adjusts rule according to matching result;
State adjusts execution unit, the original for state adjustment rule and corresponding element based on each component identification Beginning display status information adjusts dispaly state of each element in the target painting canvas.
On the basis of above-mentioned optimization, the state rule determination unit is specifically used for:
Each component identification is adjusted the object element mark in rule list with the state to match;Will with it is described The component identification that object element mark matches in state adjustment rule list is denoted as the first component identification, unmatched component identification It is denoted as second element mark;The state is adjusted to the target adjustment rule for corresponding to each first component identification in rule list It is determined as corresponding state adjustment rule, and obtains the corresponding state adjustment priority of each first component identification;It will setting General adjustment rule adjust rule as the state of each second element mark, and determine each second element mark It is lowermost level that state, which adjusts priority,.
Further, the state adjusts execution unit, is specifically used for:
The original display state letter of state adjustment rule and corresponding first element based on each first component identification Breath is sequentially adjusted in display of each first element in the target painting canvas from high to low according to corresponding state adjustment priority State;
When meeting lowermost level adjustment, based on the general adjustment rule and each second element mark corresponding second The original display status information of element adjusts dispaly state of each second element in the target painting canvas.
In the present embodiment, which, which also optimizes, includes:Second state adjusts module 34, for being shown when the element Attribute be display size it is constant when, based on the size handover information adjustment obtain target painting canvas after, by included each element with Corresponding original display size is shown centered in the target painting canvas.
Example IV
Fig. 4 is a kind of hardware architecture diagram for smart machine that the embodiment of the present invention four provides, as shown in figure 4, this hair The smart machine that bright example IV provides, including:Processor 41 and storage device 42.Processor in the smart machine can be One or more, in Fig. 4 by taking a processor 41 as an example, processor 41 and storage device 42 in the smart machine can lead to It crosses bus or other modes connects, in Fig. 4 for being connected by bus.It is understood that the smart machine belongs to specific Can be for imparting knowledge to students or the intelligent whiteboard of other scenes, can be integrated thereon for manuscript editing and demo function application software.
Storage device 42 in the smart machine is used as a kind of computer readable storage medium, can be used for storing one or more A program, described program can be software program, computer executable program and module, as element is aobvious in the embodiment of the present invention Show the corresponding program instruction/module of the method for adjustment of state (for example, in the adjusting apparatus of attached element dispaly state shown in Fig. 3 Module, including:Data obtaining module 31 and first state adjust module 32, further include:Regular presetting module 33 and second State adjusts module 34).Processor 41 is stored in software program, instruction and module in storage device 42 by operation, from And execute various function application and the data processing of smart machine, that is, realize element dispaly state in above method embodiment Method of adjustment.
Storage device 42 may include storing program area and storage data field, wherein storing program area can storage program area, Application program needed at least one function;Storage data field can be stored uses created data etc. (as above according to equipment State the preset state adjustment rule list etc. in embodiment).It is deposited in addition, storage device 42 may include high random access Reservoir, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other are non-volatile Property solid-state memory.In some instances, storage device 42 can further comprise remotely located relative to processor 41 deposit Reservoir, these remote memories can pass through network connection to equipment.The example of above-mentioned network includes but not limited to internet, enterprise Industry intranet, LAN, mobile radio communication and combinations thereof.
Also, when one or more included program of above-mentioned smart machine is held by one or more of processors 41 When row, program proceeds as follows:After triggering enters canvas size switch mode, size handover information and the user of setting are obtained Selected element display properties.If the element display properties is to ensure properly to show, it is based on the size handover information And the corresponding state adjustment rule of included each element, adjust dispaly state of each element after size switching in painting canvas.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium, it is stored thereon with computer program, it should The method of adjustment for the element dispaly state that the embodiment of the present invention one or embodiment two provide is realized when program controlled device executes, This method includes:After triggering enters canvas size switch mode, the size handover information of setting is obtained and element that user selectes Display properties.Based on the size handover information and include each if the element display properties is to ensure properly to show The corresponding state adjustment rule of element, adjusts dispaly state of each element after size switching in painting canvas.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art Part can be expressed in the form of software products, which can be stored in computer readable storage medium In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions use so that a smart machine (can be personal computer, server or the network equipment etc.) executes the method described in each embodiment of the present invention.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of method of adjustment of element dispaly state, which is characterized in that including:
After triggering enters canvas size switch mode, obtains the size handover information of setting and the display of element that user selectes belongs to Property;
If the element display properties is to ensure properly to show, included based on the size handover information and editor's manuscript The corresponding state adjustment rule of each element, adjusts dispaly state of each element after size switching in painting canvas.
2. according to the method described in claim 1, it is characterized in that, further including:
Preset state adjustment rule list required when being ensured properly to show to element.
3. according to the method described in claim 2, it is characterized in that, described preset when being ensured properly to show to element Required state adjusts rule list, including:
Initialization package is arranged containing primary information, second-level message arranges and the state of three-level information row adjusts rule list, wherein the shape It is when determining suitable display that state, which adjusts rule list to be suitable for element display properties,;
Addition needs the object element mark of self-defined adjustment rule in primary information row;
Addition corresponds to each customized target adjustment rule of the object element mark in second-level message row;
Addition corresponds to the state adjustment priority of each object element mark in three-level information row.
4. according to the method described in claim 2, it is characterized in that, described be based on the size handover information and editor's manuscript institute Including the corresponding state adjustment rule of each element, adjusts dispaly state of each element after size switching in painting canvas, including:
Original painting canvas is adjusted into the target size provided into the size handover information by original size, obtains target painting canvas;
The component identification of element included in extraction editor's manuscript, and obtain original display of each element in original painting canvas Status information;
Each component identification is adjusted the object element mark in rule list with the state to match, according to matching result Determine the corresponding state adjustment rule of each component identification;
The original display status information of state adjustment rule and corresponding element based on each component identification adjusts each described Dispaly state of the element in the target painting canvas.
5. according to the method described in claim 4, it is characterized in that, described determine each component identification pair according to matching result The state adjustment rule answered, including:
The component identification that matches of object element mark in rule list will not be adjusted with the state and be denoted as the first component identification, not The component identification matched is denoted as second element mark;
The target adjustment rule that the state adjusts in rule list corresponding to each first component identification is determined as accordingly State adjustment rule, and obtain the corresponding state adjustment priority of each first component identification;
Rule is adjusted using the general adjustment rule of setting as the state of each second element mark, and determines each described second The state adjustment priority of component identification is lowermost level.
6. according to the method described in claim 5, it is characterized in that, the state adjustment rule based on each component identification And the original display status information of corresponding element, dispaly state of each element in the target painting canvas is adjusted, including:
The original display status information of state adjustment rule and corresponding first element based on each first component identification, is pressed It is sequentially adjusted in dispaly state of each first element in the target painting canvas from high to low according to corresponding state adjustment priority;
When meeting lowermost level adjustment, based on the general adjustment rule and each corresponding second element of second element mark Original display status information, adjust the dispaly state of each second element in the target painting canvas.
7. according to the method described in claim 1, it is characterized in that, further including:
If the element display properties is display, size is constant, and target painting canvas is obtained based on size handover information adjustment Afterwards, included each element is shown centered on corresponding original display size in the target painting canvas.
8. a kind of adjusting apparatus of element dispaly state, which is characterized in that including:
Data obtaining module obtains size handover information and the user of setting for triggering into after canvas size switch mode Selected element display properties;
First state adjusts module, for when the element display properties is to ensure properly to show, being switched based on the size Information and the corresponding state adjustment rule of editor's included each element of manuscript, each element of adjustment is after size switching in painting canvas Dispaly state.
9. a kind of smart machine, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs;
One or more of programs are executed by one or more of processors so that one or more of processors are realized The method of adjustment of element dispaly state as described in any one of claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The method of adjustment of the element dispaly state as described in any one of claim 1-7 is realized when execution.
CN201810145780.7A 2018-02-12 2018-02-12 Method of adjustment, device, smart machine and the storage medium of element dispaly state Pending CN108280052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810145780.7A CN108280052A (en) 2018-02-12 2018-02-12 Method of adjustment, device, smart machine and the storage medium of element dispaly state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810145780.7A CN108280052A (en) 2018-02-12 2018-02-12 Method of adjustment, device, smart machine and the storage medium of element dispaly state

Publications (1)

Publication Number Publication Date
CN108280052A true CN108280052A (en) 2018-07-13

Family

ID=62808426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810145780.7A Pending CN108280052A (en) 2018-02-12 2018-02-12 Method of adjustment, device, smart machine and the storage medium of element dispaly state

Country Status (1)

Country Link
CN (1) CN108280052A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375972A (en) * 2018-09-17 2019-02-22 广州视源电子科技股份有限公司 Method, apparatus, computer equipment and the storage medium of multielement layout
CN110780872A (en) * 2019-09-03 2020-02-11 腾讯科技(深圳)有限公司 Element arrangement method and device, computer readable storage medium and equipment
CN110992447A (en) * 2019-12-05 2020-04-10 北京中网易企秀科技有限公司 Image-text adaptation method, device, storage medium and equipment
CN111815657A (en) * 2020-07-28 2020-10-23 安徽沃特水务科技有限公司 Dynamic irregular element boundary cutting display method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2933689A1 (en) * 2013-12-13 2015-06-18 AI Squared Techniques for programmatic magnification of visible content elements of markup language documents
CN106325755A (en) * 2016-10-09 2017-01-11 腾讯科技(深圳)有限公司 Page content display method and device
CN106651996A (en) * 2016-12-20 2017-05-10 广州视源电子科技股份有限公司 Management method and apparatus for element levels in manuscript editing tool
CN107209628A (en) * 2015-01-21 2017-09-26 微软技术许可有限责任公司 Adaptive user interface pane object

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2933689A1 (en) * 2013-12-13 2015-06-18 AI Squared Techniques for programmatic magnification of visible content elements of markup language documents
CN107209628A (en) * 2015-01-21 2017-09-26 微软技术许可有限责任公司 Adaptive user interface pane object
CN106325755A (en) * 2016-10-09 2017-01-11 腾讯科技(深圳)有限公司 Page content display method and device
CN106651996A (en) * 2016-12-20 2017-05-10 广州视源电子科技股份有限公司 Management method and apparatus for element levels in manuscript editing tool

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
学习啦: "如何在ppt中设置图片自适应大小", 《HTTPS://WWW.XUEXILA.COM/PPT/2003/1332126.HTML》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375972A (en) * 2018-09-17 2019-02-22 广州视源电子科技股份有限公司 Method, apparatus, computer equipment and the storage medium of multielement layout
CN109375972B (en) * 2018-09-17 2022-03-08 广州视源电子科技股份有限公司 Method, apparatus, computer device and storage medium for multi-element layout
CN110780872A (en) * 2019-09-03 2020-02-11 腾讯科技(深圳)有限公司 Element arrangement method and device, computer readable storage medium and equipment
CN110780872B (en) * 2019-09-03 2023-10-24 腾讯科技(深圳)有限公司 Element arrangement method, element arrangement device, computer-readable storage medium and computer-readable storage device
CN110992447A (en) * 2019-12-05 2020-04-10 北京中网易企秀科技有限公司 Image-text adaptation method, device, storage medium and equipment
CN111815657A (en) * 2020-07-28 2020-10-23 安徽沃特水务科技有限公司 Dynamic irregular element boundary cutting display method

Similar Documents

Publication Publication Date Title
CN108280052A (en) Method of adjustment, device, smart machine and the storage medium of element dispaly state
CN110287368B (en) Short video template design drawing generation device and short video template generation method
CN104781850B (en) The graphic user interface layout of automation
US11915344B2 (en) Method and apparatus for automatic line drawing coloring and graphical user interface thereof
CN109345612B (en) Image generation method, device, equipment and storage medium
CN101739251A (en) Method and system for generating interface control
US11462002B2 (en) Wallpaper management method, apparatus, mobile terminal, and storage medium
CN108269295B (en) Method and device for intelligently quoting theme colors of slides
CN110287465B (en) Text processing method, device, equipment and storage medium
CN106814949A (en) A kind of cocos game editing machine control interfaces management method
CN113691854A (en) Video creation method and device, electronic equipment and computer program product
CN108829486B (en) Background setting method, device, equipment and storage medium
CN111415396A (en) Image generation method and device and storage medium
WO2024041444A1 (en) Aircraft formation light show control method, electronic apparatus, and storage medium
CN108958731A (en) A kind of Application Program Interface generation method, device, equipment and storage medium
CN108053460A (en) The method for drafting and its device of a kind of figure of power system
CN113655895B (en) Information recommendation method and device applied to input method and electronic equipment
CN117058275B (en) Commodity propaganda drawing generation method and device, computer equipment and storage medium
CN108469981A (en) A kind of desktop system for mobile phone can customize screens switch rule and screen rule
CN103793152A (en) Online customizing method for pictures of monitoring system of transformer substation
CN112927314B (en) Image data processing method and device and computer equipment
US11328236B2 (en) Information processing apparatus and non-transitory computer readable medium storing information processing program
WO2017120882A1 (en) Determining appearances for elements displayed on user interface
CN110176049B (en) Method for generating picture and PPT (point-to-point) by electronic blackboard writing
CN114444439B (en) Test question set file generation method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180713

RJ01 Rejection of invention patent application after publication