JPH0654468B2 - Tree structure data drawing processing method - Google Patents

Tree structure data drawing processing method

Info

Publication number
JPH0654468B2
JPH0654468B2 JP62293741A JP29374187A JPH0654468B2 JP H0654468 B2 JPH0654468 B2 JP H0654468B2 JP 62293741 A JP62293741 A JP 62293741A JP 29374187 A JP29374187 A JP 29374187A JP H0654468 B2 JPH0654468 B2 JP H0654468B2
Authority
JP
Japan
Prior art keywords
child
parent
information
tree structure
determined
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
Application number
JP62293741A
Other languages
Japanese (ja)
Other versions
JPH01134674A (en
Inventor
雅之 澤村
康博 中駄
裕 臼田
Original Assignee
日立ソフトウェアエンジニアリング株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 日立ソフトウェアエンジニアリング株式会社 filed Critical 日立ソフトウェアエンジニアリング株式会社
Priority to JP62293741A priority Critical patent/JPH0654468B2/en
Publication of JPH01134674A publication Critical patent/JPH01134674A/en
Publication of JPH0654468B2 publication Critical patent/JPH0654468B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理装置において、入力された図形や
文字等のデータを木構造図の構成要素とする時、木構造
図の作成、編集、出力等を行う木構造データ作図処理方
式に関し、特に、図形情報の表示もしくは記録に要する
面積が少なく、かつ、利用者にとって見易いように図形
情報の配置を自動的に決定する技術に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention relates to a data processing device in which, when data such as input figures and characters are used as constituent elements of a tree structure diagram, the tree structure diagram is created and edited. The present invention relates to a tree structure data drawing processing method for outputting, etc., and particularly to a technology for automatically deciding the arrangement of graphic information so that the area required for displaying or recording the graphic information is small and is easy for the user to see. .

〔従来の技術〕[Conventional technology]

従来、データ処理装置において、木構造型のデータを扱
う場合が多くある。特に、プログラム開発時において、
従来使われてきたフローチャートに代わって木構造図
(チャート)が普及してきた(日経コンピュータ,19
84.1.9,P71)。さらに高機能ワークステーシ
ョンの普及に伴い、木構造図をデータ処理装置で扱う様
になってきた(日経コンピュータ,1987.8.1
7,P149)。
Conventionally, data processing devices often handle tree-structured data. Especially during program development
Tree structure diagrams (charts) have become popular in place of the flow charts used in the past (Nikkei Computer, 19
84.1.9, P71). With the spread of high-performance workstations, tree structure diagrams have come to be handled by data processing devices (Nikkei Computer, 1987.8.1).
7, P149).

木構造図を扱う装置としては、例えば、特開昭60−1
00226号公報に記載されるように、木構造チャート
・テスト処理装置がある。木構造データを扱う場合に
は、木構造を形成している各要素の位置を決め、木構造
図を作成する必要があるが前記公報はこの技術について
述べていない。
An apparatus for handling a tree structure diagram is, for example, JP-A-60-1.
There is a tree structure chart test processing device as described in Japanese Patent No. 00226. When handling tree structure data, it is necessary to determine the position of each element forming the tree structure and create a tree structure diagram, but the above publication does not describe this technique.

また、木構造図の作成に関しては、特開昭62−142
65号公報にボックスを構成要素とした場合のボックス
間の親子関係情報を用いて作図する方法、すなわち、木
構造データの構成要素をボックスとした場合の配置を、
木構造の論理関係から導き出すことができることが開示
されている。
Further, regarding the creation of the tree structure diagram, JP-A-62-142
Japanese Patent Laid-Open Publication No. 65-65 discloses a method of drawing using parent-child relationship information between boxes when the boxes are constituent elements, that is, the arrangement when the constituent elements of the tree structure data are boxes.
It is disclosed that this can be derived from the logical relationship of the tree structure.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

しかしながら、前記従来のボックスを構成要素とした場
合のボックス間の親子関係情報を用いて作図する方法で
は、木構造図の構成要素を最初の左詰めで座標を設定
し、次に各構成要素に対して補正値を求め、最後にその
補正値を使って配置する座標を決定するという三段階を
経て作図される。このため、構成要素が多くなるにつれ
て処理時間がかかり、また、処理の実現方法も複雑であ
るという問題があった。
However, in the method of drawing using the parent-child relationship information between boxes when the conventional box is a constituent element, the coordinates of the constituent elements of the tree structure diagram are first left-justified, and then each constituent element is set. On the other hand, a correction value is obtained, and finally the correction value is used to determine the coordinates to be arranged. Therefore, there is a problem that the processing time increases as the number of constituent elements increases and the method of realizing the processing is complicated.

