Quantcast
Channel: Mentor Graphics Communities: Message List
Viewing all articles
Browse latest Browse all 4541

Re: Busbar styling

$
0
0

How are parameters interpreted?

The number of parameters defined are categorized into three types left, middle & right.

If there is only one parameter, it falls into middle category.

If there are two parameters, first one falls into left & 2nd is treated as right.

If there are >=3 parameters, first one is treated as left & last one is treated as right. All others fall into middle category.

 

What is the grid space allotted to these decorations?

Middle decoration(s) is always drawn  with width =X, where X=(total width of the pinlist) – (one grid)

Half grid towards left is used by left decoration and the remaining half grid towards right is used by right decoration.

a.png

1 decoration:

 

In the above example, since there is only one decoration, it is treated as middle glyph and is drawn as shown below.

bb.png

 

If the pin-list is 1-grid wide and has only one decoration as shown above, X = zero (width of pinlist – 1 grid) and hence no decoration is drawn.

 

2 decorations:

Let’s consider the case where there are only two decorations. As per above algorithm, first one is drawn on left & second one on right side.

c.png

Since I used hline (which extends from -10,0 to 10,0), here is how the device looks.

d.png

>=3 decorations:

 

First and last one are used for left & right. Remaining all will be used for rendering middle glyphs. The middle of the middle glyph is drawn one grid wide and remaining space is equally divided into other middle decorations.

For ex:

 

e.png

 

For this decoration above having 5 glyphs, here is how they are drawn.

First one (square) is 0.5 grid, similarly last one (corner-TR=square) is 0.5 grid wide.

Middle of middle glyphs (decoration=hline) is one grid wide.

Remaining middle glyphs (decoration=rectangle-middle) occupy remaining space.

 

 

f.png


Viewing all articles
Browse latest Browse all 4541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>