CN104077034B - Directional area scale variable zoom method and device - Google Patents
Directional area scale variable zoom method and device Download PDFInfo
- Publication number
- CN104077034B CN104077034B CN201410315713.7A CN201410315713A CN104077034B CN 104077034 B CN104077034 B CN 104077034B CN 201410315713 A CN201410315713 A CN 201410315713A CN 104077034 B CN104077034 B CN 104077034B
- Authority
- CN
- China
- Prior art keywords
- band
- prime
- zoom
- scaling
- factor
- 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.)
- Expired - Fee Related
Links
Landscapes
- Crystals, And After-Treatments Of Crystals (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention relates to the technical field of information management tools, particularly to a directional area scale variable zoom method and device. The method comprises obtaining screen pointer directional point coordinates composed of directional point horizontal coordinates and directional point vertical coordinates, and determining a currently-directed resource stripe through the directional point vertical coordinates; taking the currently-directed resource stripe as the center, setting an upper stripe and a lower stripe and performing numbering; calculating the zoom scale factors of the upper stripe and the lower stripe; obtaining a zoom control instruction and generating zoom control factors; according to the zoom control factors and the zoom scale factors, computing the vertical coordinates of the pixel points in every resource stripe; displaying the upper stripe and the lower stripe. According to the directional area scale variable zoom method and device, different zoom scale factors are utilized according to the distance from the currently-directed stripe, the zoom strength is reduced gradually, the density-alternate visualization effects of a Gantt chart can be achieved, and meanwhile, good zoom continuity can be obtained, and repeated selection and operation can be avoided.
Description
Technical field
The present invention relates to computer management tools technical field, more particularly to it is a kind of point to variable area scaling method and
Device.
Background technology
Gantt chart (Gantt chart) is called gunter drawing, bar graph (Bar chart).It is diagrammatically by living
Dynamic list and time scale visually represent the activity command of any specific project and persistent period.Mesh based on jobs scheduling
, activity is connected with the time, help enterprise to describe to resources such as work centre, overtime works using figure, be
One of industrial engineering field general information management tool.Gantt chart X direction is time scale, and y direction is money arranged side by side
Source band title, each resource bar takes some tasks that are dispersed with, and represents plan and the reality of activity or task on whole period
Border performance, such as planned start time, time span, scheduled production, completion date of activity or task etc..It can be straight
See ground show task scheduling when carry out and actual development and requirements of plan contrast situation.
For the display of Gantt chart, prior art realizes the horizontal and vertical equal proportion contracting of resource band by mouse drag
Put, or add mouse roller to roll by modifier key, click on the operation such as icon amplified and reduce and realize whole picture (laterally and
Each resource bar in visual range can all be taken putting for corresponding task equal proportion by equal proportion scaling longitudinally), these operations
Big or diminution, is easy to observe local detail.But the defect that equal proportion scaling is present substantially shows as:It is vertical that mouse drag is realized
Scale to equal proportion and all longitudinal resource bands are zoomed in or out simultaneously, when amplifying, it is vertical that whole visual range shows
To resource bin number reduce, although some tasks can be observed to local detail, but not it is observed that these tasks and other
The relativity of task;When reducing, the longitudinal resource bin number in whole visual range increases, although enter visual range
Information increase, but it simultaneously reduces the task that user wants to pay close attention to, and is unfavorable for observation.
It can be seen that, prior art scales overall Gantt chart picture equal proportion so that longitudinal resource band and horizontal time carve
Degree is zoomed in or out simultaneously.When amplifying, whole visual range shows that task quantity is all reduced horizontal and vertical, although can
It is more detailed to observe the corresponding unit of some tasks and time, but the information that visual range shows significantly reduces, on longitudinal direction
Not it is observed that the relation of the resource band and other resource bands, transversely can not observe the task of the resource band with
The relation of other tasks;When reducing, the resource bin number of horizontal time scale and longitudinal direction increases simultaneously, although visual range
Two dimensional informations increase, but while by the task of concern reducing, equally not it is observed that the resource band and other
The relation of resource band, can not observe the task of the resource band and the relation of other tasks.
The content of the invention
In order to solve problem above, the present invention is provided and points to variable area scaling method and apparatus.
Present invention is generally directed to variable area scaling method, including:
S1, acquisition screen cursor point to point coordinates, including point to point abscissa and a sensing point vertical coordinate, vertical by pointing to point
Coordinate determines the resource band for currently pointing to;
S2, centered on the resource band for currently pointing to, band and lower band in setting, and be numbered;
The band zoom scale factor and the lower band zoom scale factor on S3, calculating;
S4, acquisition zoom control instruction, generate the zoom control factor;
S5, the vertical coordinate that each pixel column in each resource band is calculated according to the zoom control factor and the zoom scale factor;
Band and lower band on S6, display.
Present invention is generally directed to variable area scaling device, including:
Screen cursor coordinate acquiring unit, for obtaining screen cursor point coordinates is pointed to, including is pointed to point abscissa and referred to
To a vertical coordinate;Determine the resource band for currently pointing to by pointing to point vertical coordinate;
Zoom scale factor calculating unit, the band zoom scale factor and the lower band zoom scale factor in calculating;
Zoom control instructs acquiring unit, for obtaining control instruction;
Zoom control factor signal generating unit, obtains generating the zoom control factor according to zoom control instruction;
Coordinate dynamic update unit, according to the zoom control factor and the zoom scale factor each pixel in each resource band is calculated
Capable vertical coordinate;
Memory element, for storing each resource band in each pixel of pixel column abscissa and vertical coordinate;
Display interface unit, for the abscissa and vertical coordinate of each pixel of pixel column being read from memory element and being shown.
The present invention more meets the application target and operating habit of user compared with prior art Gantt chart shows operation.It is existing
There is technology Gantt chart to show in operation, by the form to selected areas entirety equal proportion scaling, realize the size to Gantt chart
Equal proportion is adjusted, but the region being not concerned with often is reduced in the expectation of user, while the region of concern is shown, overall area
The equal proportion scaling in domain, although so that windows content receives more visual elements, while the region for also paying close attention to user
Also scaling falls.And present invention is generally directed to the multiple dimensioned scaling of variable area is the change chi carried out by predetermined ratio by longitudinal zones of different
Scaling is concentrated in its both sides by degree scaling by the length apart from known location, and with the increase of distance, scaling intensity gradually drops
It is low.And to through scaling swath height judge, beyond preset range when be modified so that swath height is unlikely to
Wide or narrow, pointing to variable area scaling technology can scale Gantt chart longitudinal size with mutative scale, during diminution, make non-
The big granularity aggregation in key area, key area small grain size is assembled or is not assembled, and during amplification, amplifies the big granularity in key area, non-
Key area small grain size is amplified or is not amplified, and presents the effect of visualization of Gantt chart density interphase, and it is good to scale seriality,
With the instant bandwagon effect of zoom control, it is to avoid repeatedly choose, multi-pass operation.
Description of the drawings
Fig. 1 is present invention is generally directed to variable area scaling method preferred embodiment schematic flow sheet;
Fig. 2 is present invention is generally directed to the front display effect schematic diagram of variable area scaling method and apparatus operation;
Fig. 3 be present invention is generally directed to variable area scaling method and apparatus operation after display effect schematic diagram;
Fig. 4 is present invention is generally directed to another preferred embodiment schematic flow sheet of variable area scaling method;
Fig. 5 is present invention is generally directed to the vertical coordinate labelling schematic diagram of each band pixel row of variable area scaling.
Fig. 6 is present invention is generally directed to variable area scaling device preferred embodiment schematic flow sheet.
Specific embodiment
In order that the purpose of the present invention, technical scheme and beneficial effect become more apparent, below in conjunction with accompanying drawing, to this
It is bright to be described in further details.
Present invention is generally directed to variable area scaling method, as shown in figure 1, specifically including:
101st, obtain screen cursor and point to point coordinates, including point to point abscissa and point to point vertical coordinate;By pointing to point
Vertical coordinate determines the resource band for currently pointing to.
Namely pointing to point vertical coordinate in certain resource band, then the resource band is the resource for currently pointing to
Band.Preferably, if pointer is pointed on the line between two resource bands, resource bar of the pointer sensing close to below is given tacit consent to
Band is the resource band for currently pointing to.
102nd, centered on the resource band for currently pointing to, band and lower band in setting, and be numbered;
The each resource band in resource band top for currently pointing to is defined as band, currently points to each resource bar in band bottom
Band is defined as lower band, is started with the resource band for currently pointing to, and is expressed as i=1 to upper band numbering upwards successively,
2,3,…,M;Started with currently pointing to band, downwards j=1,2,3 ..., N, M table are expressed as to lower band numbering successively
Show upper bin number in window, N represents lower bin number in window.
103rd, the band zoom scale factor and the lower band zoom scale factor in calculating;
Used as a kind of achievable mode, the band zoom scale factor and the lower band zoom scale factor are respectively in calculating:
The upper band zoom scale factor:
The lower band zoom scale factor:
Wherein, Factor is predetermined amount of zoom, is set by the user, its span for (0,1), RiRepresent bar on i-th
The band zoom scale factor, i=1,2,3 ..., M, M represents upper bin number, R in windowjRepresent j-th lower band scaling
Scale factor, j=1,2,3 ..., N, N represents lower bin number in window.
104th, zoom control instruction is obtained, zoom control factors A is generated
The zoom control instruction is the instruction for indicating to zoom in or out;
Preferably, zoom control instruction can roll obtain by mouse rollovers wheel, such as mouse rollovers wheel to
Upper to roll to amplify, mouse rollovers wheel is scrolled down through to reduce.
Preferably, the zoom control instruction can be realized by keyboard, such as, be to amplify by pressing " ↑ " key,
By " ↓ " to reduce, can also be realized by other buttons certainly, no longer be described in detail.
Can be obtained generating zoom control factors A according to zoom control instruction, when zoom control instruction is amplification instruction
Zoom control factors A is -1, and when zoom control instruction is to reduce instruction, zoom control factors A value is 1.
105th, the vertical coordinate of each pixel in each resource band is calculated according to the zoom control factor and the zoom scale factor:
Upper band:
Lower band:
Wherein, y represents the vertical coordinate of each pixel in each band after scaling, yi、yj', (i, j >=1) represent upper and lower band
The vertical coordinate at edge, whereinRepresent the center vertical coordinate for pointing to band;dt=(yt-1-yt)|1-Rt A
|, (1≤t≤i-1), wherein, 1<During t≤i-1, dtThe scaling distance of band t in expression, during t=1, only represents the center of band 1
The top half scaling distance of position;dt'=(yt'-yt-1')|1-Rt A|, (1≤t≤j-1), wherein, 1<During t≤j-1, dt' table
Show the scaling distance of lower band t, during t=1, only represent the latter half scaling distance of the center of band 1;A is zoom control
The factor, is -1 when zoom control instruction is amplification instruction, is 1 when zoom control instruction is instructed to reduce.
Above formula calculates the vertical coordinate of each pixel in upper band and lower band, according to adopting with the distance for currently pointing to band
The different zoom scale factor so that the band nearlyer zoom scale of distance is bigger with currently pointing to, and currently points to band distance
More remote zoom scale is less, so as to realize variable-sized scaling to pointing to region.As shown in Figure 2 and Figure 3, screen cursor points to money
Source band 3, to currently point to band, the resource band on the top of resource band 3 is upper band to resource band 3, the bottom of resource band 3
Resource band be lower band, instruction reduce when, the different degrees of diminution of upper band and lower band, with currently point to band away from
Zoom scale is bigger close to more, and the band more remote zoom scale of distance is less with currently pointing to, so as to point to region realize it is variable
Size scaling, now has more resource bands to enter in window, and abscissa will not change, and be easy to observe each resource
The contrast situation of each task in band.Compared with prior art, the present invention can realize that emphasis amplifies to the region paid close attention to, right
The region emphasis being not concerned with reduces, and is prevented effectively from not enough to other regional correlation attention rates caused by prior art equal proportion scaling
Problem.
Preferably, pixel column is each in calculating each resource band after the vertical coordinate of each pixel column in each resource band is calculated
The abscissa of pixel, including:
hx=hx 0±|hx-hx 0|δ
Wherein, hxRepresent the abscissa of each pixel of pixel column, hx 0Represent and point to point abscissa, point to point positioned at mouse left
The point on side, then take hx=hx 0-(hx 0-hx) δ, point to the point on the right of point positioned at mouse, then take hx=hx 0+(hx-hx 0) δ, δ ∈ (0,
1) unified zoom factor is represented.
In other words, when the variable-sized scaling of vertical coordinate is realized, realize that definite value is scaled to abscissa so that when resource bar
Band is when scaling, and is distributed in the bar of appointing that resource bar takes and also scales therewith, realizes resource band and the overall of task is scaled,
Guarantee the coordination that whole window shows.
106th, band and lower band are shown with abscissa and vertical coordinate
According to being shown with upper type difference, including the constant vertical coordinate to calculate of upper band abscissa is shown
The vertical coordinate to calculate constant with lower band abscissa is shown;Or, with hxIt is that abscissa and the vertical coordinate for calculating show
Upper band and lower band.
Through above example, the once overall scaling of each resource band in whole window can be completed.And it is many when needing
Secondary scaling, such as connection reduce repeatedly, it is continuous amplify multiple, or reduce and amplify alternately etc., to above example slightly
Adjust, you can realize, be specifically shown in following examples.
As another embodiment, present invention is generally directed to variable area scaling method, as shown in figure 4, specifically including:
201st, obtain screen cursor and point to point coordinates, including point to point abscissa and point to point vertical coordinate;By pointing to point
Vertical coordinate determines the resource band for currently pointing to;
Namely pointing to point vertical coordinate in certain resource band, then the resource band is the resource for currently pointing to
Band.Preferably, if pointer is pointed on the line between two resource bands, resource bar of the pointer sensing close to below is given tacit consent to
Band is the resource band for currently pointing to.
202nd, centered on the resource band for currently pointing to, band and lower band in setting, and be numbered;
The each resource band in resource band top for currently pointing to is upper band, and currently pointing to each resource band in band bottom is
Lower band, is started with the resource band for currently pointing to, and is expressed as i=1,2,3 ..., M to upper band numbering upwards successively;
To currently point to the beginning of band, downwards j=1 is expressed as to lower band numbering successively, 2,3 ..., N, M is represented in window
Upper bin number, N represents lower bin number in window.When scaling each time after pointer points to point to be determined, upper and lower bin number
Obtained by reading.
203rd, the band zoom scale factor and the lower band zoom scale factor in calculating
Used as a kind of achievable mode, the band zoom scale factor and the lower band zoom scale factor are respectively in calculating:
The upper band zoom scale factor:Ri=1-Factor × (1- (i-1)/M)
The lower band zoom scale factor:Rj=1-Factor × (1- (j-1)/N)
Wherein, Factor is predetermined amount of zoom, is set by the user, its span for (0,1).
204th, zoom control instruction is obtained, zoom control factors A is generated
Preferably, zoom control instruction can roll obtain by mouse rollovers wheel, such as mouse rollovers wheel to
Upper to roll to amplify, mouse rollovers wheel is scrolled down through to reduce.
Preferably, the zoom control instruction can be realized by keyboard, such as, be to amplify by pressing " ↑ " key,
By " ↓ " to reduce, can also be realized by other buttons certainly, no longer be described in detail.
Can be obtained generating zoom control factors A according to zoom control instruction, when zoom control instruction is amplification instruction
Zoom control factors A is -1, and when zoom control instruction is to reduce instruction, zoom control factors A value is 1.
205th, the vertical coordinate of each pixel in each resource band is calculated according to the zoom control factor and the zoom scale factor:
Upper band:
Lower band:
Wherein, y represents the vertical coordinate of each pixel in each band after scaling, yi、yj', (i, j >=1) represent upper and lower band
The vertical coordinate at edge, whereinRepresent the center vertical coordinate for pointing to band;dt=(yt-1-yt)|1-Rt A
|, (1≤t≤i-1), wherein, 1<During t≤i-1, dtThe scaling distance of band t in expression, during t=1, only represents the center of band 1
The top half scaling distance of position;dt'=(yt'-yt-1')|1-Rt A|, (1≤t≤j-1), wherein, 1<During t≤j-1, dt' table
Show the scaling distance of lower band t, during t=1, only represent the latter half scaling distance of the center of band 1;A is zoom control
The factor, is -1 when zoom control instruction is amplification instruction, is 1 when zoom control instruction is instructed to reduce.
As shown in figure 5, it is upper band 1 to specify that pointer points to point place band here, under its first following band is
Band 1, yiThe upper edge vertical coordinate of band i, y in (1≤i≤M) expressionj(1≤j≤N) represents that the lower edge of lower band j is vertical and sits
Mark, y0=y0' representing that pointer points to the center vertical coordinate of point place band, zero is located at the upper left corner.
In above formula, according to from currently point to band distance adopt the different zoom scale factors so that with currently point to
The band nearlyer zoom scale of distance is bigger, and the band more remote zoom scale of distance is less with currently pointing to, so as to pointing to region reality
Existing variable-sized scaling.Compared with prior art, the present invention can realize that emphasis is zoomed in or out to the region paid close attention to, and effectively keep away
Exempt from caused by prior art equal proportion scaling to the not enough problem of other regional correlation attention rates.
Preferably, after being controlled to vertical coordinate, definite value scaling is carried out to abscissa, including
hx=hx 0±|hx-hx 0|δ
Wherein, hxRepresent the abscissa of each pixel of pixel column, hx 0Represent and point to point abscissa, point to point positioned at mouse left
The point on side, then take hx=hx 0-(hx 0-hx) δ, point to the point on the right of point positioned at mouse, then take hx=hx 0+(hx-hx 0) δ, δ ∈ (0,
1) unified zoom factor is represented.
In other words, when the variable-sized scaling of vertical coordinate is realized, realize that definite value is scaled to abscissa so that when resource bar
Band is when scaling, and is distributed in the bar of appointing that resource bar takes and also scales therewith, realizes resource band and the overall of task is scaled,
Guarantee the coordination that whole window shows.
206th, the vertical coordinate of each pixel column in each resource band is corrected
Each resource bar if the vertical coordinate for judging each pixel column in each resource band reaches cut-off condition, to above-mentioned calculating
The vertical coordinate of each pixel column is modified in band.
When reducing, i.e. when A is 1
If each upper band meets:
Pixel vertical coordinate is modified in each upper band:
Wherein, QiModifying factor is reduced for upper band,pt=(yt-1-
yt)|1-Qt|, (1≤t≤i-1), wherein, 1<During t≤i-1, ptThe scaling distance of band t in expression, during t=1, only represents bar
Top half with 1 center scaling distance;
If each lower band meets:
Then pixel vertical coordinate is modified in each lower band:
In above formula, Qj' represent that lower band reduces modifying factor,pt'=
(yt'-yt-1')|1-Qt' |, (1≤t≤j-1), wherein, 1<During t≤j-1, pt' time scaling distance of band t is represented, during t=1,
Only represent the latter half scaling distance of the center of band 1;
When amplifying, i.e. when A is -1
If each upper band meets:
Then pixel vertical coordinate is modified in each upper band:
In above formula, WiAmplify modifying factor for upper band,ut=
(yt-1-yt)|1-Wt|, (1≤t≤i-1), wherein, 1<During t≤i-1, utThe scaling distance of band t in expression, during t=1, only table
Show the top half scaling distance of the center of band 1;
If each lower band meets:
Then pixel vertical coordinate is modified in each lower band:
In above formula, Wj' amplify modifying factor for lower band,ut'=
(yt'-yt-1')|1-Wt' |, (1≤t≤j-1), wherein, 1<During t≤j-1, ut' time scaling distance of band t is represented, during t=1,
Only represent the latter half scaling distance of the center of band 1;Swath height is more than h when l represents amplification2Or band when reducing
Highly it is less than h1Maximum band sequence number, h1∈ (5,10), h2∈ (40,45), unit pixel.
This step is calculated in each resource band after the vertical coordinate of each pixel according to conditional judgment to meeting condition 205
Pixel vertical coordinate be modified, make each band show that height is relative and coordinate.
207th, band and lower band are shown with abscissa and vertical coordinate,
According to being shown with upper type difference, including the constant vertical coordinate to calculate of upper band abscissa is shown
The vertical coordinate to calculate constant with lower band abscissa is shown;Or, with hxVertical coordinate for abscissa and amendment shows
Upper band and lower band.
208th, change screen cursor and point to position, return to step 201 repeats above step.
It is on current basal when new position zooms in and out again when screen cursor points to position to change
Scaling, facilitates the region that the region being not concerned with all is reduced or paid close attention to by user to amplify.
Through above example, the multiple continuously zooming of each resource band in whole window can be completed, such as connection contracting
It is little repeatedly, it is continuous amplify multiple, or reduce and amplify alternately etc..
If continuously zooming, after every time scaling terminates, the bin number up and down of distance center band in statistical window is needed, i.e.,
The value of M and N.
The present invention more meets the application target and operating habit of user compared with prior art Gantt chart shows operation.It is existing
There is technology Gantt chart to show in operation, by the form to selected areas entirety equal proportion scaling, realize the size to Gantt chart
Equal proportion is adjusted, but the region being not concerned with often is reduced in the expectation of user, while the region of concern is shown.And it is traditional
Overall region unified scaling, although so that windows content receives more visual elements, while also user is paid close attention to
Region also scale, and present invention is generally directed to variable area it is multiple dimensioned scaling be, by longitudinal zones of different, to carry out by predetermined ratio
Mutative scale scaling, scaling is concentrated to its both sides by the length apart from known location, with the increase of distance, scaling intensity by
Gradually reduce.Point to variable area scaling technology and Gantt chart longitudinal size is compressed using mouse roller, make non-key area big
Granularity is assembled, and key area small grain size is assembled or do not assembled, and presents the effect of visualization of Gantt chart density interphase, and is scaled
Seriality is good, with the instant bandwagon effect of zoom control, it is to avoid repeatedly choose, multi-pass operation.
Present invention is generally directed to variable area scaling device, as shown in fig. 6, including:
Screen cursor coordinate acquiring unit, for obtaining screen cursor point coordinates is pointed to, including is pointed to point abscissa and referred to
To a vertical coordinate;Determine the resource band for currently pointing to by pointing to point vertical coordinate;
Namely pointing to point vertical coordinate in certain resource band, then the resource band is the resource for currently pointing to
Band.Preferably, if pointer is pointed on the line between two resource bands, resource bar of the pointer sensing close to below is given tacit consent to
Band is the resource band for currently pointing to.
Zoom scale factor calculating unit, the band zoom scale factor and the lower band zoom scale factor in calculating
Centered on the resource band for currently pointing to, band and lower band in setting, and be numbered.
Used as a kind of achievable mode, the band zoom scale factor and the lower band zoom scale factor are respectively in calculating:
The upper band zoom scale factor:
The lower band zoom scale factor:
Used as a kind of separately achievable mode, the band zoom scale factor and the lower band zoom scale factor are distinguished in calculating
For:
The upper band zoom scale factor:Ri=1-Factor × (1- (i-1)/M)
The lower band zoom scale factor:Rj=1-Factor × (1- (j-1)/N)
The each resource band in resource band top for currently pointing to is upper band, and currently pointing to each resource band in band bottom is
Lower band, is started with the resource band for currently pointing to, and is expressed as i=1,2,3 ..., M to upper band numbering upwards successively;
To currently point to the beginning of band, downwards j=1 is expressed as to lower band numbering successively, 2,3 ..., N, M is represented in window
Upper bin number, N represents lower bin number in window.
Zoom control instructs acquiring unit, for obtaining control instruction.
Preferably, zoom control instruction can roll obtain by mouse rollovers wheel, such as mouse rollovers wheel to
Upper to roll to amplify, mouse rollovers wheel is scrolled down through to reduce.
Preferably, the zoom control instruction can be realized by keyboard, such as, be to amplify by pressing " ↑ " key,
By " ↓ " to reduce, can also be realized by other buttons certainly, no longer be described in detail.
Zoom control factor signal generating unit, obtains generating zoom control factors A according to zoom control instruction, works as zoom control
Instruct for amplification instruction when zoom control factors A be -1, the zoom control factors A value when zoom control instruction is to reduce instruction
For 1.
Coordinate dynamic update unit, according to the zoom control factor and the zoom scale factor each pixel in each resource band is calculated
The vertical coordinate of point:
Upper band:
Lower band:
Wherein, y represents the vertical coordinate of each pixel in each band after scaling, yi、yj', (i, j >=1) represent upper and lower band
The vertical coordinate at edge, whereinRepresent the center vertical coordinate for pointing to band;
dt=(yt-1-yt)|1-Rt A|, (1≤t≤i-1), wherein, 1<During t≤i-1, dtIn expression the scaling of band t away from
From during t=1, the top half for only representing the center of band 1 scales distance;
dt'=(yt'-yt-1')|1-Rt A|, (1≤t≤j-1), wherein, 1<During t≤j-1, dt' represent time scaling of band t
Distance, during t=1, only represents the latter half scaling distance of the center of band 1;A is the zoom control factor, works as zoom control
Instruct for amplification instruction when for -1, be 1 when zoom control instruction is to reduce instruction.
Above formula calculates the vertical coordinate of each pixel in upper band and lower band, according to adopting with the distance for currently pointing to band
The different zoom scale factor so that the band nearlyer zoom scale of distance is bigger with currently pointing to, and currently points to band distance
More remote zoom scale is less, so as to realize variable-sized scaling to pointing to region.Compared with prior art, the present invention can be to closing
The region of note realizes that emphasis is zoomed in or out, and is prevented effectively from caused by prior art equal proportion scaling to other regional correlation concerns
The not enough problem of degree.
Preferably, pixel column is each in calculating each resource band after the vertical coordinate of each pixel column in each resource band is calculated
The abscissa of pixel, including:
hx=hx 0±|hx-hx 0|δ
Wherein, hxRepresent the abscissa of each pixel of pixel column, hx 0Represent and point to point abscissa, point to point positioned at mouse left
The point on side, then take hx=hx 0-(hx 0-hx) δ, point to the point on the right of point positioned at mouse, then take hx=hx 0+(hx-hx 0) δ, δ ∈ (0,
1) unified zoom factor is represented.
In other words, when the variable-sized scaling of vertical coordinate is realized, realize that definite value is scaled to abscissa so that when resource bar
Band is when scaling, and is distributed in the bar of appointing that resource bar takes and also scales therewith, realizes resource band and the overall of task is scaled,
Guarantee the coordination that whole window shows.
Preferably, the coordinate dynamic update unit is additionally operable to correct the vertical coordinate of each pixel in each resource band.
When reducing, i.e. when A is 1
If each upper band meets:
Pixel vertical coordinate is modified in each upper band:
Wherein, QiModifying factor is reduced for upper band,pt=(yt-1-
yt)|1-Qt|, (1≤t≤i-1), wherein, 1<During t≤i-1, ptThe scaling distance of band t in expression, during t=1, only represents bar
Top half with 1 center scaling distance;
If each lower band meets:
Then pixel vertical coordinate is modified in each lower band:
In above formula, Qj' represent that lower band reduces modifying factor,pt'=
(yt'-yt-1')|1-Qt' |, (1≤t≤j-1), wherein, 1<During t≤j-1, pt' time scaling distance of band t is represented, during t=1,
Only represent the latter half scaling distance of the center of band 1;
When amplifying, i.e. when A is -1
If each upper band meets:
Then pixel vertical coordinate is modified in each upper band:
In above formula, WiAmplify modifying factor for upper band,ut=
(yt-1-yt)|1-Wt|, (1≤t≤i-1), wherein, 1<During t≤i-1, utThe scaling distance of band t in expression, during t=1, only table
Show the top half scaling distance of the center of band 1;
If each lower band meets:
Then pixel vertical coordinate is modified in each lower band:
In above formula, Wj' amplify modifying factor for lower band,ut'=
(yt'-yt-1')|1-Wt' |, (1≤t≤j-1), wherein, 1<During t≤j-1, ut' time scaling distance of band t is represented, during t=1,
Only represent the latter half scaling distance of the center of band 1;Swath height is more than h when l represents amplification2Or band when reducing
Highly it is less than h1Maximum band sequence number, h1∈ (5,10), h2∈ (40,45), unit pixel.
Coordinate dynamic update unit of the present invention is additionally operable to correct the vertical coordinate of each pixel in each resource band, that is, calculating
After the vertical coordinate of each pixel the pixel vertical coordinate for meeting condition is modified according to conditional judgment in each resource band,
Make each band show that height is relative to coordinate.
Memory element, for storing each resource band in each pixel of pixel column abscissa and vertical coordinate
Coordinate dynamic update unit in coordinates computed, first from memory element read each pixel of pixel column abscissa and
Vertical coordinate, is stored back to after being computed.
Display interface unit, for the abscissa and vertical coordinate of each pixel of pixel column being read from memory element and being shown.
The present invention more meets the application target and operating habit of user compared with prior art Gantt chart shows operation.It is existing
There is technology Gantt chart to show in operation, by the form to selected areas entirety equal proportion scaling, realize the size to Gantt chart
Equal proportion is adjusted, but the region being not concerned with often is reduced in the expectation of user, while the region of concern is shown.And it is traditional
Overall region unified scaling, although so that windows content receives more visual elements, while also user is paid close attention to
Region also scale, and present invention is generally directed to variable area it is multiple dimensioned scaling be, by longitudinal zones of different, to carry out by predetermined ratio
Mutative scale scaling, scaling is concentrated to its both sides by the length apart from known location, with the increase of distance, scaling intensity by
Gradually reduce.Become the multiple dimensioned zoom technology in region and Gantt chart longitudinal size is compressed using mouse roller, make the big granularity in non-key area
Aggregation, key area small grain size is assembled or is not assembled, and presents the effect of visualization of Gantt chart density interphase, and is scaled continuous
Property is good, with the instant bandwagon effect of zoom control, it is to avoid repeatedly choose, multi-pass operation.
Should be understood that present invention is generally directed to variable area scaling method and sensing variable area scaling device
It is the different implementations of same design, the non-description section of device embodiment may be referred to retouching for embodiment of the method appropriate section
State, vice versa.
Above example of the present invention is further described to the object, technical solutions and advantages of the present invention, institute
It should be understood that embodiment provided above or embodiment are only the preferred embodiment of the present invention, not to limit
The system present invention, all any modification, equivalent substitution and improvements made for the present invention within the spirit and principles in the present invention etc.,
Should be included within protection scope of the present invention.
Claims (6)
1. variable area scaling method is pointed to, it is characterised in that included:
S1, acquisition screen cursor point to point coordinates, including point to point abscissa and a sensing point vertical coordinate, by pointing to a point vertical coordinate
It is determined that the resource band for currently pointing to;
S2, centered on the resource band for currently pointing to, band and lower band in setting, and be numbered;
The band zoom scale factor and the lower band zoom scale factor on S3, calculating;
S4, acquisition zoom control instruction, generate the zoom control factor;
S5, the vertical coordinate that each pixel column in each resource band is calculated according to the zoom control factor and the zoom scale factor;
Band and lower band on S6, display;
The vertical coordinate for calculating each pixel in each resource band according to the zoom control factor and the zoom scale factor includes:
Upper band:
Lower band:
Wherein, y represents the vertical coordinate of each pixel in each band after scaling, yi、yj' (i, j >=1) represent upper and lower lace edge
Vertical coordinate, whereinRepresent the center vertical coordinate for pointing to band;
dt=(yt-1-yt)|1-Rt A|, (1≤t≤i-1), wherein, 1<During t≤i-1, dtThe scaling distance of band t, t=in expression
When 1, the top half scaling distance of the center of band 1 is only represented;dt'=(yt'-yt-1')|1-Rt A|, (1≤t≤j-1),
Wherein, 1<During t≤j-1, dt' time scaling distance of band t is represented, during t=1, only represent the latter half of the center of band 1
Scaling distance;A is the zoom control factor, is -1 when zoom control instruction is amplification instruction, when zoom control is instructed to reduce
It is 1 during instruction;
Further, the vertical coordinate of each pixel in each resource band is corrected:
When reducing, i.e. when A is 1
If each upper band meets:
Pixel vertical coordinate is modified in each upper band:
Wherein, QiModifying factor is reduced for upper band,pt=(yt-1-yt)|1-
Qt|, (1≤t≤i-1), wherein, 1<During t≤i-1, ptThe scaling distance of band t in expression, during t=1, only represents the center of band 1
The top half scaling distance of position;
If each lower band meets:
Then pixel vertical coordinate is modified in each lower band:
In above formula, Qj' represent that lower band reduces modifying factor,pt'=
(yt'-yt-1')|1-Qt' |, (1≤t≤j-1), wherein, 1<During t≤j-1, pt' time scaling distance of band t is represented, during t=1,
Only represent the latter half scaling distance of the center of band 1;
When amplifying, i.e. when A is -1
If each upper band meets:
Then pixel vertical coordinate is modified in each upper band:
In above formula, WiAmplify modifying factor for upper band,ut=(yt-1-yt)|
1-Wt|, (1≤t≤i-1), wherein, 1<During t≤i-1, utThe scaling distance of band t in expression, during t=1, only represents in band 1
The top half scaling distance of heart position;
If each lower band meets:
Then pixel vertical coordinate is modified in each lower band:
In above formula, Wj' amplify modifying factor for lower band,ut'=
(yt'-yt-1')|1-Wt' |, (1≤t≤j-1), wherein, 1<During t≤j-1, ut' time scaling distance of band t is represented, during t=1,
Only represent the latter half scaling distance of the center of band 1;Swath height is more than h when l represents amplification2Or band when reducing
Highly it is less than h1Maximum band sequence number, h1∈ (5,10), h2∈ (40,45), unit pixel.
2. variable area scaling method is pointed to according to claim 1, it is characterised in that band scaling in the calculating
Scale factor and the lower band zoom scale factor include:
The upper band zoom scale factor:
The lower band zoom scale factor:
Wherein, Factor is predetermined amount of zoom, is set by the user, its span for (0,1), RiRepresent band scaling on i-th
Scale factor, i=1,2,3 ..., M, M represents upper bin number, R in windowjRepresent j-th lower band zoom scale because
Son, j=1,2,3 ..., N, N represents lower bin number in window.
3. variable area scaling method is pointed to according to claim 1, it is characterised in that band scaling in the calculating
Scale factor and the lower band zoom scale factor include:
The upper band zoom scale factor:Ri=1-Factor × (1- (i-1)/M)
The lower band zoom scale factor:Rj=1-Factor × (1- (j-1)/N)
Wherein, Factor is predetermined amount of zoom, is set by the user, its span for (0,1), RiRepresent band scaling on i-th
Scale factor, i=1,2,3 ..., M, M represents upper bin number, R in windowjRepresent j-th lower band zoom scale because
Son, j=1,2,3 ..., N, N represents lower bin number in window.
4. variable area scaling method is pointed to according to claim 1, it is characterised in that in each resource band is calculated
The abscissa of each pixel of pixel column in each resource band is calculated after the vertical coordinate of each pixel column, including:
hx=hx 0±|hx-hx 0|δ
Wherein hxRepresent the abscissa of each pixel of pixel column, hx 0Represent that pointer points to point abscissa, point to point positioned at pointer left
The point on side, then hx=hx 0-(hx 0-hx) δ, the point on the right of point is pointed to positioned at pointer, then hx=hx 0+(hx-hx 0) δ, and δ ∈ (0,1) table
Show unified zoom factor.
5. variable area scaling device is pointed to, it is characterised in that included:
Screen cursor coordinate acquiring unit, for obtaining screen cursor point coordinates is pointed to, including is pointed to point abscissa and pointed to point
Vertical coordinate;Determine the resource band for currently pointing to by pointing to point vertical coordinate;
Zoom scale factor calculating unit, the band zoom scale factor and the lower band zoom scale factor in calculating;
Zoom control instructs acquiring unit, for obtaining control instruction;
Zoom control factor signal generating unit, obtains generating the zoom control factor according to zoom control instruction;
Coordinate dynamic update unit, according to the zoom control factor and the zoom scale factor each pixel column in each resource band is calculated
Vertical coordinate;
Memory element, for storing each resource band in each pixel of pixel column abscissa and vertical coordinate;
Display interface unit, for the abscissa and vertical coordinate of each pixel of pixel column being read from memory element and being shown;
The vertical coordinate for calculating each pixel in each resource band according to the zoom control factor and the zoom scale factor includes:
Upper band:
Lower band:
Wherein, y represents the vertical coordinate of each pixel in each band after scaling, yi、yj', (i, j >=1) represent upper and lower lace edge
Vertical coordinate, whereinRepresent the center vertical coordinate for pointing to band;
dt=(yt-1-yt)|1-Rt A|, (1≤t≤i-1), wherein, 1<During t≤i-1, dtThe scaling distance of band t, t=in expression
When 1, the top half scaling distance of the center of band 1 is only represented;
dt'=(yt'-yt-1')|1-Rt A|, (1≤t≤j-1), wherein, 1<During t≤j-1, dt' represent the scaling of lower band t away from
From during t=1, the latter half for only representing the center of band 1 scales distance;A is the zoom control factor, when zoom control refers to
Make for amplification instruction when for -1, be 1 when zoom control instruction is to reduce instruction;
Further, the vertical coordinate of each pixel column in each resource band is corrected:
When reducing, i.e. when A is 1
If each upper band meets:
Then pixel vertical coordinate is modified in each upper band:
Wherein, QiModifying factor is reduced for upper band,pt=(yt-1-yt)|1-
Qt|, (1≤t≤i-1), wherein, 1<During t≤i-1, ptThe scaling distance of band t in expression, during t=1, only represents the center of band 1
The top half scaling distance of position;
If each lower band meets:
Then pixel vertical coordinate is modified in each lower band:
In above formula, Qj' represent that lower band reduces modifying factor,pt'=(yt'-
yt-1')|1-Qt' |, (1≤t≤j-1), wherein, 1<During t≤j-1, pt' the scaling distance of lower band t is represented, during t=1, only table
Show the latter half scaling distance of the center of band 1;
When amplifying, i.e. when A is -1
If each upper band meets:
Then pixel vertical coordinate is modified in each upper band:
In above formula, WiAmplify modifying factor for upper band,ut=(yt-1-yt)|
1-Wt|, (1≤t≤i-1), wherein, 1<During t≤i-1, utThe scaling distance of band t in expression, during t=1, only represents in band 1
The top half scaling distance of heart position;
If each lower band meets:
Then pixel vertical coordinate is modified in each lower band:
In above formula, Wj' amplify modifying factor for lower band,ut'=
(yt'-yt-1')|1-Wt' |, (1≤t≤j-1), wherein, 1<During t≤j-1, ut' time scaling distance of band t is represented, during t=1,
The latter half scaling distance of the center of band 1 is only represented, swath height is more than h when l represents amplification2Or band when reducing
Highly it is less than h1Maximum band sequence number, h1∈ (5,10), h2∈ (40,45), unit pixel.
6. variable area scaling device is pointed to according to claim 5, it is characterised in that
The band zoom scale factor and the lower band zoom scale factor include in the calculating:
The upper band zoom scale factor:
The lower band zoom scale factor:
Or
The band zoom scale factor and the lower band zoom scale factor include in the calculating:
The upper band zoom scale factor:Ri=1-Factor × (1- (i-1)/M)
The lower band zoom scale factor:Rj=1-Factor × (1- (j-1)/N)
Wherein, Factor is predetermined amount of zoom, is set by the user, its span for (0,1), RiRepresent band scaling on i-th
Scale factor, i=1,2,3 ..., M, M represents upper bin number, R in windowjRepresent j-th lower band zoom scale because
Son, j=1,2,3 ..., N, N represents lower bin number in window.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410315713.7A CN104077034B (en) | 2014-07-03 | 2014-07-03 | Directional area scale variable zoom method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410315713.7A CN104077034B (en) | 2014-07-03 | 2014-07-03 | Directional area scale variable zoom method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104077034A CN104077034A (en) | 2014-10-01 |
CN104077034B true CN104077034B (en) | 2017-05-17 |
Family
ID=51598332
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410315713.7A Expired - Fee Related CN104077034B (en) | 2014-07-03 | 2014-07-03 | Directional area scale variable zoom method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104077034B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106484218A (en) * | 2016-09-13 | 2017-03-08 | 浙江工业大学 | A kind of real-time Zoom method of the unification of software graphical interface |
CN107016644A (en) * | 2017-03-23 | 2017-08-04 | 陕西法士特齿轮有限责任公司 | A kind of vehicular collecting system pantography quantization method based on Labview |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270081A (en) * | 2010-06-03 | 2011-12-07 | 腾讯科技(深圳)有限公司 | Method and device for adjusting size of list element |
CN103577100A (en) * | 2012-07-30 | 2014-02-12 | Sap股份公司 | Scalable zoom calendars |
CN103885682A (en) * | 2012-12-21 | 2014-06-25 | 阿里巴巴集团控股有限公司 | List displaying method and list displaying device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11134406A (en) * | 1997-10-30 | 1999-05-21 | Fujitsu Ltd | Schedule management device and medium for storing the same program |
US8228330B2 (en) * | 2009-01-30 | 2012-07-24 | Mellmo Inc. | System and method for displaying bar charts with a fixed magnification area |
-
2014
- 2014-07-03 CN CN201410315713.7A patent/CN104077034B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270081A (en) * | 2010-06-03 | 2011-12-07 | 腾讯科技(深圳)有限公司 | Method and device for adjusting size of list element |
CN103577100A (en) * | 2012-07-30 | 2014-02-12 | Sap股份公司 | Scalable zoom calendars |
CN103885682A (en) * | 2012-12-21 | 2014-06-25 | 阿里巴巴集团控股有限公司 | List displaying method and list displaying device |
Also Published As
Publication number | Publication date |
---|---|
CN104077034A (en) | 2014-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8739064B1 (en) | Thumbnail scaling based on display pane size | |
US8463679B2 (en) | Graphical forecasting interface | |
EP0537097B1 (en) | Method and system for incrementally changing window size on a display | |
US9383916B2 (en) | Dynamic image presentation | |
US6271863B1 (en) | Interactive method for operating a computer so as to graphically display the results of a computation | |
KR101932718B1 (en) | Device and method for changing size of display window on screen | |
TWI550519B (en) | Chart drawing method | |
JP2010134897A (en) | Drawing device, drawing method, program and recording medium | |
DE112010002760T5 (en) | User interface | |
US20120304121A1 (en) | Method, processing device, and article of manufacture for providing instructions for displaying time-dependent information and for allowing user selection of time ranges | |
CN103577100A (en) | Scalable zoom calendars | |
AU2006316845A2 (en) | A method of tracking data objects using related thumbnails in a palette window | |
US20140059455A1 (en) | System and method for efficiently selecting data entities represented in a graphical user interface | |
CN104077034B (en) | Directional area scale variable zoom method and device | |
CN102855132A (en) | Method and system for selection of graphic objects | |
CN110221758A (en) | Scroll bar control method, device, computer equipment and storage medium | |
CN107870795A (en) | The method and device that a kind of electronic map is shown | |
US20140192082A1 (en) | Methods and systems for generating an aggregated data visualization | |
JP6432449B2 (en) | Information processing apparatus, information processing program, and information processing method | |
JP2006259940A (en) | Statistical information presentation device | |
JPH064607A (en) | Data display device | |
CN104750398A (en) | Hydrological drawing based graphic interaction system and hydrologic data processing method | |
CN112230816B (en) | High-efficiency screenshot method and device, computer equipment and storage medium | |
WO2021082652A1 (en) | Information display method and apparatus, and computer-readable storage medium | |
JPH06101003B2 (en) | Electronic page turning device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170517 Termination date: 20210703 |
|
CF01 | Termination of patent right due to non-payment of annual fee |