本発明は、前記問題点を解決するためになされたもので
ある。
The present invention has been made to solve the above problems.

本発明の目的は、ボックスを構成要素とした場合のボッ
クス間の親子関係情報を用いて作図する木構造データ作
図処理方式であって、処理段階を低減することができ、
かつ処理時間を短縮することができる技術を提供するこ
とにある。
An object of the present invention is a tree structure data drawing processing method for drawing using parent-child relationship information between boxes when boxes are constituent elements, and the number of processing steps can be reduced.
Another object is to provide a technique capable of shortening the processing time.

本発明の他の目的は、ボックスを構成要素とした場合の
ボックス間の親子関係情報を用いて作図する木構造デー
タ作図処理方式であって、図形情報の表示もしくは記録
に要する面積が少なく、かつ、利用者にとって見易いよ
うに図形情報の配置を自動的に決定することができる技
術を提供することにある。
Another object of the present invention is a tree structure data drawing processing method for drawing using parent-child relationship information between boxes when boxes are constituent elements, and the area required for displaying or recording graphic information is small, and The object is to provide a technology capable of automatically determining the arrangement of graphic information so that it is easy for the user to see.

本発明の前記ならびにその他の目的と新規な特徴は、本
明細書の記述及び添付図面によって明らかになるであろ
う。
The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

〔問題点を解決するための手段〕[Means for solving problems]

本願において開示される発明のうち、代表的なものの概
要を簡単に説明すれば、下記のとおりである。
The following is a brief description of the outline of the typical inventions among the inventions disclosed in the present application.

すなわち、データ処理装置における木構造情報を保持す
る情報記憶媒体からの木構造の親子・兄弟関係にある情
報を図形情報に変換し、この図形情報を表示もしくは記
憶する木構造データ作図処理方法であって、 前記親子・兄弟関係にある情報を、親から子方向に、さ
らに兄弟方向に探索し、子を持たない最下位階層まで達
したならば、該最下位階層に属する情報にそれぞれ対応
する図形情報の配置位置を決定し、 次にその上位階層情報に対応する図形情報の配置位置
を、上下階層間の相対位置を定めるユーザ設定のパラメ
ータ情報に基づいて決定することを最上位階層に達する
まで順次繰返し、 このようにして決定した配置位置に従って各階層の図形
情報を表示もしくは記憶することを特徴とする。そし
て、親から子方向へ探索する際に、子有りの親ならば、
その長子を新たな親として子方向に探索し、子無しの親
ならば弟方向に探索し、弟が存在すれば、その弟を新た
な親としてその子方向に探索することを特徴とする。
That is, it is a tree structure data drawing processing method for converting information having a parent-child / sibling relationship of a tree structure from an information storage medium holding tree structure information in a data processing device into graphic information and displaying or storing this graphic information. Then, when the parent-child / sibling relationship information is searched in the parent-child direction and further in the sibling direction, and reaches the lowest hierarchy having no children, the figures corresponding to the information belonging to the lowest hierarchy respectively. Until the top level is reached, the placement position of the information is determined, and then the placement position of the graphic information corresponding to the upper layer information is determined based on the user-set parameter information that determines the relative position between the upper and lower layers. It is characterized in that the graphic information of each layer is displayed or stored according to the arrangement position thus determined. Then, when searching from the parent to the child, if the parent has a child,
The feature is that the firstborn child is searched as a new parent in the child direction, and if there is no child, it is searched in the younger brother direction, and if a younger brother exists, the younger brother is searched as the new parent in the child direction.

また、上位階層の図形情報の配置位置を決定する際に、
子の親の配置位置を決定したならば、その弟の存在を探
索し、弟が存在すれば、その弟を新たな親として子の配
置位置を決定した後、その子の親の配置位置を決定する
ことを特徴とする。
Also, when deciding the placement position of the graphic information of the upper hierarchy,
If the placement position of the child's parent is determined, the existence of the younger brother is searched, and if the younger brother is present, the placement position of the child's parent is determined after determining the placement position of the child with the younger brother as the new parent. It is characterized by doing.

〔作用〕[Action]

前述した手段によれば、木構造の親と子を結ぶ時、子供
の配置と親の位置を決定する時に再帰呼び出しを用いた
簡単な処理により、短時間に木構造図が作成される。ま
た、パラメータ情報に基づいてバランスをとっているた
め、見易い木構造図が作成される。
According to the above-described means, when connecting a parent and a child of a tree structure, a tree structure diagram is created in a short time by a simple process using a recursive call when determining the placement of the child and the position of the parent. Further, since the balance is established based on the parameter information, a tree structure diagram that is easy to see is created.

〔発明の原理〕[Principle of Invention]

