Pie chart processing method and processor
First Claim
Patent Images
1. A pie chart processing method enabling an operator to select a slice from a pie chart composed of a plurality of slices directly with a pointing device, comprising the steps of:
- (a) obtaining coordinates of a point indicated by the pointing device;
(b) calculating a distance between said point and a center point of said pie chart;
(c) comparing said distance with a radius of said pie chart, thus deciding whether said point is disposed in said pie chart;
(d30) if said point is disposed in said pie chart, then assigning starting and ending points of one of said slices as points S and E, respectively, and extending a line from said center point of said pie chart through said point indicated by the pointing device to a point Z on a perimeter of said pie chart;
(d31) if S and Z are disposed in a first half of said pie chart and E is disposed in a different half, moving E to an ending point of said first half;
(d32) if E and Z are disposed in a first half of said pie chart and S is disposed in a different half, moving S to a starting point of said first half;
(d33) comparing coordinates of Z, S and E to determine whether said point is disposed in said one of said slices; and
(e) if said point is disposed in said one of said slices, then executing a program corresponding to said one of said slices.
3 Assignments
0 Petitions
Accused Products
Abstract
A pie chart processor obtains the coordinates of a point indicated by a pointing device, calculates the distance between this point and the center of a pie chart, and compares this distance with the radius of the pie chart to decide whether the point is located in the pie chart. If the point is in the pie chart, the processor tests slices of the pie chart to find a slice containing the point, then executes a program corresponding to that slice.
-
Citations
6 Claims
-
1. A pie chart processing method enabling an operator to select a slice from a pie chart composed of a plurality of slices directly with a pointing device, comprising the steps of:
-
(a) obtaining coordinates of a point indicated by the pointing device; (b) calculating a distance between said point and a center point of said pie chart; (c) comparing said distance with a radius of said pie chart, thus deciding whether said point is disposed in said pie chart; (d30) if said point is disposed in said pie chart, then assigning starting and ending points of one of said slices as points S and E, respectively, and extending a line from said center point of said pie chart through said point indicated by the pointing device to a point Z on a perimeter of said pie chart; (d31) if S and Z are disposed in a first half of said pie chart and E is disposed in a different half, moving E to an ending point of said first half; (d32) if E and Z are disposed in a first half of said pie chart and S is disposed in a different half, moving S to a starting point of said first half; (d33) comparing coordinates of Z, S and E to determine whether said point is disposed in said one of said slices; and (e) if said point is disposed in said one of said slices, then executing a program corresponding to said one of said slices. - View Dependent Claims (2, 3)
-
-
4. A pie chart processing method enabling an operator to select a slice from a pie chart composed of a plurality of slices directly with a pointing device, comprising the steps of:
-
(a) obtaining coordinates of a point indicated by the pointing device; (b) calculating a distance between said point and a center point of said pie chart; (c) comparing said distance with a radius of said pie chart, thus deciding whether said point is disposed in said pie chart; (d40) if said point is disposed in said pie chart, then assigning starting and ending points of one of said slices as points S and E, respectively, and extending a line from said center point of said pie chart through said point indicated by the pointing device to a point Z on a perimeter of said pie chart; (d41) if S and E are disposed in a first half of said pie chart and Z is disposed in a different half, moving Z to an extremal point of said first half; (d42) if S and Z are disposed in a first half of said pie chart and E is disposed in a different half, moving E to an ending point of said first half; (d43) if E and Z are disposed in a first half of said pie chart and S is disposed in a different half, moving S to a starting point of said first half; (d44) comparing a sign designating a half of said pie chart containing S, E and Z with a product of signs of coordinates of a vector joining S and Z, a vector joining Z and E, and a vector joining S and E to determine whether said point is disposed in said one of said slices; and (e) if said point is disposed in said one of said slices, then executing a program corresponding to said one of said slices. - View Dependent Claims (5, 6)
-
Specification