JP3002011B2 - Display method of table data - Google Patents
Display method of table dataInfo
- Publication number
- JP3002011B2 JP3002011B2 JP3125321A JP12532191A JP3002011B2 JP 3002011 B2 JP3002011 B2 JP 3002011B2 JP 3125321 A JP3125321 A JP 3125321A JP 12532191 A JP12532191 A JP 12532191A JP 3002011 B2 JP3002011 B2 JP 3002011B2
- Authority
- JP
- Japan
- Prior art keywords
- row
- display
- hierarchy
- column
- data
- 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 - Lifetime
Links
- 238000000034 method Methods 0.000 title claims description 58
- 230000008569 process Effects 0.000 description 39
- 238000010586 diagram Methods 0.000 description 9
- 238000013500 data storage Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003252 repetitive effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005406 washing Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、データ処理装置に読込
まれた表データの表示方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of displaying tabular data read by a data processing device.
【0002】[0002]
【従来の技術】パソコン、ワープロなどのデータ処理装
置においては、表の形に記述されたデータが、経営計画
などの各種計画立案やシミュレーションなどの分野で広
く利用されている。通常、表の行や列には識別のための
番号がつけられている。図10は、このようなデータ処
理装置上に読込まれた表の一例である。この例におい
て、表の各々のマス目はセルと呼ばれ、行(R)および
列(C)の番号を用いて記述される。例えばセル101
はR2C3と記述される。2. Description of the Related Art In a data processing device such as a personal computer or a word processor, data described in a table is widely used in various fields such as planning and simulation of a business plan. Usually, rows and columns of a table are numbered for identification. FIG. 10 is an example of a table read on such a data processing device. In this example, each cell in the table is called a cell, and is described using row (R) and column (C) numbers. For example, cell 101
Is described as R2C3.
【0003】さて、表が読込まれると、データの正当性
の判断を行うためや、データの傾向を調べるために、表
の幾つかの項目だけに注目して比較参照を行うことがあ
る。例えば図11(a) の表において、冷蔵庫、洗濯機な
どの商品に注目し、商品ごとの売上の割合を調べたり、
あるいはメーカー間の売上を比較する場合がこれに相当
する。このような目的のために従来の表データ表示方式
では、指定された(複数の)行や列を一時的に隠してし
まう「マスク機能」が用意されている。When a table is read, a comparative reference may be made by paying attention to only some of the items in the table in order to determine the validity of the data or to check the tendency of the data. For example, in the table of FIG. 11 (a), paying attention to products such as refrigerators and washing machines, and examining a sales ratio of each product,
Alternatively, this is the case where sales between manufacturers are compared. For this purpose, the conventional table data display system has a "mask function" for temporarily hiding designated (plural) rows and columns.
【0004】以下にマスク機能の動作を図11(a) ,図
12(a) ,図13(a) を用いて説明する。図11(a) は
商品別販売計画表の一例である。この表で例えば冷蔵
庫、洗濯機などの商品ごとの項目を比較参照したい場
合、このままではメーカー別の項目が間にあるため比較
操作が行いにくい。そこで前記のマスク機能が用いられ
る。例えば図11(a) で商品別の項目を比較したい場合
には、メーカー別の項目が不要になる。そこで操作11
4a〜114dのように不要な項目行を範囲指定した
後、マスク処理を実行し、これらの項目行を画面上から
隠してしまう。この結果を図12(a) に示している。さ
らに図12(a) で商品分野別の項目を比較したい場合に
は、同様にして操作121a〜121bの範囲指定を行
い、再度マスク処理を実行する。この結果を図13(a)
に示している。また隠しておいた項目行を復帰させたい
場合には、再表示を行う処理を実行する。The operation of the mask function will be described below with reference to FIGS. 11 (a), 12 (a) and 13 (a). FIG. 11A shows an example of a product-specific sales plan table. In this table, when it is desired to compare and refer to items for each product such as a refrigerator and a washing machine, it is difficult to perform a comparison operation because items for each manufacturer are interposed in this state. Therefore, the above-described mask function is used. For example, in FIG. 11A, when it is desired to compare items for each product, items for each manufacturer are not required. Operation 11
After specifying a range of unnecessary item lines as in 4a to 114d, mask processing is executed to hide these item lines from the screen. This result is shown in FIG. Further, when it is desired to compare the items for each product field in FIG. 12A, the ranges of the operations 121a to 121b are designated in the same manner, and the mask processing is executed again. The result is shown in FIG.
Is shown in If the user wants to restore the hidden item line, a process for redisplay is executed.
【0005】[0005]
【発明が解決しようとする課題】このように従来の表デ
ータ表示方式において、比較参照を行う項目を切替えて
表を表示したい場合には、前記のように行や列の範囲指
定操作を行った後、マスク機能を実行する必要がある。
しかし、表示形態の切替を頻繁に行う場合には、このマ
スク操作を何回も繰返す必要があり、操作が煩雑になる
という課題がある。特に、表のサイズが大きい場合にこ
の課題が顕著に現れる。本発明はこの課題を改善するも
ので、表に記述された情報の比較参照が効率良く行える
ようにすることを目的としている。As described above, in the conventional table data display system, when it is desired to display the table by switching the items to be compared and referenced, the row and column range designation operation is performed as described above. Later, it is necessary to execute the mask function.
However, when the display mode is frequently switched, the mask operation needs to be repeated many times, and there is a problem that the operation becomes complicated. In particular, this problem appears remarkably when the size of the table is large. An object of the present invention is to improve this problem, and it is an object of the present invention to efficiently compare and refer to information described in a table.
【0006】[0006]
【課題を解決するための手段】本発明の第1の表データ
表示方式を具備したデータ処理装置は、(イ) 表の行の階
層および列の階層をツリー構造に基づいて定義する階層
定義手段と、(ロ) 前記(イ)の階層構造に従って指定され
た行および列の下位の階層を非表示状態にする節クロー
ズ手段と、(ハ) 前記 (イ)の階層構造に従って指定された
行および列の下位の階層を再表示状態にする節オープン
手段とを有することを特徴とする。According to the first aspect of the present invention, there is provided a data processing apparatus having a table data display system, comprising: (a) a hierarchy defining means for defining a row hierarchy and a column hierarchy of a table based on a tree structure; And (b) clause closing means for hiding the lower hierarchy of the row and column specified according to the hierarchical structure of (a), and (c) the row and row specified according to the hierarchical structure of (b). Clause opening means for setting a lower hierarchy of a column to a redisplay state.
【0007】また本発明の第2の表データ表示方式を具
備したデータ処理装置は、(イ) 表の行の階層をツリー構
造に基づいて定義する階層定義手段と、(ロ) 前記 (イ)の
階層構造に従って指定された行の下位の階層を非表示状
態にする節クローズ手段と、(ハ) 前記 (イ)の階層構造に
従って指定された行の下位の階層を再表示状態にする節
オープン手段とを有することを特徴とする。The data processing apparatus having the second table data display system according to the present invention comprises: (a) hierarchy definition means for defining a hierarchy of table rows based on a tree structure; Clause closing means for hiding the lower hierarchy of the line designated according to the hierarchical structure of (c), and (c) opening of the clause for redisplaying the lower hierarchy of the line designated according to the hierarchical structure of (a) Means.
【0008】さらに本発明の第3の表データ表示方式を
具備したデータ処理装置は、(イ) 表の列の階層をツリー
構造に基づいて定義する階層定義手段と、(ロ) 前記 (イ)
の階層構造に従って指定された列の下位の階層を非表示
状態にする節クローズ手段と、(ハ) 前記 (イ)の階層構造
に従って指定された列の下位の階層を再表示状態にする
節オープン手段とを有することを特徴とする。Further, the data processing apparatus provided with the third table data display method according to the present invention comprises: (a) a hierarchy definition means for defining a hierarchy of a table column based on a tree structure;
Clause closing means for hiding the lower hierarchy of the column specified according to the hierarchical structure of (c), and (c) opening of the clause for redisplaying the lower hierarchy of the column specified according to the hierarchical structure of (a) Means.
【0009】すなわち、本発明の第1の表データ表示方
式において、階層定義手段、節オープン手段、節クロー
ズ手段は、その各々が行の手段と列の手段とに分かれ
る。行の階層定義手段は、表データの複数の行の間を有
向リンクで結び、行に関する階層構造(ツリー構造)を
定義する。図15はこのツリー構造の一例の概念図を示
す。ここで、ノード151をルートと呼ぶ。また任意の
ノードを選択した場合、そのノードに隣接しているノー
ドのうちルートに近い方を親(ノード)と呼び、それ以
外のノードを子(ノード)と呼ぶ。例えば、ノード15
3aの親はノード152aであり、ノード152aの子
はノード153aとノード153bである。あるノード
の子孫とは、そのノードをルートとして考えたサブツリ
ーにおいて、そのサブツリーを構成する(ルート以外
の)ノードを言う。例えば、ノード152aの子孫はノ
ード153a,153b,154a,154bである。That is, in the first table data display method of the present invention, each of the hierarchy definition means, the clause open means, and the clause close means is divided into row means and column means. The row hierarchy definition means connects a plurality of rows of the table data with directional links, and defines a hierarchical structure (tree structure) related to the rows. FIG. 15 shows a conceptual diagram of an example of this tree structure. Here, the node 151 is called a root. When an arbitrary node is selected, a node adjacent to that node, which is closer to the root, is called a parent (node), and the other nodes are called children (nodes). For example, node 15
The parent of 3a is a node 152a, and the children of the node 152a are a node 153a and a node 153b. A descendant of a certain node refers to a node (other than the root) constituting the subtree in a subtree in which the node is considered as a root. For example, descendants of the node 152a are the nodes 153a, 153b, 154a, and 154b.
【0010】一方、行クローズ手段は、前記のツリー構
造に基づき、指定された行の子孫の行を画面上から隠
す。また行オープン手段は、指定された行の子孫の行を
画面上に再表示する。さらに列の階層定義手段、列オー
プン手段、列クローズ手段は、行に関する当該手段を列
に適用した場合の処理を行う。On the other hand, the row closing means hides, from the screen, descendant rows of the specified row based on the tree structure. Further, the line opening means redisplays a line of a descendant of the specified line on the screen. Further, the column hierarchy definition unit, the column open unit, and the column close unit perform a process when the unit related to the row is applied to the column.
【0011】また本発明の第2の表データ表示方式にお
いては、前記第1の表データ表示方式の行の手段のみが
用いられる。さらに本発明の第3の表データ表示方式に
おいては、前記第1の表データ表示方式の列の手段のみ
が用いられる。Further, in the second table data display system of the present invention, only the means of the rows of the first table data display system are used. Further, in the third tabular data display system of the present invention, only the means of the columns of the first tabular data display system are used.
【0012】[0012]
【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は本発明に係る第1の表データ表示方
式を備えたデータ処理装置の一実施例を示すブロック図
であり、図2〜図8はその表データ表示方式の処理フロ
ーチャートである。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a data processing apparatus having a first table data display method according to the present invention, and FIGS. 2 to 8 are processing flowcharts of the table data display method.
【0013】図1において、制御部11,メモリ17,
およびコンポーネント18a〜18dはバス18によっ
て接続されている。メモリ17はRAMから成り、表デ
ータそのものを保持する表データ記憶部17cと、表デ
ータに対して定義された階層構造を保持する階層データ
記憶部17a〜17bとを含む。表データ記憶部17c
のデータはディスクドライブ18cから読込まれる。ま
た階層記憶部17a〜17bのデータは、キーボード1
8bから入力された階層構造の定義情報に基づいて設定
される。制御部11はROM又はRAMに格納されたプ
ログラムから成り、本発明の特徴をなす階層定義手段1
3,節オープン手段14,および節クローズ手段15を
備える。手段13〜15はさらに、その各々が行の手段
13a,14a,15aと列の手段13b,14b,1
5bとに分かれ、手段13〜15の実行時には行・列双
方の手段が起動される。行の階層定義手段13aは、表
データの複数の行を階層によって結び付けるための階層
データ17aを定義する。行クローズ手段15aは、こ
の階層データ17aを利用して行にマスク属性を設定す
る。行オープン手段14aは、行クローズ手段15aに
よって設定されたマスク属性を解除する。また列の階層
定義手段13b,列オープン手段14b,列クローズ手
段15bは、行の当該手段と同一の処理を列に対して行
う。さらに表示手段16は、マスク属性の設定されてい
ない行・列のみをCRTディスプレイ18d上に表示す
る。In FIG. 1, a control unit 11, a memory 17,
The components 18a to 18d are connected by a bus 18. The memory 17 is composed of a RAM, and includes a table data storage unit 17c for storing the table data itself, and hierarchical data storage units 17a to 17b for storing a hierarchical structure defined for the table data. Table data storage unit 17c
Is read from the disk drive 18c. The data in the hierarchy storage units 17a to 17b is stored in the keyboard 1
8b is set based on the definition information of the hierarchical structure input from 8b. The control unit 11 is composed of a program stored in a ROM or a RAM, and is a layer defining means 1 which is a feature of the present invention.
3, a node opening means 14 and a node closing means 15 are provided. The means 13 to 15 further comprise means 13a, 14a, 15a each of which is a row and means 13b, 14b, 1 of a column.
5b, when the means 13 to 15 are executed, both the row and column means are activated. The row hierarchy definition means 13a defines hierarchy data 17a for connecting a plurality of rows of table data by hierarchy. The row closing unit 15a sets a mask attribute on the row using the hierarchical data 17a. The row opening means 14a cancels the mask attribute set by the row closing means 15a. The column hierarchy definition unit 13b, the column open unit 14b, and the column close unit 15b perform the same process on the column as the row unit. Further, the display means 16 displays only the rows and columns for which the mask attribute is not set on the CRT display 18d.
【0014】以上の各手段は、キーボード18bから入
力された制御情報に基づき、階層データ制御部12によ
って適時起動される。なお前記のオープン/クローズ手
段14〜15は、表データの表示形式は変更するが、表
データ記憶部17cに格納された表データそのものは一
切変更しない。Each of the above means is activated by the hierarchical data control unit 12 at appropriate times based on control information input from the keyboard 18b. The open / close means 14 and 15 change the display format of the table data, but do not change the table data itself stored in the table data storage unit 17c.
【0015】図2は処理手順の全体像を示すフローチャ
ートである。ステップ21では利用者が図11(a) に示
したような表を読込む。次にステップ22aでは実行す
べきコマンドを指定するように利用者に要求する。ステ
ップ22bは指定されたコマンドをチェックし、終了コ
マンドである場合には図2の処理を終了する。またそう
でない場合にはステップ22c以下の処理を起動する。
ステップ22c〜22eは指定されたコマンドが階層定
義、オープン、クローズのどれかである場合に、それぞ
れステップ23a,24a,25aからのコマンド処理
を起動する。またそうでなければステップ27に移行し
て該当するコマンド処理を行う。これらコマンド処理が
終了すると、ステップ22aからの処理が繰返される。FIG. 2 is a flowchart showing an overall image of the processing procedure. In step 21, the user reads a table as shown in FIG. Next, in step 22a, the user is requested to specify a command to be executed. A step 22b checks the designated command, and if it is an end command, terminates the processing in FIG. If not, the processing from step 22c is started.
Steps 22c to 22e activate command processing from steps 23a, 24a, and 25a, respectively, when the specified command is one of hierarchy definition, open, and close. If not, the process proceeds to step 27 to execute the corresponding command processing. When these command processes are completed, the processes from step 22a are repeated.
【0016】ステップ23a〜23bは、階層定義手1
3を用いて行および列に関する表の階層構造を定義す
る。図9は、図11(a) の表で行に関する階層構造を定
義した時の階層データ記憶部16aの内容を示す。Steps 23a to 23b correspond to the hierarchy definition
3 is used to define the hierarchical structure of the table for rows and columns. FIG. 9 shows the contents of the hierarchical data storage section 16a when the hierarchical structure relating to the rows is defined in the table of FIG. 11 (a).
【0017】このように階層をデータ構造として表現す
る場合には、図9の左側に示すツリー構造が用いられ
る。このツリー構造の1ノードが表の1行に対応してお
り、各々の行は図9の右側に示す行情報を保持してい
る。この行情報は、そのアドレスを格納した1次元の配
列によって管理される。例えば行R5の行情報は、配列
の5番目のアドレスが指すメモリ領域を参照することに
よって得ることが出来る。When the hierarchy is expressed as a data structure, a tree structure shown on the left side of FIG. 9 is used. One node of this tree structure corresponds to one row of the table, and each row holds row information shown on the right side of FIG. This row information is managed by a one-dimensional array storing the addresses. For example, the row information of row R5 can be obtained by referring to the memory area indicated by the fifth address in the array.
【0018】行情報91において、番号93はツリー構
造における親の行番号を、番号94は子の行番号を表
す。例えば第9図で行R5の行情報に注目すると、行R
9は行R5の親であるため、R5の番号93には親の行
番号である「9」が格納される。また行R3,R4はR
5の子であるため、番号94には子の番号である
「3」、「4」が格納される。さらに「−」は該当する
行番号が存在しないことを表す。ツリー構造はこのよう
に各行の親と子の行番号を格納したデータ構造によって
記述される。また表示属性92は行の表示オン/オフを
制御し、行のオープン/クローズ時に設定される。な
お、図9では行のデータ構造のみを示したが、列に対し
ても同様のデータ構造(列情報)が構築される。In the row information 91, a number 93 indicates a parent row number in the tree structure, and a number 94 indicates a child row number. For example, paying attention to the row information of row R5 in FIG.
Since 9 is the parent of the row R5, the row number “9” of the parent is stored in the number 93 of R5. Rows R3 and R4 are R
Since it is a child of 5, the number 94 stores the child numbers “3” and “4”. Further, "-" indicates that the corresponding line number does not exist. The tree structure is described by the data structure storing the row numbers of the parent and child of each row. The display attribute 92 controls the display ON / OFF of a row and is set when the row is opened / closed. Although FIG. 9 shows only the data structure of a row, a similar data structure (column information) is constructed for a column.
【0019】図3は行の階層定義処理23aのフローチ
ャートである。この処理は行の階層定義手段13aに対
応する。ツリー構造の定義手順には種々の方法が存在す
るが、ここではその構成単位である親子構造を最上位の
階層から最下位の階層に向けてトップダウン式に定義し
ていく手順を示す。ステップ31は行の階層を定義する
かどうかを利用者に問合わせる。ここでnoが選択され
た場合にはそのまま図3の処理を終了する。列の階層の
みを定義する場合がこれに相当する。またyesが選択
された場合には、ステップ32でツリーの最上位の行
(根)Rp を1行指定するように利用者に要求し、さら
にステップ33で図4の処理を起動する。FIG. 3 is a flowchart of the row hierarchy definition process 23a. This processing corresponds to the row hierarchy definition means 13a. There are various methods for defining a tree structure. Here, a procedure for defining a parent-child structure as a constituent unit in a top-down manner from the highest hierarchy to the lowest hierarchy will be described. Step 31 asks the user whether to define a row hierarchy. Here, if no is selected, the process of FIG. 3 ends. This is the case when only the column hierarchy is defined. If yes is selected, a request is made to the user in step 32 to designate one row at the top of the tree (root) Rp, and the process in FIG. 4 is started in step 33.
【0020】図4において、ステップ41は子の行の候
補があるかどうかを利用者に問合わせる。ここでnoが
指定された場合には、図4の処理を終了して起動元の処
理に戻る。またyesが指定された場合には、ステップ
42でRpの子Rc を1行又は複数行指定するよう に利
用者に要求する。ステップ43a〜43cは、指定され
た全てのRc に対してステップ44a〜44eを実行す
るための反復制御を行う。ステップ44aはRp とRc
の1つを有向リンクで接続する。すなわち、Rc の番号
93にRp の行番号を、Rp の番号94,95,…のど
れかにRc の行番号を格納する。ステップ44b〜44
eは、Rc の1つをRp とみなして図4の処理を再起動
する。このように、第4図の処理はその内部で入れ子を
成しており、この入れ子に基づいて親子構造がトップダ
ウン式に定義される。なお、列の階層定義処理23bも
行の処理と同一の手順で列のツリー構造を定義する。In FIG. 4, a step 41 inquires of the user whether there is a child row candidate. If no is specified here, the process of FIG. 4 ends, and the process returns to the start source process. If yes is specified, the user is requested in step 42 to specify one or more rows of the child Rc of Rp. Steps 43a to 43c perform repetitive control for executing steps 44a to 44e for all designated Rc. Step 44a consists of Rp and Rc
Are connected by a directed link. That is, the line number of Rp is stored in the number 93 of Rc, and the line number of Rc is stored in any of the numbers 94, 95,... Of Rp. Steps 44b-44
e restarts the processing of FIG. 4 by regarding one of Rc as Rp. As described above, the processing in FIG. 4 is nested inside, and the parent-child structure is defined in a top-down manner based on the nesting. The column hierarchy definition process 23b also defines the column tree structure in the same procedure as the row process.
【0021】さて、表の階層構造が定義されると、今度
はステップ24a〜24bやステップ25a〜25bで
表に対するオープン/クローズが行われる。本実施例で
は、行オープン、列オープン、行クローズ、列クローズ
の4つの処理が用意されている。ここで行のクローズと
は、指定された行の子孫の行を画面上から隠す処理を示
す。また行のオープンとは、前記のクローズ処理によっ
て隠された行を画面上に再表示する処理を言う。列のオ
ープン、列のクローズも行の処理と同様である。なお、
オープン・クローズの各処理はデータの設定/解除だけ
を行い、実際の画面表示は図2の画面表示ルーチン26
が上記内部データを参照して行う。When the hierarchical structure of the table is defined, the table is opened / closed in steps 24a to 24b and steps 25a to 25b. In the present embodiment, four processes of row opening, column opening, row closing, and column closing are prepared. Here, closing a row indicates a process of hiding a row of a descendant of the specified row from the screen. Opening a line refers to a process of redisplaying a line hidden by the above-described closing process on the screen. Opening a column and closing a column are similar to row processing. In addition,
Each process of open / close only sets / cancels data, and the actual screen display is performed by the screen display routine 26 of FIG.
Is performed with reference to the internal data.
【0022】上記行のオープン/クローズを制御するデ
ータが図9に示した表示属性92である。表示属性92
は、表示制御ビット92bと開閉制御ビット92aから
構成される。これらのビットは初期状態では0(オープ
ン・表示オン)である。表示制御ビット92は現在の行
の表示オン/オフ状態を保持する。すなわち、0の場合
にはその行が表示されており、1の場合には表示されて
いないことを示す。開閉制御ビット92aは現在の行の
オープン/クローズ状態、すなわち子孫の行の表示オン
/オフ状態を示す。したがって、ある行がクローズ状態
の場合にはその行の子孫は全て表示オフの状態となって
いる。The data for controlling the opening / closing of the row is the display attribute 92 shown in FIG. Display attribute 92
Is composed of a display control bit 92b and an opening / closing control bit 92a. These bits are 0 (open / display on) in the initial state. The display control bit 92 holds the display on / off state of the current row. That is, when the value is 0, the line is displayed, and when the value is 1, it is not displayed. The open / close control bit 92a indicates the open / closed state of the current row, that is, the display on / off state of the descendant row. Therefore, when a row is in the closed state, all descendants of the row are in the display-off state.
【0023】ところでクローズ処理は、指定された行の
子孫を画面から消すために、指定された行の開閉制御ビ
ットを1(クローズ)にするとともに、その行のすべて
の子孫の表示制御ビットを1(オフ)にする。以下に図
5のフローチャートを用いてクローズ処理を詳細に説明
する。図5、行クローズ処理25aのフローチャートで
ある。この処理は行クローズ手段15aに対応する。ス
テップ51aは、クローズすべき行Rp を1行又は複数
行指定するように利用者に要求する。ここでRp の指定
を省略することにより図5の行クローズ処理を終了する
ことが出来る。Rp が指定された場合にはステップ52
a以下の処理を起動する。ステップ52a〜52cは、
全てのRp に対してステップ53a〜53bを実行する
ための反復制御を行う。ステップ53aは1つのRp に
対して図9開閉制御ビット92aをクローズ状態に設定
する。またステップ53bはRp の全ての子孫の表示制
御ビット92bを表示オフの状態に設定する。By the way, the closing process sets the open / close control bit of the specified row to 1 (close) in order to erase the descendants of the specified row from the screen, and sets the display control bits of all descendants of the row to 1 (closed). (Turn off. Hereinafter, the closing process will be described in detail with reference to the flowchart of FIG. FIG. 5 is a flowchart of the row closing process 25a. This processing corresponds to the row closing means 15a. Step 51a requests the user to designate one or more rows Rp to be closed. Here, by omitting the designation of Rp, the row closing process of FIG. 5 can be completed. If Rp is specified, step 52
a Start the following processes. Steps 52a to 52c include:
Repetitive control for executing steps 53a to 53b is performed for all Rp. Step 53a sets the open / close control bit 92a in FIG. 9 to the closed state for one Rp. A step 53b sets the display control bits 92b of all descendants of Rp to the display off state.
【0024】このように、図5処理は行の表示属性を設
定するだけであり、実際の表示は画面再表示処理26が
行う。例えば図11(a) で行クローズコマンドを実行
し、行111a〜111dをRp として指定すると図1
2(a) の表が得られる。図11と図12はこの時の表示
属性92の状態を、図12の下線部はクローズ前後の変
更点を表す。この場合はステップ53aが行111a〜
111dをクローズ状態に設定し、ステップ53bがそ
れらの行の子孫を表示オフの状態に設定する。ただし行
111a〜111dの表示属性は表示オンの状態を保
つ。このように、行のクローズはその行の子孫の表示状
態には影響するが、その行自体の表示状態には影響しな
い。As described above, the processing in FIG. 5 only sets the display attributes of the rows, and the actual display is performed by the screen redisplay processing 26. For example, when the row close command is executed in FIG. 11A and the rows 111a to 111d are designated as Rp, FIG.
2 (a) is obtained. 11 and 12 show the state of the display attribute 92 at this time, and the underlined portions in FIG. 12 show changes before and after closing. In this case, step 53 a
111d is set to the closed state, and step 53b sets the descendants of those rows to the display off state. However, the display attributes of the rows 111a to 111d maintain the display ON state. Thus, closing a row affects the display state of its descendants, but does not affect the display state of the row itself.
【0025】図13 (b)は、図12で前記と同様に行ク
ローズコマンドを実行し、行112a〜112bをRp
として指定した時の結果を示す。この場合も、行112
a〜112bの子孫は表示オフの状態になるが、それら
の行自体は表示オンの状態を保つ。FIG. 13B shows a case where the row close command is executed in the same manner as in FIG.
Shows the result when specified as. Again, row 112
The descendants a to 112b are in the display-off state, but their lines themselves are in the display-on state.
【0026】ここでオープン処理は、その行に対してク
ローズ処理を行う前の状態に復活させるものである。つ
まり、前回のクローズ処理によって画面から消された行
(だけ)を表示させる。このため、オープン処理は指定
された行の開閉制御ビットを0(オープン)にするとと
もに、その子孫の表示制御ビットを0(オン)にする。
但し、子孫にクローズされた行が存在する場合には、
(以前の状態に戻すため)そのクローズされた行の子孫
の表示状態はオフのままにする。Here, the open processing is to restore the row to the state before the close processing was performed. That is, the line (only) deleted from the screen by the previous closing process is displayed. Therefore, the open process sets the open / close control bit of the designated row to 0 (open) and sets the display control bit of the descendant to 0 (on).
However, if a descendant has a closed row,
Leave the display state of the descendants of the closed row (to return to the previous state).
【0027】以下に図5フローチャートを用いてオープ
ン処理を詳細に説明する。図6行オープン処理24aの
フローチャートである。この処理は行オープン手段14
aに対応する。ステップ61aは、オープンすべき行R
p を1行又は複数行指定するように利用者に要求する。
ここでRp の指定を省略することにより、図6行オープ
ン処理を終了することが出来る。Rp が指定された場合
にはステップ62a以下の処理を起動する。ステップ6
2a〜62cは、全てのRp に対してステップ63a〜
63bを実行するための反復制御を行う。ステップ63
aは1つのRp に対して図9開閉制御ビット92aをオ
ープン状態に設定する。またステップ63bはRp の子
孫の表示状態を設定するために図7処理を起動する。Hereinafter, the open process will be described in detail with reference to the flowchart of FIG. 6 is a flowchart of the row open processing 24a. This processing is performed by the row opening means 14
corresponds to a. Step 61a is a process for opening a row R
Asks the user to specify one or more lines of p.
Here, by omitting the designation of Rp, the row open processing in FIG. 6 can be completed. If Rp is designated, the processing of step 62a and thereafter is started. Step 6
2a to 62c are steps 63a to 63c for all Rp.
An iterative control for executing 63b is performed. Step 63
a sets the open / close control bit 92a in FIG. 9 to the open state for one Rp. Step 63b activates the processing in FIG. 7 to set the display state of the descendants of Rp.
【0028】図7おいて、ステップ71〜72はRp に
対する図9行情報91をチェックし、Rp が葉である
(子孫がない)か、クローズ状態である場合には図7処
理を終了して起動元の処理に戻る。またそうでなければ
ステップ73a以下の処理を起動する。ステップ73a
〜73cは、Rp の全ての子Rc に対してステップ74
a〜74eを実行するための反復制御を行う。ステップ
74aは1つのRc に対して図9表示制御ビット92b
を表示オンの状態に設定する。ステップ74b〜74e
は、Rc の1つをRp とみなして図7処理を再起動す
る。In FIG. 7, steps 71 to 72 check the line information 91 in FIG. 9 for Rp. If Rp is a leaf (no descendants) or is in a closed state, the processing in FIG. The process returns to the activation source process. Otherwise, the processing of step 73a and thereafter is started. Step 73a
73c is the same as step 74 for all children Rc of Rp.
It performs repetitive control for executing a to 74e. Step 74a determines the display control bit 92b in FIG. 9 for one Rc.
Is set to the display on state. Steps 74b to 74e
Considers one of Rc as Rp and restarts the process of FIG.
【0029】このように、図7処理はその内部で入れ子
を成しており、この入れ子に基づいて、図6Rp の子孫
が順次表示オンの状態に設定される。ただしステップ7
2に示したように、クローズされた行を検出するとそれ
以上の入れ子が行われないため、Rp の子孫が同時にク
ローズされた行の子孫である場合には、その表示状態は
変化しない。図6〜図7処理も表示属性を設定するだけ
で、実際の表示は画面再表示処理26が行う。例えば図
13(a) で行オープンコマンドを実行し、行112a〜
112bをRp として指定すると第12図(a) の表に戻
る。この場合はステップ63aが行112a〜112b
をオープン状態に設定し、ステップ63bが行111a
〜111dを表示オンの状態に設定する。ただし行11
1a〜111dはクローズされているため、それらの子
孫は表示オフの状態を保つ。このように、行のオープン
はクローズされた行の子孫の表示状態には影響しない。
これは行がクローズされる前の表示状態を再現するため
である。図12(a)を図11(a) の状態に戻す場合に
は、再度行オープンコマンドを実行し、行111a〜1
11dをRp として指定する。As described above, the processing of FIG. 7 is nested inside, and the descendants of FIG. 6Rp are sequentially set to the display ON state based on the nesting. However, step 7
As shown in FIG. 2, when a closed row is detected, no further nesting is performed, so that if the descendants of Rp are descendants of the closed row at the same time, the display state does not change. 6 and 7, only the display attribute is set, and the actual display is performed by the screen redisplay processing 26. For example, a row open command is executed in FIG.
When 112b is designated as Rp, the process returns to the table of FIG. In this case, step 63a is performed in rows 112a-112b.
Is set to the open state, and step 63b is executed in line 111a.
To 111d are set to the display ON state. But row 11
Since 1a to 111d are closed, their descendants keep the display off state. Thus, opening a row does not affect the display state of descendants of the closed row.
This is to reproduce the display state before the row is closed. To return the state of FIG. 12A to the state of FIG. 11A, the line open command is executed again, and the lines 111a to 111a are executed.
11d is designated as Rp.
【0030】一方、列オープン処理24bと列クローズ
処理25bは、行の当該処理と同一の手順で列の表示属
性を変更する。例えば図13(a) で列クローズコマンド
を実行し、列131a〜131bを指定すると図14の
表が得られる。また図14で列オープンコマンドを実行
し、列141a〜141bを指定すると図13(a) の表
に戻る。On the other hand, the column open processing 24b and the column close processing 25b change the display attribute of a column in the same procedure as that of the row. For example, when the column close command is executed in FIG. 13A and the columns 131a to 131b are designated, the table in FIG. 14 is obtained. When the column open command is executed in FIG. 14 and the columns 141a to 141b are designated, the process returns to the table of FIG.
【0031】オープン/クローズ処理が終了すると、ス
テップ26で処理結果を画面に表示する。図8は画面表
示の処理手順を示すフローチャートである。この処理は
表示手段16に対応し、行・列が共に表示オンの状態に
あるセルを画面上に表示する。ステップ81aはデータ
の表示位置を画面左上端に、また画面上端の行番号をパ
ラメータiに設定する。ステップ81bは行iの表示制
御ビット92bをチェックし、表示オンの状態であれば
ステップ82a以下の処理を起動する。またそうでなけ
ればステップ81eに移行して行番号iを更新し、新た
なiについてステップ81bからの処理を繰返す。 ス
テップ82aは行の位置を保ったまま表示位置を画面左
端に、また画面左端の列番号をパラメータjに設定す
る。ステップ82bは列jの表示制御ビット92bをチ
ェックし、表示オンの状態であればステップ82c以下
の処理を起動する。またそうでなければステップ82g
に移行して列番号jを更新し、新たなjについてステッ
プ82bからの処理を繰返す。ステップ82c〜82d
は列jを表示するのに必要な表示幅をチェックし、画面
上の右余白がその幅を満たすならばステップ82e以下
の処理を起動する。またそうでなければステップ81c
に移行する。ステップ82eはi,jの指すセルのメモ
リ上のデータを表示位置に表示する。ステップ82fは
表示位置を画面上の次の列に進める。ステップ82gは
列番号jを更新し、ステップ82bからの処理を繰返
す。ステップ81cは表示位置が画面下端かどうかをチ
ェックし、もしそうであれば画面表示が完了したものと
みなして第8図の処理を終了する。またそうでなければ
ステップ81dで表示位置を次の行に進めた後、ステッ
プ81eで行番号iを更新し、ステップ81bからの処
理を繰返す。When the open / close processing is completed, the processing result is displayed on the screen in step 26. FIG. 8 is a flowchart showing the processing procedure for screen display. This processing corresponds to the display means 16 and displays on the screen cells whose rows and columns are both in the display ON state. In step 81a, the display position of the data is set at the upper left corner of the screen, and the line number at the upper end of the screen is set as the parameter i. A step 81b checks the display control bit 92b of the row i, and if the display is on, activates the processing of the step 82a and thereafter. If not, the flow shifts to step 81e to update the row number i, and the processing from step 81b is repeated for a new i. In step 82a, the display position is set to the left end of the screen and the column number at the left end of the screen is set to the parameter j while keeping the position of the row. In step 82b, the display control bit 92b in column j is checked, and if the display is on, the processing in step 82c and thereafter is started. Otherwise, step 82g
And the column number j is updated, and the processing from step 82b is repeated for the new j. Steps 82c to 82d
Checks the display width required to display column j, and if the right margin on the screen satisfies the width, activates the processing of step 82e and thereafter. Otherwise, step 81c
Move to A step 82e displays the data on the memory of the cell indicated by i and j at the display position. A step 82f advances the display position to the next column on the screen. A step 82g updates the column number j and repeats the processing from the step 82b. A step 81c checks whether or not the display position is at the lower end of the screen, and if so, considers that the screen display has been completed and terminates the processing of FIG. Otherwise, after moving the display position to the next line in step 81d, the line number i is updated in step 81e, and the processing from step 81b is repeated.
【0032】以上に述べたように、本発明の第1の表デ
ータ表示方式を用いると、表に定義した階層構造に従っ
て行および列の表示オン/オフを制御出来るため、表に
記述された情報の比較参照を迅速かつ効率良く行えると
いう効果がある。なお、本実施例では表全体に対するツ
リー構造が定義された例を示したが、表の一部にのみツ
リー構造が定義される場合も全く同様の処理結果が得ら
れる。As described above, when the first table data display method of the present invention is used, the display on / off of the rows and columns can be controlled in accordance with the hierarchical structure defined in the table. This has the effect that comparison and reference can be performed quickly and efficiently. In the present embodiment, an example in which the tree structure is defined for the entire table has been described. However, the same processing result can be obtained when the tree structure is defined only in a part of the table.
【0033】また本発明に係る第2の表データ表示方式
においては、図1の手段13b,14b,15bと記憶
部17b,第2図のステップ22b,および図3のステ
ップ31b,32b,33bが省略される。即ち、行に
関する表の切替のみが行われる。In the second table data display system according to the present invention, the means 13b, 14b, 15b and storage unit 17b of FIG. 1, the step 22b of FIG. 2, and the steps 31b, 32b, 33b of FIG. Omitted. That is, only the switching of the table related to the row is performed.
【0034】そしてまた、本発明に係る第3の表データ
表示方式においては、図1の手段13a,14a,15
aと記憶部17a,第2図のステップ22a,および図
3のステップ31a,32a,33aが省略される。即
ち、行に関する表の切替のみが行われる。In the third table data display method according to the present invention, the means 13a, 14a, 15 shown in FIG.
a and the storage unit 17a, step 22a in FIG. 2, and steps 31a, 32a and 33a in FIG. 3 are omitted. That is, only the switching of the table related to the row is performed.
【0035】[0035]
【発明の効果】以上説明したように本発明の表データ表
示方式では、行および列の各々に対してツリー構造で表
わされる表の階層構造を定義し、その階層構造に従って
行および列の表示オン/オフを制御する機構を導入する
ことにより、表に記述された情報の比較参照を迅速かつ
効率良く行えるという効果がある。As described above, according to the table data display method of the present invention, a hierarchical structure of a table represented by a tree structure is defined for each of rows and columns, and the display of rows and columns is turned on according to the hierarchical structure. By introducing a mechanism for controlling the on / off operation, there is an effect that the information described in the table can be compared and referred to quickly and efficiently.
【図1】本発明に係る第1の表データ表示方式を備えた
一実施例データ処理装置を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a data processing apparatus having a first table data display method according to the present invention.
【図2】処理手順の全体像を示すフローチャートであ
る。FIG. 2 is a flowchart showing an overall image of a processing procedure.
【図3】行の階層定義処理を示すフローチャートであ
る。FIG. 3 is a flowchart showing a row hierarchy definition process.
【図4】親子行の定義処理を示すフローチャートであ
る。FIG. 4 is a flowchart illustrating a parent-child row definition process.
【図5】行のクロ−ズ処理を示すフローチャートであ
る。FIG. 5 is a flowchart showing a row closing process.
【図6】行オ−プン処理を示すフローチャートである。FIG. 6 is a flowchart showing a row open process.
【図7】子孫のオ−プン処理を示すフローチャートであ
る。FIG. 7 is a flowchart showing a descendant open process.
【図8】画面再表示処理を示すフローチャートである。FIG. 8 is a flowchart showing a screen redisplay process.
【図9】メモリ上のデータ構造を示す説明図である。FIG. 9 is an explanatory diagram showing a data structure on a memory.
【図10】データ処理装置上の表の一例を示す説明図で
ある。FIG. 10 is an explanatory diagram showing an example of a table on the data processing device.
【図11】商品別販売計画表を一例として示した画面表
示例の図である。FIG. 11 is a diagram of a screen display example showing a sales plan table for each product as an example.
【図12】マスク処理後の商品別販売計画表を一例とし
て示した画面表示例の図である。FIG. 12 is a screen display example showing, as an example, a product-specific sales plan table after mask processing;
【図13】再度マスク処理後の商品別販売計画表を一例
として示した画面表示例の図である。FIG. 13 is a diagram of a screen display example showing, as an example, a product-specific sales plan table after mask processing is performed again.
【図14】再度マスク処理後の商品別販売計画表を一例
として、列クロ−ズドコマンドを実行したときの画面表
示例の図である。FIG. 14 is a diagram showing an example of a screen display when a column closed command is executed, taking as an example a product-specific sales plan table after mask processing again.
【図15】ツリ−構造の概念図である。FIG. 15 is a conceptual diagram of a tree structure.
11 制御部 12 階層データ制御部 13 階層定義手段 13a 行の階層定義手段 13b 列の階層定義手段 14 節オープン手段 14a 行オープン手段 14b 列オープン手段 15 節クローズ手段 15a 行クローズ手段 15b 列クローズ手段 16 表示手段 17 メモリ 17a 行の階層データ記憶部 17b 列の階層データ記憶部 17c 表データ記憶部 18 バス 18a CPU 18b キーボード 18c ディスクドライブ 18d CRTディスプレイ 91 行情報 92 行の表示属性 92a 開閉制御ビット 92b 表示制御ビット 93 親の行情報へのポインタ 94 子の行情報へのポインタ DESCRIPTION OF SYMBOLS 11 Control part 12 Hierarchical data control part 13 Hierarchy definition means 13a Hierarchy definition means of a row 13b Hierarchy definition means of a column 14 Clause opening means 14a Row opening means 14b Column opening means 15 Clause closing means 15a Row closing means 15b Column closing means 16 Display Means 17 Memory 17a Hierarchical data storage unit in row 17b Hierarchical data storage unit in column 17c Table data storage unit 18 Bus 18a CPU 18b Keyboard 18c Disk drive 18d CRT display 91 Line information 92 Line display attribute 92a Open / close control bit 92b Display control bit 93 Pointer to parent row information 94 Pointer to child row information
Claims (3)
おいて、(イ) 表の行の階層および列の階層をツリー構造
に基づいて定義する階層定義手段と、 (ロ) 前記 (イ)
の階層構造に従って指定された行および列の下位の階層
を非表示状態にする節クローズ手段と、(ハ) 前記 (イ)の
階層構造に従って指定された行および列の下位の階層を
再表示状態にする節オープン手段と、を備えることによ
り、表の行および列の表示/非表示を制御することを特
徴とする表の表示方式。1. A data processing apparatus for displaying table data, comprising: (a) a hierarchy definition means for defining a row hierarchy and a column hierarchy of a table based on a tree structure;
Clause closing means for hiding the lower hierarchy of rows and columns specified according to the hierarchical structure of (c), and (c) redisplaying the lower hierarchy of rows and columns specified according to the hierarchical structure of (a) And a section opening means for controlling display / non-display of rows and columns of the table.
おいて、(イ) 表の行の階層をツリー構造に基づいて定義
する階層定義手段と、(ロ) 前記 (イ)の階層構造に従って
指定された行の下位の階層を非表示状態にする節クロー
ズ手段と、(ハ) 前記 (イ)の階層構造に従って指定された
行の下位の階層を再表示状態にする節オープン手段と、
を備えることにより、表の行に対する表示/非表示を制
御することを特徴とする表の表示方式。2. A data processing device for displaying table data, comprising: (a) a hierarchy definition means for defining a hierarchy of table rows based on a tree structure; and (b) a hierarchy specified in accordance with the hierarchy structure of (a). Clause closing means for hiding the lower hierarchy of the row that has been hidden, and (c) clause opening means for redisplaying the lower hierarchy of the row specified according to the hierarchical structure of (a),
A display method of a table, wherein display / non-display of a row of the table is controlled.
おいて、(イ) 表の列の階層をツリー構造に基づいて定義
する階層定義手段と、(ロ) 前記 (イ)の階層構造に従って
指定された列の下位の階層を非表示状態にする節クロー
ズ手段と、(ハ) 前記 (イ)の階層構造に従って指定された
列の下位の階層を再表示状態にする節オープン手段と、
を備えることにより、表の列に対する表示/非表示を制
御することを特徴とする表の表示方式。3. A data processing apparatus for displaying table data, comprising: (a) a hierarchy definition means for defining a hierarchy of table columns based on a tree structure; Clause closing means for hiding the lower hierarchy of the column that has been set, and (c) clause opening means for redisplaying the lower hierarchy of the column specified according to the hierarchy structure of (A),
A display method of a table, wherein display / non-display of a column of the table is controlled.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3125321A JP3002011B2 (en) | 1991-04-26 | 1991-04-26 | Display method of table data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3125321A JP3002011B2 (en) | 1991-04-26 | 1991-04-26 | Display method of table data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04328678A JPH04328678A (en) | 1992-11-17 |
| JP3002011B2 true JP3002011B2 (en) | 2000-01-24 |
Family
ID=14907223
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3125321A Expired - Lifetime JP3002011B2 (en) | 1991-04-26 | 1991-04-26 | Display method of table data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3002011B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07319905A (en) * | 1994-05-25 | 1995-12-08 | Fujitsu Ltd | Information retrieval device |
| AU1735701A (en) | 2000-12-08 | 2002-06-18 | Fujitsu Ltd | Sequence analysis method and sequence analysis apparatus |
-
1991
- 1991-04-26 JP JP3125321A patent/JP3002011B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH04328678A (en) | 1992-11-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5873106A (en) | Geometry management for displaying objects on a computer | |
| US6216138B1 (en) | Computer interface system for automatically generating graphical representations of computer operations linked together according to functional relationships | |
| CN101322119B (en) | Persistent formatting for interactive charts | |
| US5317686A (en) | Data processing apparatus and method for a reformattable multidimensional spreadsheet | |
| US7383498B1 (en) | Editing styles for markup documents using parametrized styles sheets | |
| JP3173067B2 (en) | Graph creation apparatus and method | |
| US20040111666A1 (en) | Software replicator functions for generating reports | |
| US11227105B1 (en) | Method and apparatus for structured documents | |
| JP3002011B2 (en) | Display method of table data | |
| JPH08221107A (en) | Sequence control program generating device | |
| US7461340B1 (en) | Integrated decorative panels | |
| JPH11134338A (en) | Home page preparing device | |
| JP3744270B2 (en) | Table display control device and recording medium recording table display control program | |
| JPH0377997A (en) | Window display system and method | |
| US20060174195A1 (en) | System and method for a look and feel designer with a style sheet editor | |
| JP2000357172A (en) | Hierarchical definition file display system | |
| JP4003237B2 (en) | Form output device | |
| JP3042666B2 (en) | Database information display device in database system | |
| JPH06274513A (en) | Hierarchical table calculating device | |
| JP4735155B2 (en) | Display device and character string database redefinition method | |
| JP2896519B2 (en) | Document editing device | |
| JP2735921B2 (en) | Address definition operation device | |
| JP2007108994A (en) | Layout editing device and layout editing program | |
| JP2982535B2 (en) | Graph creation device | |
| JP2000322589A (en) | Graph display system |