本発明は、木構造データの構成要素の位置を木構造デー
タの論理関係から一意に決定し、かつその時、配置のバ
ランスを予め与えられたパラメータ情報に基づいて設定
できるものである。この時の実現方法として再帰的手法
を用いることにより、非常に簡単な処理で位置決めが行
われているので、処理の実現方法を簡単にすることがで
き、かつ処理時間も短縮することができる。
According to the present invention, the positions of the constituent elements of the tree structure data are uniquely determined from the logical relationship of the tree structure data, and at that time, the arrangement balance can be set based on the parameter information given in advance. By using the recursive method as the realization method at this time, the positioning is performed by a very simple process, so that the realization method of the process can be simplified and the processing time can be shortened.

次に、「再帰的手法」について説明する。Next, the “recursive method” will be described.

ある処理を実現する時に、処理の中に自分自身が含まれ
ている時、再帰的であると言われる。これは、数学の漸
化式と同様なものである。
A process is said to be recursive when it includes itself in the process. This is similar to the mathematical recurrence formula.

再帰的手法によって階乗を求める例を示すと、 P!=1,P=0の時 P!=P×(P−1)!,P>0の時 これをPascal言語で記述すると次の様になる。An example of finding the factorial by the recursive method is P! When = 1 and P = 0, P! = P * (P-1)! , P> 0 When written in Pascal language, it becomes as follows.

function F(I:integer):integer; begin if I>0 then F:=I*F(I−1) else F:=1 end この例をフローチャート(流れ図)で示すと第10図の
ようになる。
function F (I: integer): integer; begin if I> 0 then F: = I * F (I-1) else F: = 1 end This example is shown in the flow chart of FIG. .

前記の例をI=5として実行すると次の様に動作する。When the above example is executed with I = 5, the operation is as follows.

F(5)=5*F(4)→F(4)がコールされる F(4)=4*F(3)→F(3) 〃 F(3)=3*F(2)→F(2) 〃 F(2)=2*F(1)→F(1) 〃 F(1)=1*F(0)→F(0) 〃 F(0)=1 →F(0)に1がセットされる F(1)=1 →F(1)に1 〃 F(2)=2 →F(2)に2 〃 F(3)=6 →F(3)に6 〃 F(4)=24 →F(4)に24 〃 F(5)=120 →F(5)に120 〃 〔発明の実施例〕 以下、本発明の一実施例を図面を用いて具体的に説明す
る。
F (5) = 5 * F (4) → F (4) is called F (4) = 4 * F (3) → F (3) 〃 F (3) = 3 * F (2) → F (2) 〃 F (2) = 2 * F (1) → F (1) 〃 F (1) = 1 * F (0) → F (0) 〃 F (0) = 1 → F (0) 1 is set F (1) = 1 → F (1) 1 〃 F (2) = 2 → F (2) 2 〃 F (3) = 6 → F (3) 6 〃 F (4 ) = 24 → F (4) = 24 〃 F (5) = 120 → F (5) 120 〃 [Embodiment of the Invention] An embodiment of the present invention will be specifically described below with reference to the drawings.

なお、実施例を説明するための全図において、同一機能
を有するものは同一符号を付け、その繰り返しの説明は
省略する。
In all the drawings for explaining the embodiments, parts having the same function are designated by the same reference numerals, and repeated description thereof will be omitted.

第1図は、本発明の一実施例の木構造データ処理装置の
概略構成を示すブロック図、 第2図及び第3図は、本発明に係る位置決定処理のフロ
ーチャート(流れ図)の一例を示す説明図、 第4図は、第1図に示す木構造情報記憶部のデータ例を
示す説明図、 第5図は、本発明により位置決めされた例を示す説明
図、 第6図は、本発明による位置決めが行われる過程を示す
説明図、 第7図は、本発明を適用したPAD(Problem Analysis
Diagram)でのテキスト表現の一例を示す説明図、 第8図は、本発明によるテキストがPAD図に変換され
た例を示す説明図である。
FIG. 1 is a block diagram showing a schematic configuration of a tree-structured data processing device according to an embodiment of the present invention, and FIGS. 2 and 3 show an example of a flow chart (flow chart) of a position determination process according to the present invention. Explanatory diagram, FIG. 4 is an explanatory diagram showing an example of data in the tree structure information storage unit shown in FIG. 1, FIG. 5 is an explanatory diagram showing an example of positioning by the present invention, and FIG. FIG. 7 is an explanatory diagram showing a process of positioning by PAD (Problem Analysis) to which the present invention is applied.
FIG. 8 is an explanatory view showing an example of a text expression in a diagram, and FIG. 8 is an explanatory view showing an example in which the text according to the present invention is converted into a PAD diagram.

本実施例の木構造データ処理装置は、第1図に示すよう
に、キーボード,マウス等からなる入力装置1、コンピ
ュータからなるデータ処理装置2、処理された情報を表
示するための表示装置3、処理された情報を記録印刷す
るためのプリンタ4が備えられている。データ処理装置
2は、入力装置1から入力された情報を木構造情報に変
換するための入力情報変換部21、この入力情報変換部21
で変換された情報を格納するための木構造情報記憶部2
2、入力装置1から入力された情報に上下階層間の相対
位置関係を定めるパラメータを付加するためのパラメー
タ情報記憶部23、木構造情報記憶部22及びパラメータ情
報記憶部23の情報を読出して木構造情報の位置決定の処
理を行うための位置決定処理部24、この位置決定処理部
24で決定された木構造の図形・文字情報を記憶するため
の図形・文字情報記憶部25、この図形・文字情報記憶部
25に格納されている情報を表示装置3に表示するための
表示部26、前記図形・文字情報記憶部25に格納されてい
る情報をプリンタ4に印刷するためのプリンタ出力部27
からなっている。
As shown in FIG. 1, the tree-structured data processing device of this embodiment includes an input device 1 including a keyboard and a mouse, a data processing device 2 including a computer, a display device 3 for displaying processed information, A printer 4 is provided for recording and printing the processed information. The data processing device 2 includes an input information conversion unit 21 for converting the information input from the input device 1 into tree structure information, and the input information conversion unit 21.
Tree structure information storage unit 2 for storing the information converted by
2. Read the information from the parameter information storage unit 23, the tree structure information storage unit 22 and the parameter information storage unit 23 for adding the parameter that determines the relative positional relationship between the upper and lower layers to the information input from the input device 1 Position determination processing unit 24 for performing the position determination processing of structural information, this position determination processing unit
The graphic / character information storage unit 25 for storing the graphic / character information of the tree structure determined in 24, this graphic / character information storage unit
A display unit 26 for displaying the information stored in 25 on the display device 3, and a printer output unit 27 for printing the information stored in the graphic / character information storage unit 25 on the printer 4.
It consists of

次に、本実施例の処理手順を第1図及び第2図を用いて
説明する。
Next, the processing procedure of this embodiment will be described with reference to FIG. 1 and FIG.

第1図及び第2図において、入力装置1から入力された
情報は、入力情報変換部21で木構造情報に変換される
(ステップ100〜500)。その結果は、木構造情報
記憶部22に記憶される。
1 and 2, the information input from the input device 1 is converted into tree structure information by the input information conversion unit 21 (steps 100 to 500). The result is stored in the tree structure information storage unit 22.

この木構造情報記憶部22に記憶される情報は、例えば、
第5図に示す木構造図の場合、第4図に示す様に記憶さ
れる。この木構造情報とパラメータ情報記憶部23からの
入力パラメータ情報に基づいて位置決定処理が動く(ス
テップ600)。その結果は、図形.文字情報記憶部25
に記憶され、表示部26又はプリンタ出力部27により、C
RT等の表示装置3又はプリンタ4に出力される。
The information stored in the tree structure information storage unit 22 is, for example,
In the case of the tree structure diagram shown in FIG. 5, it is stored as shown in FIG. The position determination process operates based on the tree structure information and the input parameter information from the parameter information storage unit 23 (step 600). The result is a figure. Character information storage unit 25
Stored in the display unit 26 or the printer output unit 27.
It is output to the display device 3 such as RT or the printer 4.

次に、第3図に基づいて、第4図に示す木構造データか
ら第5図に示す木構造図が作成される例を説明する。
Next, based on FIG. 3, an example in which the tree structure diagram shown in FIG. 5 is created from the tree structure data shown in FIG. 4 will be described.

第4図及び第5図において、木構造を構成する要素はボ
ックスとし、各々にノード番号を付ける。ノード番号0
のボックスを第0階層位置と定義し、N桁のノードの番
号のボックスを第N階層位置と呼ぶ。第N階層のボック
スの中で一番上のボックスが1つ前の階層のボックスに
対して上方向に指している。子のボックスに対しては、
親は右方向に指しており、兄弟に対しては、上下が指し
合っている。
In FIGS. 4 and 5, the elements that make up the tree structure are boxes, and node numbers are assigned to each. Node number 0
Is defined as the 0th hierarchy position, and the box of the N digit node number is called the Nth hierarchy position. The uppermost box of the boxes in the Nth layer points upward with respect to the box in the immediately preceding layer. For the child box,
Parents point to the right, and brothers point up and down.

第3図において、まず、最初にボックス“0”に対して
第2図に示すステップ600から第3図に示すステップ
601をコールして処理がスタートする(第6図参
照)。ボックス“0”に対してステップ602で一番上
の位置が仮設定され、ステップ603で右ノード(子ツ
リー)が存在するか否かの判断を行う。その判断がYE
Sであれば、ステップ604でボックス“1”に対して
ステップ601が再帰的にコールされる。NOであれば
ステップ608に進む。以下同様にボックス“111”
の位置に対してステップ601がコールされると、ステ
ップ605で右ノード設定値のリターン値と仮設定値と
比較して両者が等しいときは、ステップ608によりボ
ックス“111”の位置が定義される。仮設定値が右ノ
ード設定値のリターン値より大きいときは、右ノード設
定値を仮設定値と右ノードリターン値の差だけ上げて、
ステップ608によりボックス“111”の位置が定義
される。また、仮設定値が右ノード設定値のリターン値
より小さいときは、仮設定値を右ノード設定値のリター
ン値まで上げて等しくし、ステップ608によりボック
ス“111”の位置が定義(決定)される。ここで、前
記ステップ605,606,607,608の詳細につ
いて説明する。
In FIG. 3, first, the process is started by calling step 600 shown in FIG. 2 to step 601 shown in FIG. 3 for the box “0” (see FIG. 6). In step 602, the uppermost position is provisionally set for the box “0”, and it is determined in step 603 whether or not the right node (child tree) exists. The judgment is YE
If S, step 601 is called recursively for box "1" in step 604. If NO, the process proceeds to step 608. Similarly, box “111”
When the step 601 is called for the position of, the return value of the right node setting value is compared with the provisional setting value in step 605, and if they are equal, the position of the box “111” is defined in step 608. . If the temporary setting value is greater than the return value of the right node setting value, increase the right node setting value by the difference between the temporary setting value and the right node return value,
Step 608 defines the position of box "111". If the temporary setting value is smaller than the return value of the right node setting value, the temporary setting value is increased to the return value of the right node setting value to equalize it, and the position of the box “111” is defined (determined) in step 608. It Here, details of the steps 605, 606, 607, and 608 will be described.

前記ステップ605の判定が“>”の場合には、第3A
図に示すように、親nnの仮設定値と右ノードリターン
値(▽)との位置関係が点線(イ)の関係にある場合に
相当し、この場合は、親ノードnnが▽の真上に来るよ
うに親ノードnnを移動する。
If the determination in step 605 is “>”, the third
As shown in the figure, this corresponds to the case where the positional relationship between the temporary setting value of the parent nn and the right node return value (▽) is the relationship of the dotted line (a). In this case, the parent node nn is directly above ▽. To move the parent node nn to come to.

また、前記ステップ605の判定が“=”の場合には、
第3B図に示すように、親nnの仮設定値と右ノードリ
ターン値(▽)とは同じ値(同じ位置)である。この場
合は、親ノードnnの仮設定値をそのまま親ノードnn
の本設定値とする。
If the determination in step 605 is “=”,
As shown in FIG. 3B, the provisional setting value of the parent nn and the right node return value (∇) are the same value (same position). In this case, the provisional setting value of the parent node nn is used as it is as the parent node nn.
This is the set value.

また、前記ステップ605の判定が“<”の場合には、
第3C図に示すように、親nnの仮設定値と右ノードリ
ターン値(▽)との位置関係が点数(ロ)の関係にある
場合に相当し、この場合は、右ノードリターン値(△)
が親ノードnnの真下に来るように子ツリー全体を親の
方へ移動する。
If the determination in step 605 is “<”,
As shown in FIG. 3C, this corresponds to the case where the positional relationship between the provisional setting value of the parent nn and the right node return value (▽) is the point (b), and in this case, the right node return value (Δ). )
Move the entire child tree towards the parent so that is underneath the parent node nn.

次に、ステップ609で下ノード(兄弟ツリー)が存在
するか否かを判断する。この判断がYESであれば、ス
テップ610に移り、下ノード、すなわちボックス“1
12”,“113”に対してステップ601がコールさ
れ、ステップ608によりそれぞれの位置が決まる[第
6図(a)]。
Next, in step 609, it is determined whether or not a lower node (sibling tree) exists. If this determination is YES, the process moves to step 610 and the lower node, that is, the box “1”.
Step 601 is called for 12 "and" 113 ", and the respective positions are determined by step 608 [Fig. 6 (a)].

