JPH07262341A - Automatic arranging device for character string - Google Patents

Automatic arranging device for character string

Info

Publication number
JPH07262341A
JPH07262341A JP6048461A JP4846194A JPH07262341A JP H07262341 A JPH07262341 A JP H07262341A JP 6048461 A JP6048461 A JP 6048461A JP 4846194 A JP4846194 A JP 4846194A JP H07262341 A JPH07262341 A JP H07262341A
Authority
JP
Japan
Prior art keywords
character string
overlap
simulation
arranging
order
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.)
Granted
Application number
JP6048461A
Other languages
Japanese (ja)
Other versions
JP3350592B2 (en
Inventor
Hitoshi Takayama
均 高山
Ikumitsu Fujita
郁光 藤田
Kenji Murakami
健児 村上
Mayumi Sato
真弓 佐藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP04846194A priority Critical patent/JP3350592B2/en
Publication of JPH07262341A publication Critical patent/JPH07262341A/en
Application granted granted Critical
Publication of JP3350592B2 publication Critical patent/JP3350592B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently and automatically arrange character strings and to automatically arrange them in coarse areas by arranging the character strings according to a simulate order and arranging them at positions where the overlap of character strings is eliminated or most reduced. CONSTITUTION:This device is provided with a simulation order deciding means 3 for deciding the simulation order, arranging means 4 for arranging the character strings at previously designated standard arranging positions within a prescribed retrieval range according to the simulation order, and overlap degree check means 5 for calculating the degree of overlapping concerning the number of simulation lengths when a certain character string is overlapped on any graphic or the other character string on each position where that character string is arranged. When no character string is overlapped, the character strings are arranged at those positions but when any character string is overlapped, the character strings are arranged at the positions as many as the least number of overlapped simulation lengths. This processing is repeated concerning all the character strings.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、図形上で文字列を重な
らないように配置する文字列の自動配置装置に関するも
のである。地図などの図形上に文字列を配置する際に、
この文字列を他の図形や線分に可及的に重ならないよう
に自動配置することが望まれている。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for automatically arranging character strings on a graphic so that the character strings do not overlap each other. When placing a character string on a figure such as a map,
It is desired to automatically arrange this character string so as not to overlap with other figures or line segments as much as possible.

【0002】[0002]

【従来の技術】従来、地図などの図形上に文字列を配置
する場合、配置しようとする文字列の領域をポリゴン
(多角形)で表し、このポリゴンが直線や記号や他のポ
リゴンと重ならないように、計算機により配置してい
た。
2. Description of the Related Art Conventionally, when arranging a character string on a graphic such as a map, the area of the character string to be arranged is represented by a polygon (polygon), and this polygon does not overlap with straight lines, symbols or other polygons. So, it was arranged by the computer.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の地図な
どの図形上の文字列をポリゴンで表し、ポリゴンが直線
や他のポリゴンに重ならないように領域判定を行ってい
たため、文字列を全てポリゴン図形としてまとめる操作
が必要となってしまうと共に、まとめたポリゴンを作図
領域上に有効に配置することができなくなってしまうな
どの問題があった。
Since the character string on the figure such as the conventional map described above is represented by a polygon and the area is determined so that the polygon does not overlap a straight line or another polygon, all the character strings are polygonal. There is a problem that an operation of putting together the figures becomes necessary and it becomes impossible to effectively arrange the gathered polygons in the drawing area.

【0004】本発明は、これらの問題を解決するため、
文字列をシミュレート順位に従って標準配置位置および
検索範囲内に配置してこのときのシミュレート長単位の
重なりをチェックし、重なりの無い位置あるいは重なり
の最も少ない位置に文字列を配置することを繰り返し、
文字列を図形上に重ならないように効率的に自動配置す
ると共により疎の領域に自動配置することを目的として
いる。
The present invention solves these problems.
The character strings are arranged in the standard arrangement position and the search range according to the simulation order, the overlap of the simulated length unit at this time is checked, and the character string is arranged at the position with no overlap or the position with the smallest overlap. ,
The purpose is to efficiently and automatically arrange the character strings so that they do not overlap the figure, and to automatically arrange them in a sparser area.

【0005】[0005]

【課題を解決するための手段】図1は、本発明の原理ブ
ロック図を示す。図1において、文字列の自動配置装置
1は、文字列を図形上に自動配置するものであって、入
力手段2、シミュレート順位決定手段3、配置手段4、
および重なり度合いチェック手段5から構成されるもの
である。
FIG. 1 shows a block diagram of the principle of the present invention. In FIG. 1, a character string automatic arrangement device 1 is for automatically arranging a character string on a graphic, and comprises an input means 2, a simulation order determination means 3, an arrangement means 4,
And an overlapping degree check means 5.

【0006】入力手段2は、各種入力パタメタを入力し
たりなどするものである。シミュレート順位決定手段3
は、文字列を図形の上側、下側、左側、右側のいずれの
順位でシミュレートするかのシミュレート順位を決定す
るものである。
The input means 2 is for inputting various input parameters. Simulated ranking determination means 3
Is to determine the simulation order of whether the character string is simulated on the upper side, lower side, left side, or right side of the figure.

【0007】配置手段4は、シミュレート順位に従って
上側、下側、左側、あるいは右側に文字列を予め指定さ
れた標準配置位置および検索範囲内に配置するものであ
る。重なり度合いチェック手段5は、配置された位置で
文字列が図形あるいは他の文字列と重なったときに、予
め指定されたシミュレート長単位の点列の個数の重なり
度合いを算出するものである。
The arranging means 4 arranges the character strings on the upper side, the lower side, the left side, or the right side in accordance with the simulation order within the standard arrangement position and the search range designated in advance. The overlapping degree check means 5 calculates the overlapping degree of the number of point sequences in a predetermined simulation length unit when a character string overlaps with a figure or another character string at the arranged position.

【0008】データベース6は、図形や文字列などの情
報を登録したものであって、例えば局の位置(X0、Y
0)、局シンボル名称、地図データなどを登録したもの
である。
The database 6 stores information such as figures and character strings. For example, the station position (X0, Y
0), station symbol name, map data, etc. are registered.

【0009】[0009]

【作用】本発明は、図1に示すように、シミュレート順
位決定手段3が入力手段2によって入力された情報をも
とに、文字列を図形の上側、下側、左側、右側のいずれ
の順位でシミュレートするかのシミュレート順位を決定
し、配置手段4が決定されたシミュレート順位に従って
上側、下側、左側、あるいは右側に文字列を予め指定さ
れた標準配置位置および検索範囲内に配置し、重なり度
合いチェック手段5がこれら配置された各位置で文字列
が図形あるいは他の文字列と重なったときに、予め指定
されたシミュレート長単位の点列の個数の重なり度合い
を算出し、重ならなかったときはその位置に文字列を配
置、あるいは重なったときは最も重なり度合いの低いと
きの位置に文字列を配置し、全ての文字列について繰り
返して文字列を図形上に配置するようにしている。
According to the present invention, as shown in FIG. 1, the simulation rank determining means 3 determines whether the character string is on the upper side, the lower side, the left side or the right side of the figure based on the information input by the input means 2. The simulation order of whether or not to simulate is determined, and the arrangement unit 4 determines whether the character string is on the upper side, the lower side, the left side, or the right side according to the determined simulation order within the predetermined standard arrangement position and search range. When the character string overlaps with the figure or another character string at each of the arranged positions, the overlapping degree checking means 5 calculates the overlapping degree of the number of point sequences in the preset simulated length unit. , If there is no overlap, place the character string at that position, or if there is overlap, place the character string at the position with the lowest degree of overlap, and repeat for all character strings to draw the character string. It is to be arranged.

【0010】この際、シュミレート順位決定手段3がシ
ミュレート順位として、 図形から伸びている線分の上側、下側、左側、右側
のシミュレート順位を低くし、 図形から伸びている線分が最も疎となる上側、下
側、左側、右側のシミュレート順位を高くし、 図形の上側、下側、左側、右側のシミュレート順位
を予めパラメタとして設定し、 これら、、の順番で決定するようにしている。
At this time, the simulation rank determining means 3 lowers the simulation rank on the upper, lower, left and right sides of the line segment extending from the figure as the simulation order, and the line segment extending from the figure is the highest. Increase the simulation order of the upper side, lower side, left side, and right side, which are sparse, set the simulation order of the upper side, lower side, left side, and right side of the figure in advance as parameters, and decide in this order. ing.

【0011】また、検索範囲として、予め指定された上
側、下側、左側、および右側の各標準配置位置を含む矩
形とするようにしている。従って、文字列をシミュレー
ト順位に従って標準配置位置および検索範囲内に配置
し、重なったときにシミュレート長単位の点列の重なり
をチェックし、重ならない位置あるいは重なったときに
最も重なりの低い位置に文字列を配置することを繰り返
すことにより、文字列を図形上で重ならないように効率
的に自動配置することが可能となると共に、より疎の領
域に自動配置することが可能となる。
Further, the search range is a rectangle including predetermined standard arrangement positions of upper side, lower side, left side, and right side. Therefore, the character strings are arranged in the standard arrangement position and the search range according to the simulation order, and when they overlap, the overlap of the point sequences of the simulated length unit is checked, and the position where they do not overlap or the position with the lowest overlap when they overlap. By repeatedly arranging the character strings in the same manner, it is possible to efficiently arrange the character strings automatically so that they do not overlap each other on the figure, and also to arrange the character strings in a sparse area automatically.

【0012】[0012]

【実施例】次に、図2から図10を用いて本発明の実施
例の構成および動作を順次詳細に説明する。ここでは、
図8に示すように、地図上の局シンボル(図形)と、他
の局シンボルとを回線ルート(線分)で結んでいる場合
に、局シンボル(図形)の局名称(文字列)を自動配置
する例を挙げて以下詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the construction and operation of an embodiment of the present invention will be described in detail with reference to FIGS. here,
As shown in FIG. 8, when the station symbol (graphic) on the map and another station symbol are connected by a line route (line segment), the station name (character string) of the station symbol (graphic) is automatically An example of the arrangement will be described in detail below.

【0013】図2は、本発明の文字列の自動配置の処理
フローチャートを示す。これは、図1の構成のもとで、
文字列(局名称)を図形(局シンボル)の近傍の見やす
い位置に、他の図形(局シンボル)および線分(回線ル
ート)に可及的に重ならないようにし、しかも疎の領域
に自動配置するときのものである。
FIG. 2 shows a processing flowchart of automatic arrangement of character strings according to the present invention. This is based on the configuration of FIG.
The character string (station name) should be placed in an easy-to-see position near the figure (station symbol) so that it does not overlap other figures (station symbol) and line segments (line route) as much as possible, and it is automatically placed in a sparse area. It is when you do.

【0014】図2において、S1は、各パラメタ値を外
部より指示する。これは、図1の入力手段2によって、
外部から下記の各パラメタを入力して指示する。 ・配置方向プライオリティ:例えば上側、下側、左側、
右側の順(図5の(c)参照) ・シミュレート長:例えば移動距離L(図4の(c)参
照) ・収束条件:移動した局名称の個数が指定した所定数以
下となったときに繰り返しを終了する。
In FIG. 2, S1 designates each parameter value from the outside. This is done by the input means 2 of FIG.
Input the following parameters from the outside to instruct. -Arrangement direction priority: For example, upper side, lower side, left side,
Order on the right side (see (c) of FIG. 5) • Simulation length: For example, moving distance L (see (c) of FIG. 4) • Convergence condition: When the number of moved station names is less than or equal to a specified number To end the repeat.

【0015】・最大繰り返し回数:指定した最大繰り返
し回数だけ実行したときに処理を終了する。 S2は、文字列を標準配置位置に配置可能か判別する。
これは、文字列を予め指定された標準配置位置に配置し
ても図形や他の文字列などと重ならないで配置可能か判
別する。YESの場合には、S8でその予め指定された
標準配置位置に文字列を配置して終了する。NOの場合
には、S3に進む。
Maximum number of repetitions: The process ends when the specified maximum number of repetitions has been executed. In S2, it is determined whether the character string can be arranged in the standard arrangement position.
This determines whether or not the character string can be arranged without being overlapped with the figure or other character strings even if the character string is arranged at the standard arrangement position designated in advance. In the case of YES, the character string is placed in the standard placement position designated in advance in S8, and the process ends. If NO, the process proceeds to S3.

【0016】S3は、文字列の配置エリアにシミュレー
ト順位に従って配置位置を検索する。これは、後述する
図5で決定したシミュレート順位に従い、上側、下側、
左側、あるいは右側のいずれかの標準配置位置に文字列
を配置し、およびこの標準配置位置に配置した文字列を
配置エリア(図4の全体エクステント)にシミュレート
長単位に移動して配置することを繰り返す。
In step S3, an arrangement position is searched for in the arrangement area of the character string according to the simulation order. This is based on the simulation order determined in FIG. 5, which will be described later.
Place the character string in the standard placement position on either the left side or the right side, and move and place the character string placed in this standard placement position in the placement area (entire extent in Fig. 4) in simulated length units. repeat.

【0017】S4は、重なりチェックを行う。これは、
後述する図6に示すように、標準配置位置に文字列を配
置および配置エリア(全体エクステント)内にシミュレ
ート長単位に移動して配置し、図形や線分や他の文字列
とのシミュレート長L単位の点列の重なりの個数をチェ
ックする。
In step S4, an overlap check is performed. this is,
As shown in FIG. 6, which will be described later, a character string is placed in a standard placement position and moved in a simulated length unit in the placement area (whole extent) to be placed and simulated with figures, line segments, and other character strings. Check the number of overlapping point sequences of length L unit.

【0018】S5は、配置位置に他図形と重なり有りか
判別する。YESの場合には、重なりがあったので、S
6に進む。NOの場合には、重なりが無かったので、S
8で文字列を配置し、終了する。
In step S5, it is determined whether or not the arrangement position overlaps with another figure. If YES, there is an overlap, so S
Go to 6. In the case of NO, there is no overlap, so S
At 8, the character string is arranged, and the process ends.

【0019】S6は、全ての配置可能領域に対して検索
済か判別する。これは、シミュレート順位に従って、全
ての配置可能領域に対して検索済か判別する。YESの
場合には、S7で重なり度合いの低い位置に文字列配置
する。これは、シミュレート順位に従って全てについて
重なりチェックを行ったが重なると判明したので、その
うちの最も重なり度合いの低い位置に文字列を配置し、
終了する。そして、他の文字列についても同様にS1か
らS8を繰り返す。更に、同様に文字列を移動した回数
が指定された回数を超えたときに処理終了する旨の収束
条件あるいは最大繰り返し回数を超えるまで繰り返す。
一方、S6のNOの場合には、S3以降を繰り返す。
In step S6, it is determined whether or not the search has been completed for all the disposable areas. This determines whether or not all the layout-enabled areas have been searched according to the simulation order. If YES, the character string is arranged at a position where the degree of overlap is low in S7. This was done by checking the overlap for all according to the simulation order, but it was found that they overlap, so place the character string in the position with the lowest degree of overlap,
finish. Then, S1 to S8 are similarly repeated for other character strings. Further, similarly, the process is repeated until the number of times the character string has been moved exceeds the specified number of times, or the convergence condition for ending the process or the maximum number of repetitions is exceeded.
On the other hand, in the case of NO in S6, S3 and subsequent steps are repeated.

【0020】以上によって、パラメタを外部指定したこ
とに対応して、自動的にシミュレート順位を算出して当
該シミュレート順位に従って標準配置位置に配置および
検索範囲(全エクステント内)に配置し、これら配置し
た位置における重なりチェックを行って重なりがあると
きにその重なり具合をシミュレート長単位の点列の個数
で算出し、最もシュミレート長単位の点列の個数の少な
い位置に配置することを繰り返し、全ての文字列が重な
らないで配置できたとき、あるいは収束条件を満たした
ときや最大繰り返し回数を超えたときに終了する。これ
らにより、外部パラメタを指定するのみで、自動的にシ
ミュレート順位に従い、図形の見やすい位置に文字列を
配置したり、文字列を可及的に疎の位置に配置したりす
るを自動的に行うことが可能となる。
As described above, the simulation order is automatically calculated in accordance with the external designation of the parameter, and the simulation order is arranged in the standard arrangement position and the search range (in all extents) according to the simulation order. When there is an overlap in the arranged position and there is overlap, calculate the degree of overlap with the number of point sequences of simulated length unit, repeat placing at the position with the smallest number of point sequences of simulated length unit, It ends when all the strings can be arranged without overlapping, or when the convergence condition is satisfied or the maximum number of iterations is exceeded. With these, by simply specifying external parameters, it is possible to automatically arrange the character string in a position where the figure is easy to see, and to arrange the character string in a position as sparse as possible according to the simulation order. It becomes possible to do.

【0021】図3は、本発明の外部パラメタ例を示す。
図3の(a)は、配置方向プライオリティを示す。ここ
では、局シンボル(図形)の上側、下側、左側、右側に
それぞれ“無線局名称”(文字列)を配置する。このと
きの配置方向プライオリティは、例えば図示のから
に示すように下記のようにオペレータが外部から指定す
る。
FIG. 3 shows an example of external parameters of the present invention.
FIG. 3A shows the arrangement direction priority. Here, "radio station names" (character strings) are arranged on the upper side, the lower side, the left side, and the right side of the station symbol (graphic), respectively. At this time, the arrangement direction priority is designated by the operator from the outside as shown below, for example, as shown in the figure.

【0022】:上側配置 :下側配置 :左側配置 :右側配置 図3の(b)は、シミュレート長を示す。これは、図示
のように、例えば局シンボルの左側配置した文字列“無
線局名称”を一定値づつ平行移動するときの当該一定値
をシミュレート長Lという。従って、このシュミレート
長L毎に文字列“無線局名称”を順次平行移動させ、そ
のときの他の図形や文字列との重なり具合の無い位置、
あるいは重なりの最も低い位置を検索して探す。この
際、シミュレート長Lを長く指定すれば、検索に要する
時間を短縮できるが大まかな配置となる。シミュレート
長Lを短く指定すれば、検索に要する時間が長くなるが
精度高く検索して配置できる。
: Upper side arrangement: Lower side arrangement: Left side arrangement: Right side arrangement FIG. 3B shows the simulated length. This is referred to as a simulated length L, for example, when the character string "radio station name" arranged on the left side of the station symbol is moved in parallel by a constant value as shown in the figure. Therefore, the character string "wireless station name" is sequentially moved in parallel for each simulated length L, and the position where there is no overlap with other figures or character strings at that time,
Alternatively, the position with the lowest overlap is searched and searched. At this time, if the simulation length L is designated to be long, the time required for the search can be shortened, but the layout is roughly arranged. If the simulation length L is specified to be short, the time required for the search becomes long, but the search can be performed with high accuracy.

【0023】図4は、本発明の配置説明図を示す。図4
の(a)は、文字列の配置エリアを示す。この文字列の
配置エリアは、予め指定した標準配置位置を包含する矩
形領域である全体エクステントとする。ここで、中心の
■は、局を矩形領域で表したシンボルエクステントであ
る。
FIG. 4 shows a layout explanatory view of the present invention. Figure 4
(A) indicates a character string arrangement area. The arrangement area of the character string is the entire extent, which is a rectangular area including the standard arrangement position designated in advance. Here, the central black square is a symbol extent that represents the station in a rectangular area.

【0024】図4の(b)は、文字列の配置シミュレー
トを示す。これは、左側配置エクステントに示すよう
に、標準配置位置からここでは全体エクステント内の上
から下までシミュレート長L単位に文字列を配置する。
同様に、右側配置エクステントについても図示のように
全体エクステント内の上から下までシミュレート長L単
位に文字列を配置する。また、上側配置エクステントお
よび下側配置エクステントについても同様に図示のよう
にシミュレート長L単位に文字列を配置する。
FIG. 4B shows a character string layout simulation. As shown in the left-sided layout extent, the character string is arranged in units of the simulated length L from the standard layout position to the bottom of the entire extent here.
Similarly, as for the right-sided extent, a character string is arranged in the simulated length L unit from the top to the bottom in the entire extent as shown in the figure. Similarly, for the upper extents and the lower extents, character strings are arranged in units of simulated length L as shown in the figure.

【0025】図4の(c)は、空エリアの自動検索を示
す。これは、図4の(b)の各領域について、シミュレ
ート長L単位に文字列“無線局名称”を順次配置してそ
のときの重なり具合の検索を行う。
FIG. 4C shows an automatic search for an empty area. In this case, for each area in FIG. 4B, the character string "wireless station name" is sequentially arranged in units of the simulated length L, and the degree of overlap at that time is searched.

【0026】図5は、本発明のシミュレート順位の決定
例を示す。図5の(a)は、原図の重み値を示す。この
場合の重み値は、自局から他局への結線(回線ルート)
が伸びている方向は、シミュレート順位を低くする。こ
の原図の場合、重み値は、右側に記載したように、上側
と右側に結線(回線ルート)が伸びているので、この方
向のシミュレート順位を低く“1”とし、 上側 1 下側 0 左側 0 右側 1 とする。
FIG. 5 shows an example of determining the simulation rank of the present invention. FIG. 5A shows the weight value of the original drawing. The weight value in this case is the connection from the own station to another station (line route)
In the direction in which is growing, the simulation rank is lowered. In the case of this original map, as shown in the right side, since the wiring (line route) extends to the upper side and the right side as described on the right side, the simulation order in this direction is set to low "1", and the upper side 1 lower side 0 left side 0 Right side 1

【0027】図5の(b)は、原図の最も疎の重み値を
示す。この場合の最も疎の重み値は、自局から他局への
結線(回線ルート)が最も疎である方向は、シミュレー
ト順位を高くする(点線の方向のシミュレート順位を高
くする)。この原図の場合、重み値は、右側に記載した
ように、上側と右側の結線(回線ルート)から最も疎で
ある方向は点線の方向であるので、この方向のシミュレ
ート順位を高く“0”とし、 上側 1 下側 1 左側 0 右側 1 とする。
FIG. 5B shows the most sparse weight value of the original drawing. In this case, the most sparse weight value has a higher simulation rank in the direction in which the connection (line route) from the own station to the other station is the most sparse (the simulation order in the dotted line direction is higher). In the case of this original diagram, as shown in the right side, the weight value is the direction of the sparsest from the upper and right connections (line route) is the direction of the dotted line, so the simulation order of this direction is high and is “0”. And upper side 1 lower side 1 left side 0 right side 1.

【0028】図5の(c)は、外部指定した重み値を示
す。この場合の外部指定した重み値は、オペレータが指
定したシミュレート順位である。この場合には、図示の 上側 1 下側 2 左側 3 右側 4 とする。
FIG. 5C shows a weight value designated externally. In this case, the weight value specified externally is the simulation order specified by the operator. In this case, the upper side 1 lower side 2 left side 3 right side 4 shown.

【0029】図5の(d)は、各重み付け項目の結合
((a)、(b)、(c)の結合)を示す。ここでは、
図示のように、(a)、(b)、(c)から 上側 111 下側 012 左側 003 右側 114 となる。これを昇順に並べると、シミュレート順位は 003:左側 012:下側 111:上側 114:右側 の順番となる。従って、シミュレート順位は、左→下→
上→右の順となり、この順に配置可能エリアを検索して
いくこととなる。
FIG. 5D shows the combination of the weighting items (the combination of (a), (b), and (c)). here,
As illustrated, from (a), (b), and (c), the upper side 111, the lower side 012, the left side 003, and the right side 114 are obtained. If these are arranged in ascending order, the simulation order is 003: left side 012: lower side 111: upper side 114: right side. Therefore, the simulation order is left → down →
The order is from top to right, and the searchable area is searched in this order.

【0030】図6は、本発明の重なりチェック説明図を
示す。重なりチェックは、図4で説明した全体エクステ
ント内で、この矩形内に存在する他の文字列や図形など
との間の重なりチェックを以下のように行う。
FIG. 6 shows an overlapping check explanatory diagram of the present invention. In the overlap check, the overlap check with other character strings, figures, etc. existing in this rectangle within the entire extent described in FIG. 4 is performed as follows.

【0031】図6の(a)は、線分の重なりチェックを
示す。これは、自局および他局の線分情報(始点座標、
方向単位ベクトル、線分長)と、方向別エクステント情
報(左下座標、右上座標)、シミュレート長から矩形領
域を横切る結線上に点列を想定し、名称エクステント内
おける点列の有無によって重なりをチェックする。例え
ば図示の左側に示すように、結線上の点列をシミュレー
ト長で単位で想定し、標準配置位置に配置した名称エク
ステントの場合には、●の2点が矩形内に存在する。こ
のため、●の2点分だけ、文字列位置を左側に移動すれ
ば、右側に記載したように、重なりが無くなる。
FIG. 6A shows a line segment overlap check. This is the line segment information (start point coordinates,
(Direction unit vector, line segment length), extent information for each direction (lower left coordinate, upper right coordinate), assuming a sequence of points on the line that crosses the rectangular area from the simulated length, and overlapping depending on the presence or absence of the sequence of points in the name extent. To check. For example, as shown on the left side of the figure, in the case of a name extent arranged at a standard arrangement position by assuming a series of points on a connection in units of simulated length, two points of ● exist within a rectangle. For this reason, if the character string position is moved to the left by two points, the overlap disappears as described on the right.

【0032】図6の(b)は、局名称の重なりチェック
を示す。これは、他局の無線局名称の情報(座標情報、
文字高さ、幅、間隔)、方向別エクステント情報(左下
座標、右上座標)から重なり領域を求める。この領域内
にシミュレート長を用いて点列を想定し、点列の有無に
よって重なりをチェックする。例えば図示の左側に示す
ように、点列が標準配置位置では、●の4点が矩形内に
存在する。このため、●の4点分だけ、文字列位置を左
側に移動すれば、右側に記載したように、重なりが無く
なる。
FIG. 6B shows an overlapping check of station names. This is the information (coordinate information,
The overlapping area is obtained from the character height, width, space) and extent information for each direction (lower left coordinate, upper right coordinate). A point sequence is assumed using the simulated length in this area, and the overlap is checked by the presence or absence of the point sequence. For example, as shown on the left side of the drawing, when the point sequence is the standard arrangement position, four points of ● exist in the rectangle. Therefore, if the character string position is moved to the left by four points of ●, the overlap is eliminated as described on the right.

【0033】図6の(c)は、局シンボルの重なりチェ
ックを示す。これは、他局の局シンボルを構成する図形
の情報(線分情報、文字情報など)から座標値を取り出
し、これらを包含する矩形領域を得る。この矩形領域内
にシミュレート長を用いて点列を想定し、点列の有無に
よって重なりチェックする。例えば図示の左側に示すよ
うに、点列が標準配置位置では、●の4点が矩形内に存
在する。このため、●の4点分だけ、文字列位置を左側
に移動すれば、右側に記載したように、重なりが無くな
る。
FIG. 6C shows the station symbol overlap check. In this, coordinate values are extracted from the information (line segment information, character information, etc.) of figures that form station symbols of other stations, and a rectangular area including these is obtained. A point sequence is assumed using the simulated length in this rectangular area, and the overlap check is performed depending on the presence or absence of the point sequence. For example, as shown on the left side of the drawing, when the point sequence is the standard arrangement position, four points of ● exist in the rectangle. Therefore, if the character string position is moved to the left by four points of ●, the overlap is eliminated as described on the right.

【0034】図7は、本発明の自動配置説明図を示す。
図7の(a)は、初期状態を示す。この初期状態では、
局Aの無線局名称と局Bの無線局名称、局Bの無線局名
称と局Cの無線局名称が図示のように重なっている。
FIG. 7 shows an automatic layout explanatory view of the present invention.
FIG. 7A shows the initial state. In this initial state,
The wireless station name of station A and the wireless station name of station B, the wireless station name of station B and the wireless station name of station C overlap as shown.

【0035】図7の(b)は、移動例を示す。ここで
は、(a)の初期状態から ・C局の無線局名称が下側に移動 ・B局の無線局名称は変化なし A局の無線局名称が左側に移動 する。これにより重なりが無くなる。
FIG. 7B shows an example of movement. Here, from the initial state of (a):-The wireless station name of station C moves to the lower side-The wireless station name of station B does not change. The wireless station name of station A moves to the left side. This eliminates the overlap.

【0036】図7の(c)は、次の移動例を示す。ここ
では、(b)の重なりがなくなった状態から各局を標準
配置位置に平行移動させたものであって、 ・C局の無線局名称が左側に移動 ・B局の無線局名称が左側に移動 A局の無線局名称は変化なし する。ここで、 ・A、B、C各局の無線局名称とともに移動しなくなれ
ば収束したとみなす。
FIG. 7C shows the next movement example. Here, each station is moved in parallel to the standard arrangement position from the state where (b) is no longer overlapped, and the radio station name of station C moves to the left side. The radio station name of station B moves to the left side. The radio station name of station A remains unchanged. Here, it is considered as converged if it stops moving together with the wireless station names of the stations A, B, and C.

【0037】・また、最大繰り返し数、収束条件を設定
することでそれ以前に終了が可能である。 図8は、本発明の具体例説明図を示す。これは、図9お
よび図10の場合のものであって、 ・局シンボルが、○であり ・局名称が“栃木支”、“新栃木変”であり、 ・線分が回線ルートである。
Also, it is possible to finish before that by setting the maximum number of iterations and convergence conditions. FIG. 8 is a diagram illustrating a specific example of the present invention. This is the case of FIG. 9 and FIG. 10, the station symbol is ○, the station names are “Tochigi branch” and “New Tochigi hen”, and the line segment is the line route.

【0038】これらを用いて表示した適正配置前のもの
が図9であり、本実施例によって適正配置したものが図
10である。図9は、本発明の適正配置前例を示す。こ
の適正配置前例では、図8の各局シンボル○の任意の近
傍に局名称が記載され、見やすいとは言えない。
FIG. 9 shows a display before proper placement displayed by using these, and FIG. 10 shows a proper placement according to the present embodiment. FIG. 9 shows an example of a proper arrangement according to the present invention. In this example of proper arrangement, the station name is described in an arbitrary vicinity of each station symbol ◯ in FIG. 8, and it cannot be said that it is easy to see.

【0039】図10は、適正配置後例を示す。これは、
図9の適正配置前例について、既述した図2から図7ま
での処理を適用し、適正配置後例を示す。この適正配置
後例では、重なりを可及的に少なくすると共に、最も疎
の方向に局名称を配置し、上側、下側、左側、右側の順
でオペレータが重みを設定しているので、その順に配置
され、見やすく局名称を自動配置できたこととなる。
FIG. 10 shows an example after proper placement. this is,
The pre-appropriate placement example of FIG. 9 is shown by applying the above-described processing of FIGS. 2 to 7 and the post-proper placement example. In this proper placement example, the overlap is reduced as much as possible, the station names are placed in the most sparse direction, and the operator sets weights in the order of upper side, lower side, left side, and right side. It was arranged in order, and the station name was automatically arranged for easy viewing.

【0040】[0040]

【発明の効果】以上説明したように、本発明によれば、
文字列をシミュレート順位に従って標準配置位置に配置
および検索範囲内にシミュレート長単位に配置して重な
りをチェックし、重ならない位置あるいは重なったとき
に最も重なりの低い位置に配置することを全ての文字列
について繰り返す構成を採用しているため、文字列を図
形上で重ならないように効率的に自動配置できると共
に、より疎の領域に自動配置することができる。これら
により、図面上で文字列を配置する場合に、文字列や線
分を点列に想定し、各図形の重なりチェックをシミュレ
ート順位に処理し、文字列を図形上に効率的に重なりが
生じないように自動配置できると共に、全ての領域に空
領域が存在しない場合でも、重なっている点列の数によ
り、より疎の領域に配置することができる。
As described above, according to the present invention,
Place the character string in the standard placement position according to the simulation order and place it in the simulated length unit in the search range to check for overlap, and place it at the position where it does not overlap or where it overlaps the least. Since the configuration is repeated for the character strings, the character strings can be efficiently arranged automatically so that they do not overlap each other on the figure, and can also be arranged automatically in a sparse area. With these, when arranging a character string on a drawing, the character string or line segment is assumed to be a point sequence, the overlapping check of each figure is processed in a simulated order, and the character string is efficiently overlapped on the figure. It can be automatically arranged so that it does not occur, and even if there is no empty area in all areas, it can be arranged in a more sparse area depending on the number of overlapping point sequences.

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

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】本発明の文字列の自動配置の処理フローチャー
トである。
FIG. 2 is a processing flowchart of automatic arrangement of character strings according to the present invention.

【図3】本発明の外部入力パラメタ例である。FIG. 3 is an example of an external input parameter of the present invention.

【図4】本発明の配置説明図である。FIG. 4 is an arrangement explanatory view of the present invention.

【図5】本発明のシミュレート順位の決定例である。FIG. 5 is an example of determining a simulation rank of the present invention.

【図6】本発明の重なりチェック説明図である。FIG. 6 is an explanatory diagram of an overlap check according to the present invention.

【図7】本発明の自動配置説明図である。FIG. 7 is an explanatory diagram of automatic arrangement according to the present invention.

【図8】本発明の具体例説明図である。FIG. 8 is a diagram illustrating a specific example of the present invention.

【図9】本発明の適正配置前例である。FIG. 9 shows an example of proper placement of the present invention.

【図10】本発明の適正配置後例である。FIG. 10 is a diagram showing an example after proper placement of the present invention.

【符号の説明】[Explanation of symbols]

1:文字列の自動配置装置 2:入力手段 3:シミュレート順位決定手段 4:配置手段 5:重なり度合いチェック手段 6:データベース 1: Automatic arrangement device for character strings 2: Input means 3: Simulated order determination means 4: Arrangement means 5: Overlap degree check means 6: Database

───────────────────────────────────────────────────── フロントページの続き (72)発明者 佐藤 真弓 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Mayumi Sato 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】図形上で文字列を重ならないように配置す
る自動配置装置において、 図形に対応づけて配置する文字列を当該図形の上側、下
側、左側、あるいは右側に文字列を予め指定された標準
配置位置に配置する配置手段(4)と、 これらの配置された各位置で文字列が図形あるいは他の
文字列と重なったときに、予め指定されたシミュレート
長の個数の重なり度合いを算出する重なり度合いチェッ
ク手段(5)と、 重ならなかったときは標準配置位置あるいは検索範囲内
のその位置に文字列を配置し、一方、重なったときは上
記算出した重なった最も少ないシミュレート長の個数の
位置に文字列を配置する再配置手段とを備えたことを特
徴とする文字列の自動配置装置。
1. An automatic arrangement device for arranging character strings so that they do not overlap each other on a figure, the character string to be arranged in correspondence with the figure is designated in advance on the upper side, the lower side, the left side, or the right side of the figure. Arrangement means (4) for arranging at the standard arrangement position and the degree of overlap of the number of simulation lengths designated in advance when the character string overlaps with the figure or another character string at each of these arranged positions. And an overlapping degree check means (5) for calculating the above, and when there is no overlap, a character string is arranged at the standard arrangement position or that position within the search range, while when there is overlap, the smallest overlap simulation calculated above is performed. An automatic character string arranging device comprising: a rearrangement means for arranging a character string at a number of long positions.
【請求項2】上記シミュレート順位として、 図形から伸びている線分の上側、下側、左側、右側
のシミュレート順位を低くし、 図形から伸びている線分が最も疎となる上側、下
側、左側、右側のシミュレート順位を高くし、 図形の上側、下側、左側、右側のシミュレート順位
を予めパラメタとして設定し、 これら、、の順番で決定する上記シミュレート順
位決定手段(3)を備えたことを特徴とする請求項1に
記載の文字列の自動配置装置。
2. As the simulation order, the simulation order of the upper, lower, left and right sides of the line segment extending from the figure is lowered, and the upper and lower sides of the line segment extending from the figure are the sparsest. The simulation order determination means (3) for increasing the simulation order of the side, the left side, and the right side, setting the simulation order of the upper side, the lower side, the left side, and the right side of the figure as parameters in advance, and determining them in this order. ) Is provided, The automatic arrangement device of the character string according to claim 1 characterized by things.
【請求項3】上記検索範囲として、予め指定された上
側、下側、左側、および右側の各標準配置位置を含む矩
形としたことを特徴とする請求項1および請求項2に記
載の文字列の自動配置装置。
3. The character string according to claim 1 or 2, wherein the search range is a rectangle including predetermined standard arrangement positions of upper side, lower side, left side, and right side. Automatic placement device.
JP04846194A 1994-03-18 1994-03-18 Automatic character string placement device Expired - Fee Related JP3350592B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04846194A JP3350592B2 (en) 1994-03-18 1994-03-18 Automatic character string placement device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04846194A JP3350592B2 (en) 1994-03-18 1994-03-18 Automatic character string placement device

Publications (2)

Publication Number Publication Date
JPH07262341A true JPH07262341A (en) 1995-10-13
JP3350592B2 JP3350592B2 (en) 2002-11-25

Family

ID=12804013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04846194A Expired - Fee Related JP3350592B2 (en) 1994-03-18 1994-03-18 Automatic character string placement device

Country Status (1)

Country Link
JP (1) JP3350592B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019106151A (en) * 2017-12-14 2019-06-27 キヤノンマーケティングジャパン株式会社 Program, information processing device and its processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019106151A (en) * 2017-12-14 2019-06-27 キヤノンマーケティングジャパン株式会社 Program, information processing device and its processing method

Also Published As

Publication number Publication date
JP3350592B2 (en) 2002-11-25

Similar Documents

Publication Publication Date Title
US7039569B1 (en) Automatic adaptive dimensioning for CAD software
US5551014A (en) Method and apparatus for designing integrated circuits according to master slice approach
JPH08123836A (en) Conversational circuit design device
US20070143724A1 (en) Method and apparatus for diffusion based cell placement migration
JPH06196563A (en) Computable overclowded region wiring to vlsi wiring design
US6099581A (en) Layout database for a computer aided design system
US6223328B1 (en) Wire processing method, wire processing equipment, and recording medium for wire processing program used in designing a large scale integrated circuit
JP2005098732A (en) Navigation system and map-display method
CN114611452A (en) Method for automatically generating Sub Cell in layout based on circuit schematic diagram
JPH07262341A (en) Automatic arranging device for character string
JP4376670B2 (en) Steiner tree processing apparatus, Steiner tree processing method, and Steiner tree processing program
JP3102365B2 (en) Placement and wiring method
JP2000298029A (en) Summarizing method for and summarizing device of guide map and recording medium of the program for summarizing the guide map
JP3114875B2 (en) Layout design method
JP2596698B2 (en) How to generate contours
JPH06124320A (en) Interactive block arrangement correction system
JP4071546B2 (en) Circuit design support apparatus and layout change method for semiconductor device
JP2752530B2 (en) Automatic wiring method and device therefor
JPH08248875A (en) Digital road map display device
JPH07326676A (en) Wiring simulation method
JP3064066B2 (en) IC pattern design system
JP2002251624A (en) System, method, and program for arranging object, and recording medium for recording program for arranging object
JPH04111170A (en) Device for designing layout of circuit board
JPH10223765A (en) Method and device for wiring process and recording medium for wiring processing program
JP3367869B2 (en) Wiring reduction processing method, wiring reduction processing device, and storage medium for storing wiring reduction processing program

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020827

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080913

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080913

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090913

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090913

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100913

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100913

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110913

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120913

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees