CN104461306B - rolling assembly control method and device - Google Patents
rolling assembly control method and device Download PDFInfo
- Publication number
- CN104461306B CN104461306B CN201310436994.7A CN201310436994A CN104461306B CN 104461306 B CN104461306 B CN 104461306B CN 201310436994 A CN201310436994 A CN 201310436994A CN 104461306 B CN104461306 B CN 104461306B
- Authority
- CN
- China
- Prior art keywords
- moving direction
- hscrollbar
- scroll bar
- move
- vertical scroll
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
- G06F3/04855—Interaction with scrollbars
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The present invention relates to a kind of rolling assembly control method and device.Methods described includes:The move to display content in user interface is received, and obtains the moving direction corresponding to the move;The HScrollBar for controlling rolling assembly according to the moving direction move to corresponding direction, and the movable end of the horizontal connection line connected with the HScrollBar together with the HScrollBar with moving;The vertical scroll bar for controlling rolling assembly according to the moving direction move to corresponding direction, and the movable ends of the vertical connection lines connected with the vertical scroll bar together with the vertical scroll bar with moving;The fixing end of horizontal connection line in the rolling assembly and the fixing end of vertical connection lines intersect and are fixed at joining.Above-mentioned rolling assembly control method and device, may be such that it is at least one in HScrollBar and vertical scroll bar do not blocked by operator, conveniently operated effectively, improve operating efficiency.
Description
Technical field
The present invention relates to control field is rolled, run on more particularly to a kind of in the interface on smart machine
Rolling assembly control method and device.
Background technology
Scroll bar is a kind of common user interface.When pages content be present, often reminded by the way of scroll bar
User, and facilitate user to move scroll bar to check the content for failing to show.User is touched with finger in touch screen mobile device
When screen is to control the interface with scroll bar, scroll bar appears in the left side or right side at interface, it is possible to is hidden by the hand of user
Gear, is not easy to operate, reduces operating efficiency.
The content of the invention
Based on this, it is necessary to for caused by existing scroll bar the problem of inefficient operation, there is provided one kind can carry
The rolling assembly control method of high operating efficiency.
A kind of rolling assembly control device that can improve operating efficiency is provided in addition, there is a need to.
A kind of rolling assembly control method, including:
The move to display content in user interface is received, and obtains the mobile side corresponding to the move
To;
According to the moving direction control rolling assembly HScrollBar moved to corresponding direction, and with the level
The movable end of the connected horizontal connection line of scroll bar moves together with the HScrollBar;
According to the moving direction control rolling assembly vertical scroll bar moved to corresponding direction, and with it is described vertical
The movable end of the connected vertical connection lines of scroll bar moves together with the vertical scroll bar;
Wherein, the fixing end of the horizontal connection line in the rolling assembly and the fixing end of vertical connection lines are intersecting and fixed
At joining.
In one of the embodiments, the HScrollBar is located at the upside of the interface box of the user interface and hung down
During the right side for the interface box that straight scroll bar be located at the user interface, when the moving direction corresponding to the move for
On, the moving direction of the HScrollBar is that the vertical scroll bar moving direction is downward to the right, and when the movement
The corresponding moving direction of instruction is downward, and the moving direction of the HScrollBar is to the left, the vertical scroll bar moves
Direction is upward;When the moving direction corresponding to the move is to be moved to the left, the mobile side of the HScrollBar
To for the right, the vertical scroll bar moving direction is downward;When the moving direction corresponding to the move is to move right
When dynamic, the moving direction of the HScrollBar is to the left, the vertical scroll bar moving direction is upward;
The HScrollBar is located at the upside of the interface box of the user interface and vertical scroll bar is located at the user
During the left side of the interface box at interface, when the moving direction corresponding to the move is upward, the shifting of the HScrollBar
Dynamic direction is that the vertical scroll bar moving direction is downward to the left, and when the moving direction corresponding to the move
To be downward, the moving direction of the HScrollBar is to the right, the vertical scroll bar moving direction is upward;When the movement
The corresponding moving direction of instruction is when being moved to the left, the moving direction of the HScrollBar is the vertical scrolling to the right
Bar moving direction is upper;When the moving direction corresponding to the move is to move right, the shifting of the HScrollBar
Dynamic direction is to the left, the vertical scroll bar moving direction is downward;
The HScrollBar is located at the downside of the interface box of user interface, and vertical scroll bar is located at the user interface
Interface box right side when, when the moving direction corresponding to the move is upward, the mobile side of the HScrollBar
To for the left, the moving direction of the vertical scroll bar is downward;When the moving direction corresponding to the move be it is downward,
The moving direction of the HScrollBar is to the right, the moving direction of the vertical scroll bar is upward;When the move
Corresponding moving direction is when being moved to the left, the moving direction of the HScrollBar is to the right, the vertical scroll bar moves
Dynamic direction is upper;When the moving direction corresponding to the move is to move right, the mobile side of the HScrollBar
To for the left, the vertical scroll bar moving direction is downward;
The HScrollBar is located at the downside of the interface box of user interface, and vertical scroll bar is located at the user interface
During the left side of interface box, when the moving direction corresponding to the move is upward, the moving direction of the HScrollBar
For to the right, the moving direction of the vertical scroll bar is downward;When the moving direction corresponding to the move is downward, institute
The moving direction of HScrollBar is stated as to the left, the moving direction of the vertical scroll bar is upward;When the move institute
Corresponding moving direction is when being moved to the left, the moving direction of the HScrollBar is to the right, the vertical scroll bar moves
Under direction is;When the moving direction corresponding to the move is to move right, the moving direction of the HScrollBar
For to the left, the vertical scroll bar moving direction is upward.
In one of the embodiments, the moving operation of display content in user interface is instructed in described receive, and obtained
Before the step of taking the moving direction corresponding to the moving operation instruction, in addition to:
Receive user interface to be pressed instruction or during move, show the rolling assembly immediately.
In one of the embodiments, methods described also includes:
The instruction of lifting to user interface is received, and detection is not received to any of user interface in preset time
During instruction, the rolling assembly is hidden.
In one of the embodiments, in move of the reception to display content in user interface, and institute is obtained
After the step of stating the moving direction corresponding to move, in addition to:
Obtain W1, H1, W2, H2, H3, wherein, H3 be the move corresponding to movement in vertical direction away from
From the width and height of the interface box that, W1 and H1 are respectively user interface, W2 and H2 are respectively the width and height of display content;
S1 and S2 is obtained according to W1, H1, W2, H2, H3, wherein, S1 moves horizontally distance, S2 for the HScrollBar
For the vertical travel distance of the vertical scroll bar, calculation formula is:S1=(H3*W1)/ H2, S2=(H3*H1)/H2;
It is described according to the moving direction control rolling assembly HScrollBar moved to corresponding direction, and with it is described
The step that the movable end of the connected horizontal connection line of HScrollBar moves together with the HScrollBar includes:
The HScrollBar for controlling rolling assembly according to the moving direction moves moving horizontally for S1 to corresponding direction
Distance, and the movable end for the horizontal connection line being connected with the HScrollBar together with the HScrollBar with moving S1's
Move horizontally distance;
According to the moving direction control rolling assembly vertical scroll bar moved to corresponding direction, and with it is described vertical
The step that the movable end of the connected vertical connection lines of scroll bar moves together with the vertical scroll bar includes:
The vertical scroll bar for controlling rolling assembly according to the moving direction moves vertically moving for S2 to corresponding direction
Distance, and the movable end for the vertical connection lines being connected with the vertical scroll bar together with the vertical scroll bar with moving S2's
Vertical travel distance.
A kind of rolling assembly control device, including:
Detection module, for receiving the move to display content in user interface, and obtain the move institute
Corresponding moving direction;
Horizontal control module, for controlling the HScrollBar of rolling assembly according to the moving direction to corresponding direction
It is mobile, and the movable end for the horizontal connection line being connected with the HScrollBar together with the HScrollBar with moving;
Vertical control module, for controlling the vertical scroll bar of rolling assembly according to the moving direction to corresponding direction
It is mobile, and the movable end for the vertical connection lines being connected with the vertical scroll bar together with the vertical scroll bar with moving;
Wherein, the fixing end of the horizontal connection line in the rolling assembly and the fixing end of vertical connection lines are intersecting and fixed
At joining.
In one of the embodiments, the HScrollBar is located at the upside of the interface box of the user interface and hung down
During the right side for the interface box that straight scroll bar be located at the user interface, when the moving direction corresponding to the move for
On, the moving direction of the HScrollBar is that the vertical scroll bar moving direction is downward to the right, and when the movement
The corresponding moving direction of instruction is downward, and the moving direction of the HScrollBar is to the left, the vertical scroll bar moves
Direction is upward;When the moving direction corresponding to the move is to be moved to the left, the mobile side of the HScrollBar
To for the right, the vertical scroll bar moving direction is downward;When the moving direction corresponding to the move is to move right
When dynamic, the moving direction of the HScrollBar is to the left, the vertical scroll bar moving direction is upward;
The HScrollBar is located at the upside of the interface box of the user interface and vertical scroll bar is located at the user
During the left side of the interface box at interface, when the moving direction corresponding to the move is upward, the shifting of the HScrollBar
Dynamic direction is that the vertical scroll bar moving direction is downward to the left, and when the moving direction corresponding to the move
To be downward, the moving direction of the HScrollBar is to the right, the vertical scroll bar moving direction is upward;When the movement
The corresponding moving direction of instruction is when being moved to the left, the moving direction of the HScrollBar is the vertical scrolling to the right
Bar moving direction is upper;When the moving direction corresponding to the move is to move right, the shifting of the HScrollBar
Dynamic direction is to the left, the vertical scroll bar moving direction is downward;
The HScrollBar is located at the downside of the interface box of user interface, and vertical scroll bar is located at the user interface
Interface box right side when, when the moving direction corresponding to the move is upward, the mobile side of the HScrollBar
To for the left, the moving direction of the vertical scroll bar is downward;When the moving direction corresponding to the move be it is downward,
The moving direction of the HScrollBar is to the right, the moving direction of the vertical scroll bar is upward;When the move
Corresponding moving direction is when being moved to the left, the moving direction of the HScrollBar is to the right, the vertical scroll bar moves
Dynamic direction is upper;When the moving direction corresponding to the move is to move right, the mobile side of the HScrollBar
To for the left, the vertical scroll bar moving direction is downward;
The HScrollBar is located at the downside of the interface box of user interface, and vertical scroll bar is located at the user interface
During the left side of interface box, when the moving direction corresponding to the move is upward, the moving direction of the HScrollBar
For to the right, the moving direction of the vertical scroll bar is downward;When the moving direction corresponding to the move is downward, institute
The moving direction of HScrollBar is stated as to the left, the moving direction of the vertical scroll bar is upward;When the move institute
Corresponding moving direction is when being moved to the left, the moving direction of the HScrollBar is to the right, the vertical scroll bar moves
Under direction is;When the moving direction corresponding to the move is to move right, the moving direction of the HScrollBar
For to the left, the vertical scroll bar moving direction is upward.
In one of the embodiments, the rolling assembly control device also includes:
Display module, it is pressed instruction or during move for receiving user interface, shows the rolling assembly immediately.
In one of the embodiments, the rolling assembly control device also includes:
Hidden module, for receiving lifting instruction and detect when default to user interface in the detection module
In when not receiving the arbitrary instruction to user interface, hide the rolling assembly.
In one of the embodiments, the rolling assembly control device also includes:
Acquisition module, for obtaining W1, H1, W2, H2, H3, wherein, H3 is in Vertical Square corresponding to the move
Upward displacement, W1 and H1 are respectively the width and height of the interface box of user interface, and W2 and H2 are respectively display content
Width and height;
Processing module, for obtaining S1 and S2 according to W1, H1, W2, H2, H3, wherein, S1 is the shifting of the HScrollBar
Dynamic distance, S2 are the displacement of the vertical scroll bar, and calculation formula is:S1=(H3*W1)/ H2, S2=(H3*H1)/H2;
The horizontal control module is additionally operable to control the HScrollBar of rolling assembly to corresponding according to the moving direction
Direction movement S1 move horizontally distance, and the movable end for the horizontal connection line being connected with the HScrollBar is with described
What HScrollBar moved S1 together moves horizontally distance;
The vertical control module is additionally operable to control the vertical scroll bar of rolling assembly to corresponding according to the moving direction
Direction movement S2 vertical travel distance, and the movable end for the vertical connection lines being connected with the vertical scroll bar is with described
Vertical scroll bar moves S2 vertical travel distance together.
Above-mentioned rolling assembly control method and device, the HScrollBar of rolling assembly and vertical is controlled by move
Scroll bar move, may be such that it is at least one in HScrollBar and vertical scroll bar do not blocked by operator, conveniently had
The operation of effect, improves operating efficiency.
Brief description of the drawings
Fig. 1 is rolling assembly schematic diagram in the user interface of embodiment one;
Fig. 2 is rolling assembly schematic diagram in the user interface of embodiment two;
Fig. 3 is rolling assembly schematic diagram in the user interface of embodiment three;
Fig. 4 is rolling assembly schematic diagram in the user interface of example IV;
Fig. 5 is the flow chart of the rolling assembly control method of embodiment five;
Fig. 6 is the structural representation of the rolling assembly control device in embodiment six;
Fig. 7 is the structural representation of the rolling assembly control device of embodiment seven.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 is rolling assembly schematic diagram in the user interface of embodiment one.User interface includes interface box 110, shown in Fig. 1
Show content 120, rolling assembly 130.Rolling assembly 130 includes HScrollBar 132, horizontal connection line 134, vertical scroll bar
136 and vertical connection lines 138, the movable end connection HScrollBar 132 of horizontal connection line 134, the activity of vertical connection lines 138
End connection vertical scroll bar 136, the fixing end of horizontal connection line 134 and the fixing end of vertical connection lines 138 intersect and are fixed on
At joining.HScrollBar 132 is located at the upside of interface box 110, vertical scroll bar 136 is located at the right side of interface box 110.
HScrollBar 132, the width of vertical scroll bar 136 are fixed, can be preset.HScrollBar 132
Maximum length is the width of interface box 110, and the minimum length of HScrollBar 132 is twice width of itself;Vertical scrolling
The maximum length of bar 136 is the height of interface box 110, and the minimum length of vertical scroll bar 136 is twice width of itself.
For example, the width W1 and height H1 of interface box 110, the width W2 and height H2 of display content 120, normal conditions
Under, the height of display content 120 is more than the height of interface box 110, because the height of display content 120 is more than the height of interface box 110
When, just occur scroll bar, drawn display content is the content for belonging to and being shown in interface box 110 in Fig. 1, there are many need
Other display contents being not shown in interface box 110 could be shown after dragging display content.The then length of HScrollBar 132
Degree L1 calculation formula be:HScrollBar length L1=(W1*H1)/ H2, as if (L1>When W1), L1=W1;Vertical scroll bar
136 length L2 calculation formula is:Vertical scroll bar length L2=(H1*H1)/ H2, if(L2>H1)When, L2=H1.
Fig. 2 is rolling assembly schematic diagram in the user interface of embodiment two.Fig. 2 user interface includes interface box 210, shown
Show content 220, rolling assembly 230.Rolling assembly 230 includes HScrollBar 232, horizontal connection line 234, vertical scroll bar
236 and vertical connection lines 238.Fig. 2 and Fig. 1 difference is:Vertical scroll bar 236 is located at the left side of display content 220.
Fig. 3 is rolling assembly schematic diagram in the user interface of embodiment three.Fig. 3 user interface includes interface box 310, shown
Show content 320, rolling assembly 330.Rolling assembly 330 includes HScrollBar 332, horizontal connection line 334, vertical scroll bar
336 and vertical connection lines 338.Fig. 3 and Fig. 1 difference is:HScrollBar 332 is located at the downside of display content 320.
Fig. 4 is rolling assembly schematic diagram in the user interface of example IV.Fig. 4 user interface includes interface box 410, shown
Show content 420, rolling assembly 430.Rolling assembly 430 includes HScrollBar 432, horizontal connection line 434, vertical scroll bar
436 and vertical connection lines 438.Fig. 4 and Fig. 1 difference is:HScrollBar 432 is located at the downside of display content 420, vertically
Scroll bar 436 is located at the left side of display content 420.
Fig. 1 to the upside described in Fig. 4, downside, left side, right side is shown when normally being watched by user with display content
Content present position is described, and the upside, downside, left side, right side are set for convenience, can also use it
He describes mode, is not intended as the restriction to institute's protection domain of the present invention.
Fig. 5 is the flow chart of the rolling assembly control method of embodiment five.The rolling assembly control method, including:
Step 502, the move to display content in user interface is received, and obtains the shifting corresponding to the move
Dynamic direction.
Specifically, move refers to instruct caused by drag operation on a user interface.User is in mobile display
Rong Shi, it can move up or move down, or be moved to the left or move right.
Step 504, according to the moving direction control rolling assembly HScrollBar moved to corresponding direction, and with this
The movable end of the connected horizontal connection line of HScrollBar moves together with the HScrollBar.
Step 506, according to the moving direction control rolling assembly vertical scroll bar moved to corresponding direction, and with this
The movable end of the connected vertical connection lines of vertical scroll bar moves together with the vertical scroll bar, wherein, the rolling assembly
In horizontal connection line fixing end and vertical connection lines fixing end it is intersecting and be fixed at joining.
With reference to Fig. 1 and Fig. 5, the HScrollBar 132 is located at the upside of the interface box 110 of user interface, the vertical scrolling
When bar 136 is located at the right side of the interface box 110 of the user interface, when the moving direction corresponding to the move be it is upward, should
The moving direction of HScrollBar 132 is to the right, the moving direction of vertical scroll bar 136 is downward;When the move, institute is right
The moving direction answered is downward, and the moving direction of the HScrollBar 132 is to the left, the moving direction of vertical scroll bar 136 is
Upwards.
When the moving direction corresponding to move for when being moved to the left, the moving direction of HScrollBar 132 for the right,
The moving direction of vertical scroll bar 136 is downward;When the moving direction corresponding to move is to move right, HScrollBar
132 moving direction is to the left, the moving direction of vertical scroll bar 136 is upward.
With reference to Fig. 2 and Fig. 5, the HScrollBar 232 is located at the upside of the interface box 210 of user interface, and vertical scrolling
When bar 236 is located at the left side of the interface box 210 of the user interface, when the moving direction corresponding to the move be it is upward, should
The moving direction of HScrollBar 232 is to the left, the moving direction of the vertical scroll bar 236 is downward;When the move institute
Corresponding moving direction is downward, and the moving direction of the HScrollBar 232 is the mobile side of the vertical scroll bar 236 to the right
To be upward.
When the moving direction corresponding to move for when being moved to the left, the moving direction of HScrollBar 232 for the right,
The moving direction of vertical scroll bar 236 is upper;When the moving direction corresponding to move is to move right, HScrollBar
232 moving direction is to the left, the moving direction of vertical scroll bar 236 is downward.
With reference to Fig. 3 and Fig. 5, the HScrollBar 332 is located at the downside of the interface box 310 of user interface, and vertical scrolling
When bar 336 is located at the right side of the interface box 310 of the user interface, when the moving direction corresponding to the move be it is upward, should
The moving direction of HScrollBar 332 is to the left, the moving direction of the vertical scroll bar 336 is downward;When the move institute
Corresponding moving direction is downward, and the moving direction of the HScrollBar 332 is the mobile side of the vertical scroll bar 336 to the right
To be upward.
When the moving direction corresponding to move for when being moved to the left, the moving direction of HScrollBar 332 for the right,
The moving direction of vertical scroll bar 336 is upper;When the moving direction corresponding to move is to move right, HScrollBar
332 moving direction is to the left, the moving direction of vertical scroll bar 336 is downward.
With reference to Fig. 4 and Fig. 5, the HScrollBar 432 is located at the downside of the interface box 410 of user interface, and vertical scrolling
When bar 436 is located at the left side of the interface box 410 of the user interface, when the moving direction corresponding to the move be it is upward, should
The moving direction of HScrollBar 432 is to the right, the moving direction of the vertical scroll bar 436 is downward;When the move institute
Corresponding moving direction is downward, and the moving direction of the HScrollBar 432 is the mobile side of the vertical scroll bar 436 to the left
To be upward.
When the moving direction corresponding to move for when being moved to the left, the moving direction of HScrollBar 432 for the right,
Under the moving direction of vertical scroll bar 436 is;When the moving direction corresponding to move is to move right, HScrollBar
432 moving direction is to the left, the moving direction of vertical scroll bar 436 is upward.
Upper and lower, left and right used in foregoing description are user interfaces when normally being watched by user with display content
Upper and lower, left and right are consistent, the use of upper and lower, left and right are description technical schemes for convenience, are not intended as to this
The restriction of invention protection domain, can also other modes be used to describe.
Above-mentioned rolling assembly control method, the HScrollBar and vertical scroll bar of rolling assembly are controlled by move
It is mobile, may be such that it is at least one in HScrollBar and vertical scroll bar do not blocked by operator, it is convenient effectively to be grasped
Make, improve operating efficiency, save the operating time, save electric energy.
In other embodiments, in move of the reception to display content in user interface, and obtain the movement and refer to
Before the step of making corresponding moving direction, in addition to:Receive user interface to be pressed instruction or during move, show immediately
Show the rolling assembly.
Specifically, the instruction as caused by giving an order and refer to by touch-control part in user interface push.The touch-control
Part can be user's finger, stylus etc..
In other embodiments, above-mentioned rolling assembly control method, in addition to:Receive and finger is lifted to user interface
Order, and detection hides the rolling assembly when not receiving the arbitrary instruction to user interface in preset time.
Refer to specifically, lifting the touch-control part that instruction refers to press on a user interface and leaving caused by user interface
Order.Preset time can be according to setting, such as 3 seconds or 5 seconds.Hide rolling assembly, it is possible to increase display content region, display are more
Content, improve the utilization rate of display space.
In other embodiments, in move of the reception to display content in user interface, and obtain the movement and refer to
After the step of making corresponding moving direction, in addition to:
(1)Obtain W1, H1, W2, H2, H3, wherein, H3 be the move corresponding to movement in vertical direction away from
From the width and height of the interface box that, W1 and H1 are respectively user interface, W2 and H2 are respectively the width and height of display content.
(2)S1 and S2 is obtained according to W1, H1, W2, H2, H3, wherein, S1 moves horizontally distance for the HScrollBar,
S2 is the vertical travel distance of the vertical scroll bar, and calculation formula is:S1=(H3*W1)/ H2, S2=(H3*H1)/H2.
The step for controlling the HScrollBar of rolling assembly to be moved to corresponding direction according to the moving direction includes:
The HScrollBar for controlling rolling assembly according to the moving direction moves horizontally distance to corresponding direction movement S1.Together
When, the movable end of horizontal connection line moves horizontally distance with HScrollBar movement S1.
Included according to the step that the moving direction controls the vertical scroll bar of rolling assembly to be moved to corresponding direction:Root
S2 vertical travel distance is moved to corresponding direction according to the vertical scroll bar of moving direction control rolling assembly.Meanwhile
The movable end of vertical connection lines moves S2 vertical travel distance with vertical scroll bar.
Fig. 6 is the structural representation of the rolling assembly control device in embodiment six.The rolling assembly control device includes
Detection module 620, horizontal control module 640 and vertical control module 660.Wherein:
Detection module 620 is used to receive the move to display content in user interface, and obtains the move institute
Corresponding moving direction.
Horizontal control module 640 is used to control the HScrollBar of rolling assembly to corresponding direction according to the moving direction
It is mobile, and the movable end for the horizontal connection line being connected with the HScrollBar together with the HScrollBar with moving.
Vertical control module 660 is used to control the vertical scroll bar of rolling assembly to corresponding direction according to the moving direction
It is mobile, and the movable end for the vertical connection lines being connected with the vertical scroll bar together with the vertical scroll bar with moving.
Wherein, the fixing end of the horizontal connection line in the rolling assembly and the fixing end of vertical connection lines intersect and are fixed on
At joining.
The HScrollBar is located at the upside of the interface box of the user interface and vertical scroll bar is located at the user interface
During the right side of interface box, when the moving direction corresponding to the move be it is upward, the moving direction of the HScrollBar be to
The right side, the vertical scroll bar moving direction is downward, and when the moving direction corresponding to the move is downward, level rolling
The moving direction of dynamic bar is to the left, the vertical scroll bar moving direction is upward;When the moving direction corresponding to move is
When being moved to the left, the moving direction of HScrollBar is to the right, vertical scroll bar moving direction is downward;When move, institute is right
The moving direction answered for when moving right, the moving direction of HScrollBar for the left, the vertical scroll bar moving direction be to
On.
The HScrollBar is located at the upside of the interface box of the user interface and vertical scroll bar is located at the user interface
During the left side of interface box, when the moving direction corresponding to the move be it is upward, the moving direction of the HScrollBar be to
A left side, the vertical scroll bar moving direction is downward, and when the moving direction corresponding to the move is downward, level rolling
The moving direction of dynamic bar is to the right, the vertical scroll bar moving direction is upward;When the moving direction corresponding to move is
When being moved to the left, the moving direction of HScrollBar is to the right, vertical scroll bar moving direction is upper;When corresponding to move
Moving direction for when moving right, the moving direction of HScrollBar is to the left, the vertical scroll bar moving direction is downward.
The HScrollBar is located at the downside of the interface box of user interface, and vertical scroll bar is located at the boundary of the user interface
During the right side of surface frame, when the moving direction corresponding to the move be it is upward, the moving direction of the HScrollBar for the left,
The moving direction of the vertical scroll bar is downward;When the moving direction corresponding to the move is downward, the HScrollBar
Moving direction for the right, the moving direction of the vertical scroll bar is upward;When the moving direction corresponding to move be to
When moving left, the moving direction of HScrollBar is to the right, vertical scroll bar moving direction is upper;When corresponding to move
Moving direction is when moving right, the moving direction of HScrollBar is to the left, the vertical scroll bar moving direction is downward.
The HScrollBar is located at the downside of the interface box of user interface, and vertical scroll bar is located at the boundary of the user interface
During the left side of surface frame, when the moving direction corresponding to the move be it is upward, the moving direction of the HScrollBar for the right,
The moving direction of the vertical scroll bar is downward;When the moving direction corresponding to the move is downward, the HScrollBar
Moving direction for the left, the moving direction of the vertical scroll bar is upward;When the moving direction corresponding to move be to
When moving left, the moving direction of HScrollBar is to the right, under vertical scroll bar moving direction is;When corresponding to move
Moving direction is when moving right, the moving direction of HScrollBar is to the left, the vertical scroll bar moving direction is upward.
Fig. 7 is the structural representation of the rolling assembly control device of embodiment seven.The rolling assembly control device is except inspection
Survey module 620, horizontal control module 640 and vertical control module 660, in addition to acquisition module 630, processing module 632, display
Module 680, hidden module 690.
Acquisition module 630 is used to obtain W1, H1, W2, H2, H3, wherein, H3 is in Vertical Square corresponding to the move
Upward displacement, W1 and H1 are respectively the width and height of the interface box of user interface, and W2 and H2 are respectively display content
Width and height.
Processing module 640 is used to obtain S1 and S2 according to W1, H1, W2, H2, H3, wherein, S1 is the water of the HScrollBar
Flat displacement, S2 are the vertical travel distance of the vertical scroll bar, and calculation formula is:S1=(H3*W1)/ H2, S2=(H3*
H1)/H2.
Horizontal control module 640 is additionally operable to control the HScrollBar of rolling assembly to corresponding side according to the moving direction
Distance is moved horizontally to mobile S1, and the movable end for the horizontal connection line being connected with the HScrollBar is with the horizontal rolling
What bar moved S1 together moves horizontally distance.
Vertical control module 660 is additionally operable to control the vertical scroll bar of rolling assembly to corresponding side according to the moving direction
To mobile S2 vertical travel distance, and the movable end for the vertical connection lines being connected with vertical scroll bar is with the vertical scroll bar
S2 vertical travel distance is moved together.
Display module 680 is used to receiving user interface and is pressed instruction or during move, shows the rolling assembly immediately.
Specifically, the instruction as caused by giving an order and refer to by touch-control part in user interface push.The touch-control part can be
User's finger, stylus etc..
Hidden module 690 is used to receive lifting instruction and detect when default to user interface in the detection module
In when not receiving the arbitrary instruction to user interface, hide the rolling assembly.Preset time can be according to setting, such as 3 seconds or 5
Second etc..Hide rolling assembly, it is possible to increase display content region, show more contents, improve the utilization rate of display space.
In addition, corresponding to the details not being described in detail in rolling assembly control device can refer in rolling assembly control method
Description.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of rolling assembly control method, including:
The move to display content in user interface is received, and obtains the moving direction corresponding to the move, its
In, the moving direction corresponding to the move is upwards, downwards, to the left or to the right;
According to the moving direction control rolling assembly HScrollBar moved to corresponding direction, and with the horizontal rolling
The movable end of the connected horizontal connection line of bar moves together with the HScrollBar;
According to the moving direction control rolling assembly vertical scroll bar moved to corresponding direction, and with the vertical scrolling
The movable end of the connected vertical connection lines of bar moves together with the vertical scroll bar;
Wherein, the fixing end of the horizontal connection line in the rolling assembly and the fixing end of vertical connection lines intersect and are fixed on phase
Point of intersection.
2. rolling assembly control method according to claim 1, it is characterised in that the HScrollBar is located at the use
During the right side for the interface box that the upside of the interface box at family interface and vertical scroll bar are located at the user interface, when the movement
The corresponding moving direction of instruction is upward, and the moving direction of the HScrollBar is to the right, the vertical scroll bar moves
Direction is downward, and when the moving direction corresponding to the move is downward, the moving direction of the HScrollBar
For to the left, the vertical scroll bar moving direction is upward;When the moving direction corresponding to the move is to be moved to the left
When, the moving direction of the HScrollBar is to the right, the vertical scroll bar moving direction is downward;When the move
Corresponding moving direction is when moving right, the moving direction of the HScrollBar is to the left, the vertical scroll bar moves
Dynamic direction is upward;
The HScrollBar is located at the upside of the interface box of the user interface and vertical scroll bar is located at the user interface
Interface box left side when, when the moving direction corresponding to the move is upward, the mobile side of the HScrollBar
To for the left, the vertical scroll bar moving direction is downward, and when the moving direction corresponding to the move be to
Under, the moving direction of the HScrollBar is to the right, the vertical scroll bar moving direction is upward;When the move
Corresponding moving direction is when being moved to the left, the moving direction of the HScrollBar is to the right, the vertical scroll bar moves
Dynamic direction is upper;When the moving direction corresponding to the move is to move right, the mobile side of the HScrollBar
To for the left, the vertical scroll bar moving direction is downward;
The HScrollBar is located at the downside of the interface box of user interface, and vertical scroll bar is located at the boundary of the user interface
During the right side of surface frame, when the moving direction corresponding to the move is upward, the moving direction of the HScrollBar is
To the left, the moving direction of the vertical scroll bar is downward;When the moving direction corresponding to the move be it is downward, it is described
The moving direction of HScrollBar is to the right, the moving direction of the vertical scroll bar is upward;When the move, institute is right
The moving direction answered is when being moved to the left, the moving direction of the HScrollBar is the vertical scroll bar movement side to the right
To be upper;When the moving direction corresponding to the move for when moving right, the moving direction of the HScrollBar is
To the left, the vertical scroll bar moving direction is downward;
The HScrollBar is located at the downside of the interface box of user interface, and vertical scroll bar is located at the interface of the user interface
During the left side of frame, when the moving direction corresponding to the move be it is upward, the moving direction of the HScrollBar be to
The right side, the moving direction of the vertical scroll bar is downward;When the moving direction corresponding to the move is downward, the water
The moving direction of flat scroll bar is to the left, the moving direction of the vertical scroll bar is upward;When corresponding to the move
Moving direction for when being moved to the left, the moving direction of the HScrollBar is to the right, the vertical scroll bar moving direction
For under;When the moving direction corresponding to the move for when moving right, the moving direction of the HScrollBar be to
A left side, the vertical scroll bar moving direction is upward.
3. rolling assembly control method according to claim 1, it is characterised in that received described to showing in user interface
Before the step of showing the moving operation instruction of content, and obtaining the moving direction corresponding to the moving operation instruction, in addition to:
Receive user interface to be pressed instruction or during move, show the rolling assembly immediately.
4. rolling assembly control method according to claim 1, it is characterised in that methods described also includes:
The instruction of lifting to user interface is received, and detection does not receive the arbitrary instruction to user interface in preset time
When, hide the rolling assembly.
5. rolling assembly control method according to claim 1, it is characterised in that received described to showing in user interface
After the step of showing the move of content, and obtaining the moving direction corresponding to the move, in addition to:
W1, H1, W2, H2, H3 are obtained, wherein, displacements in vertical direction of the H3 corresponding to the move, W1
It is respectively the width and height of the interface box of user interface with H1, W2 and H2 are respectively the width and height of display content;
S1 and S2 is obtained according to W1, H1, W2, H2, H3, wherein, S1 moves horizontally distance for the HScrollBar, and S2 is institute
The vertical travel distance of vertical scroll bar is stated, calculation formula is:S1=(H3*W1)/H2, S2=(H3*H1)/H2;
It is described according to the moving direction control rolling assembly HScrollBar moved to corresponding direction, and with the level
The step that the movable end of the connected horizontal connection line of scroll bar moves together with the HScrollBar includes:
The HScrollBar for controlling rolling assembly according to the moving direction moves horizontally distance to corresponding direction movement S1,
And the movable end for the horizontal connection line being connected with the HScrollBar is with the level that S1 is moved together with the HScrollBar
Displacement;
According to the moving direction control rolling assembly vertical scroll bar moved to corresponding direction, and with the vertical scrolling
The step that the movable end of the connected vertical connection lines of bar moves together with the vertical scroll bar includes:
S2 vertical travel distance is moved to corresponding direction according to the vertical scroll bar of moving direction control rolling assembly,
And the movable end for the vertical connection lines being connected with the vertical scroll bar together with the vertical scroll bar with moving the vertical of S2
Displacement.
6. a kind of rolling assembly control device, it is characterised in that the rolling assembly control device includes:
Detection module, for receiving the move to display content in user interface, and obtain corresponding to the move
Moving direction, wherein, moving direction corresponding to the move is upwards, downwards, to the left or to the right;
Horizontal control module, for being controlled the HScrollBar of rolling assembly to be moved to corresponding direction according to the moving direction
It is dynamic, and the movable end for the horizontal connection line being connected with the HScrollBar together with the HScrollBar with moving;
Vertical control module, for being controlled the vertical scroll bar of rolling assembly to be moved to corresponding direction according to the moving direction
It is dynamic, and the movable end for the vertical connection lines being connected with the vertical scroll bar together with the vertical scroll bar with moving;
Wherein, the fixing end of the horizontal connection line in the rolling assembly and the fixing end of vertical connection lines intersect and are fixed on phase
Point of intersection.
7. rolling assembly control device according to claim 6, it is characterised in that the HScrollBar is located at the use
During the right side for the interface box that the upside of the interface box at family interface and vertical scroll bar are located at the user interface, when the movement
The corresponding moving direction of instruction is upward, and the moving direction of the HScrollBar is to the right, the vertical scroll bar moves
Direction is downward, and when the moving direction corresponding to the move is downward, the moving direction of the HScrollBar
For to the left, the vertical scroll bar moving direction is upward;When the moving direction corresponding to the move is to be moved to the left
When, the moving direction of the HScrollBar is to the right, the vertical scroll bar moving direction is downward;When move, institute is right
The moving direction answered is when moving right, the moving direction of the HScrollBar is the vertical scroll bar movement side to the left
To be upward;
The HScrollBar is located at the upside of the interface box of the user interface and vertical scroll bar is located at the user interface
Interface box left side when, when the moving direction corresponding to the move is upward, the mobile side of the HScrollBar
To for the left, the vertical scroll bar moving direction is downward, and when the moving direction corresponding to the move be to
Under, the moving direction of the HScrollBar is to the right, the vertical scroll bar moving direction is upward;When the move
Corresponding moving direction is when being moved to the left, the moving direction of the HScrollBar is to the right, the vertical scroll bar moves
Dynamic direction is upper;When the moving direction corresponding to the move is to move right, the mobile side of the HScrollBar
To for the left, the vertical scroll bar moving direction is downward;
The HScrollBar is located at the downside of the interface box of user interface, and vertical scroll bar is located at the boundary of the user interface
During the right side of surface frame, when the moving direction corresponding to the move is upward, the moving direction of the HScrollBar is
To the left, the moving direction of the vertical scroll bar is downward;When the moving direction corresponding to the move be it is downward, it is described
The moving direction of HScrollBar is to the right, the moving direction of the vertical scroll bar is upward;When the move, institute is right
The moving direction answered is when being moved to the left, the moving direction of the HScrollBar is the vertical scroll bar movement side to the right
To be upper;When the moving direction corresponding to the move for when moving right, the moving direction of the HScrollBar is
To the left, the vertical scroll bar moving direction is downward;
The HScrollBar is located at the downside of the interface box of user interface, and vertical scroll bar is located at the interface of the user interface
During the left side of frame, when the moving direction corresponding to the move be it is upward, the moving direction of the HScrollBar be to
The right side, the moving direction of the vertical scroll bar is downward;When the moving direction corresponding to the move is downward, the water
The moving direction of flat scroll bar is to the left, the moving direction of the vertical scroll bar is upward;When corresponding to the move
Moving direction for when being moved to the left, the moving direction of the HScrollBar is to the right, the vertical scroll bar moving direction
For under;When the moving direction corresponding to the move for when moving right, the moving direction of the HScrollBar be to
A left side, the vertical scroll bar moving direction is upward.
8. rolling assembly control device according to claim 6, it is characterised in that the rolling assembly control device also wraps
Include:
Display module, it is pressed instruction or during move for receiving user interface, shows the rolling assembly immediately.
9. rolling assembly control device according to claim 6, it is characterised in that the rolling assembly control device also wraps
Include:
Hidden module, for the detection module receive to user interface lift instruction and detect in preset time
When not receiving the arbitrary instruction to user interface, the rolling assembly is hidden.
10. rolling assembly control device according to claim 6, it is characterised in that the rolling assembly control device is also
Including:
Acquisition module, for obtaining W1, H1, W2, H2, H3, wherein, H3 be the move corresponding in vertical direction
Displacement, W1 and H1 are respectively the width and height of the interface box of user interface, and W2 and H2 are respectively the width of display content
Degree and height;
Processing module, for according to W1, H1, W2, H2, H3 obtain S1 and S2, wherein, S1 be the HScrollBar movement away from
From S2 is the displacement of the vertical scroll bar, and calculation formula is:S1=(H3*W1)/H2, S2=(H3*H1)/H2;
The horizontal control module is additionally operable to control the HScrollBar of rolling assembly to corresponding side according to the moving direction
Distance is moved horizontally to mobile S1, and the movable end for the horizontal connection line being connected with the HScrollBar is with the level
What scroll bar moved S1 together moves horizontally distance;
The vertical control module is additionally operable to control the vertical scroll bar of rolling assembly to corresponding side according to the moving direction
To mobile S2 vertical travel distance, and the movable end for the vertical connection lines being connected with the vertical scroll bar is with described vertical
Scroll bar moves S2 vertical travel distance together.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310436994.7A CN104461306B (en) | 2013-09-23 | 2013-09-23 | rolling assembly control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310436994.7A CN104461306B (en) | 2013-09-23 | 2013-09-23 | rolling assembly control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104461306A CN104461306A (en) | 2015-03-25 |
CN104461306B true CN104461306B (en) | 2017-12-01 |
Family
ID=52907449
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310436994.7A Active CN104461306B (en) | 2013-09-23 | 2013-09-23 | rolling assembly control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104461306B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112579224B (en) * | 2019-09-30 | 2024-08-02 | 北京国双科技有限公司 | Method and device for displaying scroll bar container |
CN110989907B (en) * | 2019-11-27 | 2021-06-15 | 浙江大华技术股份有限公司 | Data display method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217730A (en) * | 2007-01-04 | 2008-07-09 | 三星电子株式会社 | Data scrolling apparatus and method for mobile terminal |
CN101539834A (en) * | 2008-03-20 | 2009-09-23 | Lg电子株式会社 | Portable terminal capable of sensing proximity touch and method for controlling screen in the same |
CN103309581A (en) * | 2013-05-29 | 2013-09-18 | 广东欧珀移动通信有限公司 | Method and device for positioning progress bar |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB0406056D0 (en) * | 2004-03-18 | 2004-04-21 | Ibm | Method and apparatus for two-dimensional scrolling in a graphical display window |
CN101201717A (en) * | 2006-12-12 | 2008-06-18 | 中兴通讯股份有限公司 | Method for convenience of window interface rolling motion |
CN101369197B (en) * | 2007-08-16 | 2010-12-08 | 昆盈企业股份有限公司 | Computer window scroll bar control method |
CN101470572B (en) * | 2007-12-29 | 2010-09-01 | 英业达股份有限公司 | Optimum display system and method for context progress |
CN101446884B (en) * | 2008-12-19 | 2010-12-01 | 腾讯科技(深圳)有限公司 | Touch screen device and scrolling method thereof |
US20110202934A1 (en) * | 2010-02-12 | 2011-08-18 | Ludwig Lester F | Window manger input focus control for high dimensional touchpad (htpd), advanced mice, and other multidimensional user interfaces |
CN102169410A (en) * | 2011-03-15 | 2011-08-31 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for displaying terminal information |
CN102662602B (en) * | 2012-05-03 | 2015-11-18 | 北京新媒传信科技有限公司 | A kind of implementation method of scroll bar special efficacy |
-
2013
- 2013-09-23 CN CN201310436994.7A patent/CN104461306B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217730A (en) * | 2007-01-04 | 2008-07-09 | 三星电子株式会社 | Data scrolling apparatus and method for mobile terminal |
CN101539834A (en) * | 2008-03-20 | 2009-09-23 | Lg电子株式会社 | Portable terminal capable of sensing proximity touch and method for controlling screen in the same |
CN103309581A (en) * | 2013-05-29 | 2013-09-18 | 广东欧珀移动通信有限公司 | Method and device for positioning progress bar |
Also Published As
Publication number | Publication date |
---|---|
CN104461306A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103034451B (en) | A kind of page positioning method of mobile terminal and device | |
CN103838456B (en) | A kind of control method and system of desktop icons display location | |
US20180292922A1 (en) | Capacitive cordless writing device | |
CN103425394B (en) | A kind of method and device thereof of the rollover icon position for touch-screen | |
CN103019601B (en) | A kind of method of controlling operation thereof of touch control terminal display interface and touch control terminal thereof | |
US10185488B2 (en) | Device and method for displaying information | |
CN102169416A (en) | Mobile terminal and method for page jump of touch panel | |
AU2014200468B2 (en) | Scrolling method and electronic device thereof | |
CN103699326A (en) | Touch processing method and terminal device | |
CN102841743B (en) | Page control method and communication terminal | |
JP2016115337A5 (en) | ||
CN108762557A (en) | A kind of touch detecting method and computer readable storage medium | |
CN103455248A (en) | Content sliding method and system for browsing file | |
CN104317466A (en) | Touch screen control method and touch screen device | |
CN103473014A (en) | Multitask switching method and terminal | |
CN103389850A (en) | Method and device for realizing shortcut operation on browser | |
CN103577387A (en) | Typeface changing method and device | |
CN104461306B (en) | rolling assembly control method and device | |
CN102244754A (en) | Focus moving method and device for OSD (On Screen Display) menu and television | |
CN105373324A (en) | Graphic interface display method, graphic interface display apparatus and terminal | |
CN108509133A (en) | Searching component methods of exhibiting and device | |
JP6430841B2 (en) | Electronic device, control method, and control program | |
CN101464744B (en) | Method for controlling scroll on touch control panel | |
CN103645855A (en) | Touch reading method and device | |
KR101485791B1 (en) | Portable terminal having touch screen and method for performing function thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |