JPH0656578B2 - PAD figure placement method - Google Patents

PAD figure placement method

Info

Publication number
JPH0656578B2
JPH0656578B2 JP62042622A JP4262287A JPH0656578B2 JP H0656578 B2 JPH0656578 B2 JP H0656578B2 JP 62042622 A JP62042622 A JP 62042622A JP 4262287 A JP4262287 A JP 4262287A JP H0656578 B2 JPH0656578 B2 JP H0656578B2
Authority
JP
Japan
Prior art keywords
pad
lines
graphic
group
arranging
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
Application number
JP62042622A
Other languages
Japanese (ja)
Other versions
JPS63211068A (en
Inventor
利男 萩原
喬 久米
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62042622A priority Critical patent/JPH0656578B2/en
Publication of JPS63211068A publication Critical patent/JPS63211068A/en
Publication of JPH0656578B2 publication Critical patent/JPH0656578B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はPAD図形配置方法に係り、特に、PAD図形
をプリンタやディスプレイ等の出力装置上に出力する
際、PAD図形を見易くする様に最適化して配置する方
法に関する。
Description: TECHNICAL FIELD The present invention relates to a PAD figure arranging method, and in particular, when outputting a PAD figure on an output device such as a printer or a display, it is optimal for making the PAD figure easy to see. The method of arranging and arranging.

〔従来の技術〕[Conventional technology]

計算機プログラムの構造を図形で表現する手法の一つに
PAD(問題解析図;Problem Analysis Diagram)があ
る。PADの利点は従来のフローチャート等に比べ、プ
ログラム構造が理解しやすいことである。
PAD (Problem Analysis Diagram) is one of the methods of expressing the structure of a computer program by a figure. The advantage of PAD is that the program structure is easier to understand than the conventional flow chart.

この種PADは、設計ドキュメントの機械化に伴い、処
理手順設計時に設計者が記述する手書きPADから、P
ADシステムが機械書きして、プリンタやディスプレイ
に出力する機械書きPADに移ってきているが、従来の
機械書きPADは、第2図に出力例を示すように、接続
元PAD図形と接続先PAD図形の先頭の高さが同一位
置となっている。
This type of PAD can be changed from the handwritten PAD described by the designer at the time of designing the processing procedure to the P
The AD system has moved to machine-written PAD that writes in machine and outputs to a printer or display. As shown in the output example in FIG. 2, the conventional machine-written PAD has a connection source PAD figure and a connection destination PAD. The height of the beginning of the figure is the same position.

なお、このような機械書きPAD図形については、日立
評論、66,3,PP15〜18(昭和59〜3)に記
載されている。
Note that such a machine-written PAD figure is described in Hitachi Review, 66, 3, PP 15-18 (Showa 59-3).

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

従来の機械書きPADは、接続元PAD図形と接続先P
AD図形の先頭の高さが同一位置であるため、PAD図
形が書かれていない領域が多く発生し、人手書きPAD
に比べページ数などが多くなり、プログラム構造を理解
しようとするとき、ソフトウエア設計者の思考が中断さ
れるという問題があった。
The conventional machine-written PAD has a connection source PAD figure and a connection destination P.
Since the tops of AD figures are at the same position, there are many areas where PAD figures are not written, and human handwritten PAD
There is a problem that the number of pages becomes larger than that of, and the thinking of the software designer is interrupted when trying to understand the program structure.

本発明の目的は、PAD図形が書かれていない領域を少
なくして、出来るかぎり手書きPADに近ずけ、利用者
の見易いPAD図形配置方法を提供することにある。
It is an object of the present invention to provide a PAD figure arranging method in which the area where the PAD figure is not written is reduced so that the PAD figure is as close as possible to the handwritten PAD and is easy for the user to see.

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

上記目的は、接続元PAD図形の配置位置より上方にも
接続先PAD図形を配置し、関連するPAD図形を出来
るだけ近くに集めることにより、達成される。
The above-mentioned object is achieved by arranging the connection destination PAD graphic above the layout position of the connection source PAD graphic and collecting related PAD graphics as close as possible.

〔作用〕[Action]

接続元PAD図形に対する接続先PAD図形の配置を決
める時、接続元PAD図形の配置位置より上方に接続先
PAD図形を配置するだけの空領域が存在するかどうか
調べ、空領域があれば、接続元PAD図形の配置位置よ
り上方の該空領域に接続先PAD図形を配置する。これ
により、PAD図形が書かれない領域を少なくでき、か
つ、出力されるPAD図形を見易いものとすることがで
きる。
When deciding the arrangement of the connection destination PAD graphic with respect to the connection source PAD graphic, it is checked whether or not there is an empty area for arranging the connection destination PAD graphic above the arrangement position of the connection source PAD graphic. The connection destination PAD graphic is arranged in the empty area above the arrangement position of the original PAD graphic. As a result, the area where the PAD graphic is not written can be reduced, and the output PAD graphic can be easily viewed.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面により詳細に説明する。 An embodiment of the present invention will be described in detail below with reference to the drawings.

第1図は本発明による機械書きPAD図形の一例であ
り、第2図の従来のPAD図形に対応するものである。
第1図では、接続元PAD図形より上方にも接続先PA
D図形が配置されており、第2図に比べ、PAD図形の
書かれていない空領域は極端に少なくなっている。
FIG. 1 is an example of a machine-written PAD graphic according to the present invention, and corresponds to the conventional PAD graphic of FIG.
In FIG. 1, the connection destination PA is located above the connection source PAD graphic.
The D figure is arranged, and the empty area in which the PAD figure is not written is extremely small as compared with FIG.

第3図は本発明の一実施例のブロック図で破線で囲った
部分がPADシステム本体を示している。PAD情報は
端末装置31から入力し、PAD情報入力部32を通し
てPAD情報ファイル33に記憶しておく。このPAD
情報ファイル33のPAD情報をPAD情報解析部34
が読み込んで解析し、PAD図形配置部35にPAD図
形を渡す。
FIG. 3 is a block diagram of an embodiment of the present invention, and a portion surrounded by a broken line shows a PAD system main body. The PAD information is input from the terminal device 31 and stored in the PAD information file 33 through the PAD information input unit 32. This PAD
The PAD information of the information file 33 is converted into the PAD information analysis unit 34.
Reads and analyzes, and passes the PAD figure to the PAD figure arranging section 35.

PAD図形配置部35は、渡されたPAD図形を出力イ
メージに配置し、配置の完了したPAD図形をPAD出
力部36を通してプリンタやディスプレイ等の出力装置
37に出力する。
The PAD figure arranging section 35 arranges the passed PAD figure in the output image, and outputs the PAD figure whose arrangement has been completed to the output device 37 such as a printer or a display through the PAD output section 36.

第3図中、PAD図形配置部35が本発明に関係する部
分で、他は従来と同様である。従って、以下ではPAD
図形配置部35の処理について説明する。なお、PAD
はプリンタに出力するものとする。また、配置規則とし
てPAD図形は1行以上空けること、及び接続先PAD
図形は接続元PAD図形との接点を基にして、長さの上
下比ができるだけ1対1になる様に設定するものとす
る。
In FIG. 3, a PAD figure arranging portion 35 is a portion related to the present invention, and the rest is the same as the conventional one. Therefore, in the following, PAD
The processing of the graphic placement unit 35 will be described. In addition, PAD
Shall be output to the printer. Also, as a layout rule, one or more lines of PAD figures should be left blank, and the connection destination PAD
The figure is set based on the contact point with the connection source PAD figure so that the vertical ratio of the length is as 1: 1 as possible.

第4図は第3図のPAD図形配置部35により、PAD
図形7がプリントリストイメージに配置される状態を示
している。41は接続元PAD図形6と既配置PAD図
形3との間の空行数(l1)、42は接続先PAD図形
7に連なる全PAD図形の総行数(l2)である。
FIG. 4 shows PAD by the PAD figure arranging section 35 of FIG.
The figure 7 shows a state in which the figure 7 is arranged in the print list image. Reference numeral 41 is the number of blank lines (l 1 ) between the connection source PAD graphic 6 and the existing PAD graphic 3, and 42 is the total number of lines (l 2 ) of all PAD graphics connected to the connection destination PAD graphic 7.

第5図はPAD図形配置部35の動作フローチャートで
ある。まず、接続元PAD図形の配置位置と既配置PA
D図形の配置位置から、接続元PAD図形より上方の空
行数(l1)を求め(ステップ51)、さらに接続先P
AD図形に連なる全PAD図形の総行数(l2)を求め
る(ステップ52)。次に接続元PAD図形より上方の
空行中(l1)に、接続先PAD図形に連なる全PAD
図形の総行数の半分(l2/2)が納まるかチエックする
(ステップ53)。納まる場合は接続先PAD図形の配
置位置を接続元PAD図形よりl2/2だけ上方に配置し
(ステップ54)、納まらない場合は既配置PAD図形
の次に配置する(ステップ55)。
FIG. 5 is an operation flowchart of the PAD figure arranging unit 35. First, the arrangement position of the connection source PAD figure and the already arranged PA
The number of blank lines (l 1 ) above the connection source PAD graphic is calculated from the arrangement position of the D graphic (step 51), and the connection destination P is determined.
The total number of lines (l 2 ) of all PAD figures connected to the AD figure is obtained (step 52). Next, in the empty line (l 1 ) above the connection source PAD graphic, all PADs connected to the connection destination PAD graphic
Half of the total number of lines of the graphic (l 2/2) is either check fit (step 53). If fit is arranged above the connection source PAD figure arrangement position of the destination PAD graphic only l 2/2 (step 54), if not fit placed next the placed PAD figure (step 55).

第5図の処理により、第4図におけるPAD図形7はP
AD図形3の次の位置に配置され、PAD図形10とP
AD図形9の配置位置より4行上に配置されることにな
る。
By the processing of FIG. 5, the PAD figure 7 in FIG.
PAD figure 10 and P are arranged at the position next to AD figure 3
The AD figure 9 is arranged four lines above the arrangement position.

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

以上説明したように、本発明によれば、接続元PAD図
形より上方にも接続先PAD図形を配置することによ
り、PAD図形が書かれていない領域を少なくし、か
つ、見易くすることが可能になる。
As described above, according to the present invention, by arranging the connection destination PAD graphic above the connection source PAD graphic, it is possible to reduce the area where the PAD graphic is not written and to make it easy to see. Become.

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

第1図は本発明により得られたPAD図形の一例を示す
図、第2図は第1図に対応する従来のPAD図形を示す
図、第3図は本発明の一実施例のブロック図、第4図は
第3図のPAD図形配置部の動作を説明するためのPA
D図形、第5図は第3図のPAD図形配置部の動作フロ
ーチャートである。 31…端末装置、32…PAD情報入力部、 33…PAD情報ファイル、 34…PAD情報解析部、 35…PAD図形配置部、 36…PAD出力部、37…出力装置。
FIG. 1 is a diagram showing an example of a PAD graphic obtained by the present invention, FIG. 2 is a diagram showing a conventional PAD graphic corresponding to FIG. 1, and FIG. 3 is a block diagram of an embodiment of the present invention. FIG. 4 is a PA for explaining the operation of the PAD figure arranging section in FIG.
FIG. 5 is an operation flow chart of the PAD graphic arranging section of FIG. 31 ... Terminal device, 32 ... PAD information input part, 33 ... PAD information file, 34 ... PAD information analysis part, 35 ... PAD figure arrangement part, 36 ... PAD output part, 37 ... Output device.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の行で定義される空間上で、計算機プ
ログラムの構造を図形で表現したPAD図(問題解析
図)であって、行の並び方向に連なって配置される第1
のPAD図形群と、前記第1のPAD図形群の右側の列
に配置され、前記第1のPAD図群の中の第1のPAD
図形に接続された別の連なりの第2のPAD図形群を有
するPAD図を作成するPADシステムにおいて、 前記第1のPAD図形より上方に位置し、前記第2のP
AD図形群と同じ列に位置する第2のPAD図形が存在
する場合に、前記第1のPAD図形が属する行と前記第
2のPAD図形が属する行との間にある空き行数を求め
るステップと、 前記第2のPAD図形群の総行数を求めるステップと、 前記空き行数が前記総行数の1/2以上空いているか判
断するステップと、 前記空き行数が前記総行数の1/2以上空いている場合
は、前記第2のPAD図形群の配置位置を前記第1のP
AD図形の行より前記総行数の1/2の行数だけ上方に
ずらして配置するステップと、 前記空き行数が前記総行数の1/2以上空いていない場
合は、前記第2のPAD図形群の配置位置を前記第2の
PAD図形の次の行以降の行にずらして配置するステッ
プとを有することを特徴とするPAD図形配置方法。
1. A PAD diagram (problem analysis diagram) that graphically represents the structure of a computer program in a space defined by a plurality of lines, the first PAD diagram being arranged in a row direction.
PAD figure group and the first PAD in the first PAD figure group, which is arranged in the right column of the first PAD figure group.
A PAD system for creating a PAD diagram having another series of second PAD figures connected to a figure, wherein the second PAD figure is located above the first PAD figure.
A step of obtaining the number of empty lines between the row to which the first PAD figure belongs and the row to which the second PAD figure belongs when there is a second PAD figure located in the same column as the AD figure group A step of obtaining the total number of lines of the second PAD figure group; a step of determining whether the number of empty lines is more than 1/2 of the total number of lines; If there is a space of 1/2 or more, the arrangement position of the second PAD graphic group is set to the first P
The step of arranging the AD figure so as to be shifted upward by ½ of the total number of lines from the line of the AD figure; and when the number of empty lines is not more than ½ of the total number of lines, the second And a step of arranging the arrangement position of the PAD figure group in a row subsequent to the second row of the second PAD figure and arranging the PAD figure group.
JP62042622A 1987-02-27 1987-02-27 PAD figure placement method Expired - Lifetime JPH0656578B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62042622A JPH0656578B2 (en) 1987-02-27 1987-02-27 PAD figure placement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62042622A JPH0656578B2 (en) 1987-02-27 1987-02-27 PAD figure placement method

Publications (2)

Publication Number Publication Date
JPS63211068A JPS63211068A (en) 1988-09-01
JPH0656578B2 true JPH0656578B2 (en) 1994-07-27

Family

ID=12641120

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62042622A Expired - Lifetime JPH0656578B2 (en) 1987-02-27 1987-02-27 PAD figure placement method

Country Status (1)

Country Link
JP (1) JPH0656578B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0440566A (en) * 1990-06-06 1992-02-10 Fujitsu Ltd Constitutional design supporting device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
情報処理学会第30回(昭和60年前期)全国大会講演論文集P.777〜778

Also Published As

Publication number Publication date
JPS63211068A (en) 1988-09-01

Similar Documents

Publication Publication Date Title
US7206999B2 (en) Form processing method, program and apparatus
JPH0656578B2 (en) PAD figure placement method
JP4992399B2 (en) Document editing apparatus and program
JP4090193B2 (en) CSV data converter for form data
JPS63253472A (en) Arrangement system for pad pattern
JPS61107292A (en) Output unit
JPH0786685B2 (en) Layout equipment
JPH06110886A (en) Copy/paste processing device for document having logical structure
JPH0322088A (en) Engineering work station circuit diagam editor
JP3079508B2 (en) Document conversion device
JPH05216458A (en) Character pattern data converter
JPH04175873A (en) Form allotment processing device
JPS6384953A (en) Printing information editing method
JPH06318201A (en) Table dividing method
JPS62186355A (en) Document preparation system
JPH02100178A (en) Input method for logic circuit diagram
JPH06342363A (en) Character string display device
JPS63163969A (en) Image-processing device with voice
JPH0991363A (en) Information processor and its method
JPH038062A (en) Document converting device
JPS6143372A (en) Document processing system
JPH0824135B2 (en) Pad layout design system
JPS61272865A (en) Document inputting and editing system
JPS61267094A (en) Graphic processing
JPH0358278A (en) Circuit design supporting system with computer