次に、ステップ609での判断がNOの場合、すなわ
ち、ボックス“113”の下ノードは存在しないため、
ステップ611によりパラメータによって次の接続位置
を求める。前記ステップ611でのパラメータによって
求めた次の接続位置はステップ605,606,607
で言う右ノード(設定)リターン値のことである。これ
により、ボックス“111”〜“113”とボックス
“11”の接続位置がきまる。このパラメータにより、
木構造図は第9図の(a)や(b)の例のようにもでき
る。
Next, when the determination in step 609 is NO, that is, since the lower node of the box “113” does not exist,
In step 611, the next connection position is obtained by the parameter. The next connection position obtained from the parameters in step 611 is the step 605, 606, 607.
It is the right node (setting) return value. As a result, the connection positions of the boxes “111” to “113” and the box “11” are determined. With this parameter,
The tree structure diagram can be the same as the example shown in FIGS. 9A and 9B.

次に再帰コールからステップ612によりボックス“1
1”のステップ604に戻り、ステップ605からステ
ップ606を通り、ステップ608によりボックス“1
1”に位置が決まる。そして、ステップ610からボッ
クス“12”に対しステップ601がコールされ、ステ
ップ608により位置が決まる[第6図(b)]。この
ようにして次々と位置が決まり、最後にボックス“0”
が決まって処理が終了して第2図に示すステップ600
に戻る[第6図(C)]。なお、本実施例における位置
基準は上部であり、位置が下に行くほど位置を示す値は
大きくなる。
Next, from the recursive call, the box “1
1 ”in step 604, the steps 605 to 606 are passed, and the step“ 608 ”is performed in the box“ 1 ”.
The position is determined to be 1 ". Then, step 601 is called for box" 12 "from step 610, and the position is determined by step 608 [Fig. 6 (b)]. In the box "0"
Is determined and the processing is completed, and step 600 shown in FIG.
Return to [Fig. 6 (C)]. The position reference in this embodiment is the upper part, and the lower the position, the larger the value indicating the position.

以上述べた手段を木構造チャートPADに適用した例を
次に示す。
An example in which the above-described means is applied to the tree structure chart PAD is shown below.

第7図にPADの構成要素のシンボルを示す。FIG. 7 shows the symbols of the components of PAD.

各シンボルは、第8図の(a)に示すテキストに対応し
て本発明により位置が決定され、第8図の(b)に示す
PAD図が作成される。
The position of each symbol is determined by the present invention in correspondence with the text shown in FIG. 8 (a), and the PAD diagram shown in FIG. 8 (b) is created.

第8図中、MOVE AA TO BB〜MOVW E
E TO FFに対応する3つの処理シンボルの位置が
決定され、条件1のIFシンボルとの接続関係からIF
シンボルの位置が決定され、さらに条件2反復シンボル
とIFシンボルとの接続関係からIFシンボルの大きさ
が決まっている。
In FIG. 8, MOVE AA TO BB to MOVEWE
The positions of the three processing symbols corresponding to E TO FF are determined, and IF is determined from the connection relation with the IF symbol of condition 1.
The position of the symbol is determined, and the size of the IF symbol is determined based on the connection relationship between the condition 2 repeating symbol and the IF symbol.

以上の説明からわかるように、本実施例によれば、木構
造の親と子を結ぶ時、子供の配置と親の位置を決定する
時に再帰呼び出しを用いた簡単な処理により、短時間に
木構造図が作成される。また、木構造図作成時にバラン
スを考慮して作図ができる。この時のバランスは、パラ
メータによりセンタリングやある方向へ寄せたり、中間
にしたりできるので、種々の木構造図に対して最も見易
い作図を行うことができる。
As can be seen from the above description, according to the present embodiment, when a parent and child of a tree structure are connected, a simple process using a recursive call at the time of deciding the placement of the child and the position of the parent can be performed in a short time. A structural drawing is created. In addition, it is possible to draw a tree structure considering the balance. The balance at this time can be centered, moved in a certain direction, or set in the middle, depending on the parameter, so that the most legible drawing can be performed for various tree structure drawings.

以上、本発明を実施例にもとづき具体的に説明したが、
本発明は、前記実施例に限定されるものではなく、その
要旨を逸脱しない範囲において種々変更可能であること
は言うまでもない。
The present invention has been specifically described above based on the embodiments,
It is needless to say that the present invention is not limited to the above-mentioned embodiments and can be variously modified without departing from the scope of the invention.

〔発明の効果〕〔The invention's effect〕

以上、説明したように、本発明によれば、木構造の親と
子を結ぶ時、子供の配置と親の位置を決定する時に再帰
呼び出しを用いた簡単な処理により、短時間で木構造図
を作成することができる。また、ユーザが予めパラメー
タ情報記憶部に設定したパラメータ情報に基づいて木構
造図を描画することができる。これにより、例えば、描
画されたトリーの親の位置がユーザの都合に合わない位
置にあってもユーザがその位置を訂正することができ
る。
As described above, according to the present invention, when a parent and a child of a tree structure are connected, a simple process using a recursive call when determining the placement of the child and the position of the parent can be performed in a short time in the tree structure diagram. Can be created. In addition, the tree structure diagram can be drawn based on the parameter information set in advance by the user in the parameter information storage unit. Thereby, for example, even if the position of the parent of the drawn tree is not suitable for the user, the user can correct the position.

また、パラメータ情報に基づいてバランスをとっている
ため、見易い木構造図を作成することができる。
In addition, since the balance is made based on the parameter information, it is possible to create a tree structure diagram that is easy to see.

【図面の簡単な説明】[Brief description of drawings]

第1図は、本発明の一実施例の木構造データ処理装置の
概略構成を示すブロック図、 第2図及び第3図は、本発明に係る位置決定処理の流れ
図の一例を示す説明図、 第3A図,第3B図及び第3C図は、第3図の流れ図を
説明するための図、 第4図は、第1図に示す木構造情報記憶部のデータ例を
示す説明図、 第5図は、本発明により位置決めされた例を示す説明
図、 第6図は、本発明による位置決めが行われる過程を示す
説明図、 第7図は、本発明を適用した木構造図PAD(Problem
Analysis Diagram)でのテキスト表現の一例を示す説明
図、 第8図は、本発明によるテキストがPAD図に変換され
た例を示す説明図、 第9図は、木構造図の例を示す説明図、 第10図は、再帰的手法によって階乗を求める例を説明
するためのフローチャートである。 図中、1…入力装置、2…データ処理装置、3…表示装
置、4…プリンタ、21…入力情報変換部、22…木構造情
報記憶部、23…パラメータ情報記憶部24…位置決定処理
部、25…図形・文字情報記憶部、26…表示部、27…プリ
ンタ出力部である。
FIG. 1 is a block diagram showing a schematic configuration of a tree-structured data processing device according to an embodiment of the present invention, and FIGS. 2 and 3 are explanatory diagrams showing an example of a flow chart of a position determination process according to the present invention. FIGS. 3A, 3B and 3C are diagrams for explaining the flow chart of FIG. 3, and FIG. 4 is an explanatory diagram showing a data example of the tree structure information storage unit shown in FIG. FIG. 6 is an explanatory view showing an example of positioning according to the present invention, FIG. 6 is an explanatory view showing a process of positioning according to the present invention, and FIG. 7 is a tree structure diagram PAD (Problem) to which the present invention is applied.
Fig. 8 is an explanatory diagram showing an example of a text representation in an Analysis Diagram), Fig. 8 is an explanatory diagram showing an example in which the text according to the present invention is converted into a PAD diagram, and Fig. 9 is an explanatory diagram showing an example of a tree structure diagram. FIG. 10 is a flowchart for explaining an example of obtaining a factorial by a recursive method. In the figure, 1 ... Input device, 2 ... Data processing device, 3 ... Display device, 4 ... Printer, 21 ... Input information conversion unit, 22 ... Tree structure information storage unit, 23 ... Parameter information storage unit 24 ... Position determination processing unit , 25 ... Graphic / character information storage unit, 26 ... Display unit, 27 ... Printer output unit.

フロントページの続き (72)発明者 臼田 裕 神奈川県横浜市中区尾上町6丁目81番地 日立ソフトウェアエンジニアリング株式会 社内 (56)参考文献 特開 昭62−14265(JP,A) 特開 昭58−223863(JP,A) ”IEEE TRANSACTIONS ON SOFTWARE ENGINE RRING”7〔2〕(1981−3)P. 223−228Front page continued (72) Inventor Hiroshi Usuda 6-81 Onoue-cho, Naka-ku, Yokohama-shi, Kanagawa Hitachi Software Engineering Co., Ltd. (56) References JP 62-14265 (JP, A) JP 58- 223863 (JP, A) "IEEE TRANSACTIONS ON SOFTWARE ENGINE RRING" 7 [2] (1981-3) P. 223-228

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】データ処理装置における木構造情報を保持
する情報記憶媒体からの木構造の親子・兄弟関係にある
情報を図形情報に変換し、この図形情報を表示もしくは
記憶する木構造データ作図処理方法であって、 前記親子・兄弟関係にある情報を、親から子方向に、さ
らに兄弟方向に探索し、子を持たない最下位階層まで達
したならば、該最下位階層に属する情報にそれぞれ対応
する図形情報の配置位置を決定し、 次にその上位階層情報に対応する図形情報の配置位置
を、上下階層間の相対位置を定めるユーザ設定のパラメ
ータ情報に基づいて決定することを最上位階層に達する
まで順次繰返し、 このようにして決定した配置位置に従って各階層の図形
情報を表示もしくは記憶することを特徴とする木構造デ
ータ作図処理方法。
1. A tree structure data drawing process for converting information having a parent-child / sibling relationship of a tree structure from an information storage medium holding tree structure information in a data processing device into graphic information and displaying or storing this graphic information. In the method, the information in the parent-child / sibling relationship is searched in a parent-to-child direction and further in a sibling direction, and if the lowest hierarchy having no children is reached, the information belonging to the lowest hierarchy is respectively The uppermost layer is to determine the placement position of the corresponding graphic information, and then determine the placement position of the graphic information corresponding to the upper layer information based on the user-set parameter information that determines the relative position between the upper and lower layers. A tree structure data drawing processing method characterized in that the graphic information of each layer is displayed or stored in accordance with the arrangement position thus determined.
【請求項2】親から子方向へ探索する際に、子有りの親
ならば、その長子を新たな親として子方向に探索し、子
無しの親ならば弟方向に探索し、弟が存在すれば、その
弟を新たな親としてその子方向に探索することを特徴と
する特許請求の範囲第1項記載の木構造データ作図処理
方法。
2. When searching in the direction from the parent to the child, if the parent has a child, the eldest child is searched as the new parent in the child direction, and if there is no child, the younger brother is searched, and the younger brother exists. Then, the younger brother is searched as a new parent in the child direction, and the tree structure data drawing processing method according to claim 1.
【請求項3】上位階層の図形情報の配置位置を決定する
際に、子の親の配置位置を決定したならば、その弟の存
在を探索し、弟が存在すれば、その弟を新たな親として
子の配置位置を決定した後、その子の親の配置位置を決
定することを特徴とする特許請求の範囲第1項記載の木
構造データ作図処理方法。
3. When determining the arrangement position of the graphic information of the upper hierarchy, if the arrangement position of the parent of the child is determined, the existence of the younger brother is searched, and if the younger brother exists, the younger brother is newly added. The method for drawing tree-structured data according to claim 1, wherein the arrangement position of the child as a parent is determined, and then the arrangement position of the parent of the child is determined.
JP62293741A 1987-11-20 1987-11-20 Tree structure data drawing processing method Expired - Fee Related JPH0654468B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62293741A JPH0654468B2 (en) 1987-11-20 1987-11-20 Tree structure data drawing processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62293741A JPH0654468B2 (en) 1987-11-20 1987-11-20 Tree structure data drawing processing method

Publications (2)

Publication Number Publication Date
JPH01134674A JPH01134674A (en) 1989-05-26
JPH0654468B2 true JPH0654468B2 (en) 1994-07-20

Family

ID=17798640

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62293741A Expired - Fee Related JPH0654468B2 (en) 1987-11-20 1987-11-20 Tree structure data drawing processing method

Country Status (1)

Country Link
JP (1) JPH0654468B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2634480B2 (en) * 1990-05-31 1997-07-23 日立ソフトウェアエンジニアリング株式会社 Transition diagram automatic diagram system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"IEEETRANSACTIONSONSOFTWAREENGINERRING"7〔2〕(1981−3)P.223−228

Also Published As

Publication number Publication date
JPH01134674A (en) 1989-05-26

Similar Documents

Publication Publication Date Title
US4608662A (en) Method for editing document
JPH0640302B2 (en) Schematic / source program automatic generation method
JPH0689324A (en) Tool kit and method for establishing form
JPH0654468B2 (en) Tree structure data drawing processing method
JP2740335B2 (en) Table reader with automatic cell attribute determination function
JPH0635962A (en) Machine translation device
JP4828318B2 (en) Multiple form integrated printing method, system and program
JPH02280195A (en) Character generator
JPH0411909B2 (en)
JP2598858B2 (en) Character creation / output method and device
JPH087012A (en) Method and device for editing output mode of data
US6055648A (en) Method and apparatus for recovering the computing error, and a computer-readable recording medium for storing the program for executing the method
CN116776811A (en) Automatic generation method, system and equipment for PCB (printed Circuit Board) diagram of complex electrical design
JP2861201B2 (en) Data converter
JPH09212508A (en) Document processor
JPS63111564A (en) Word processor
JPS6411985B2 (en)
JPS62179055A (en) Text form conversion system
JPH05127846A (en) Document definition device
JPH0214365A (en) System and device for supporting pre-edition
JPH06223072A (en) File converter
JP2002215127A (en) External character font generation system, program recording medium, and program
JPH04235665A (en) Word processor
JPH0534708B2 (en)
JPH06348704A (en) Data editing processing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees